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
- In the Studio, open Settings → Webhooks & API and find AI Agents & MCP Connections.
- Press a preset, for example Read-only assistant, name the key, and copy it.
- 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>" }
}
}
}Claude Desktop
The Copy Claude Desktop JSON button gives you a configuration that reaches the server through the mcp-remote bridge (you need Node.js installed). It looks like this; the key goes in env so that no argument contains a space. Add it to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\), then restart the app.
{
"mcpServers": {
"xigzag-my-site": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://xigzag.com/api/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "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
| Tier | Tools | Scope |
|---|---|---|
| R0 read | collections_list, entities_list, orders_list, pages_list, pages_get, customers_list, webhooks_events, assets_list | The matching read scope: pages_get needs pages:read, assets_list needs entities:read |
| R1 draft edits: pages and copy | pages_create, pages_edit_section, pages_add_block, pages_remove_block, pages_move_block, copy_update, seo_update | entities:write |
| R1 draft edits: business, products, design, images | site_identity_update, products_add, products_update, products_update_stock, theme_set, assets_upload, assets_set_image | entities:write |
| R2 needs your approval | site_publish, products_change_price, pages_archive | entities:write |
pages_get returns a page's sections, its search settings and the current edit version. pages_edit_section can set text fields and lists such as items[]. seo_update sets a page's search title and description. theme_set takes primary and accent colours and headingFont and bodyFont.
Each tool's input schema lists the arguments it takes. The list an agent sees depends on its key's scopes. Two resources, site://summary and site://schema, describe the site and its collections.
initialize, ping, tools/list, tools/call, resources/list and resources/read. Each key may send 120 requests per minute.