Start free

Help center / Developers and AI agents

Connect Claude, Cursor and other agents (MCP)

Point any MCP client that can send a bearer header at your site's MCP endpoint.

xigzag runs a Model Context Protocol (MCP) server over HTTP at https://xigzag.com/api/mcp. An agent connected to it works on the one site its key belongs to. A discovery file is published at /.well-known/mcp.json.

Connect

  1. In the Studio, open Connections and find AI Agents & MCP Connections.
  2. Press a preset, for example Read-only assistant, name the key, and copy it.
  3. Add the server to your client using one of the examples below. The Copy Claude Code and Copy Cursor JSON buttons give you similar text with a placeholder for the key.

Claude Code

claude mcp add --transport http my-site https://xigzag.com/api/mcp --header "Authorization: Bearer <YOUR_API_KEY>"

Cursor

{
  "mcpServers": {
    "my-site": {
      "url": "https://xigzag.com/api/mcp",
      "headers": { "Authorization": "Bearer <YOUR_API_KEY>" }
    }
  }
}

Other agents and automation tools can connect if they support remote MCP over HTTP and let you set an Authorization header. Check your client's own documentation.

Test with curl

curl -sS -X POST https://xigzag.com/api/mcp \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
{"jsonrpc":"2.0","id":2,"method":"tools/call",
 "params":{"name":"entities_list","arguments":{"collection":"products","limit":20}}}

Tools

KindTools
Readcollections_list, entities_list, orders_list, pages_list, customers_list, webhooks_events, assets_list
Draft editspages_edit_section, pages_add_block, copy_update, products_add, products_update_stock, theme_set, assets_upload, assets_set_image
Needs your approvalsite_publish, products_change_price, pages_archive

The list an agent sees depends on its key's scopes. Draft edits and approval requests need entities:write. Two resources, site://summary and site://schema, describe the site and its collections.

Good to know
The server answers initialize, ping, tools/list, tools/call, resources/list and resources/read. Each key may send 120 requests per minute.

Related articles

Still need help?
Open a support ticket or write to hello@xigzag.com.