Sanity (MCP)

Connect AI tools to Sanity via the Model Context Protocol (MCP) to query and manage content, schemas, and releases

🚀 Quickstart

Connect to the Sanity MCP server with Tenklo and call MCP tools in minutes. Sanity MCP uses OAuth 2.0 with dynamic client registration, so no app registration is required.

Create the integration

In Tenklo (free signup), go to Integrations → Configure New Integration → Sanity (MCP).

Authorize Sanity

Go to Connections → Add Test Connection → Authorize, then log in to your Sanity account. Later, you'll let your users do the same directly from your app.

Call the Sanity MCP API

Make your first MCP request (initialize handshake). Replace the placeholders below with your API key, integration ID, and connection ID:

curl "https://api.tenklo.dev/proxy/v2/mcp" \
  -X POST \
  -H "Authorization: Bearer <NANGO-API-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
        "protocolVersion": "2024-11-05",
        "capabilities": {},
        "clientInfo": {
            "name": "nango-client",
            "version": "1.0.0"
        }
    }
}'

✅ You're connected! Check the Logs tab in Tenklo to inspect requests.

Implement Tenklo in your app

Follow our Auth implementation guide to integrate Tenklo in your app.

📚 Sanity (MCP) guides

Tenklo uses dynamic client registration with Sanity's MCP OAuth server. You do not need to register an MCP application — just create the integration in Tenklo and authorize with your Sanity account.

Sanity's MCP server exposes tools for schema exploration and deployment (get_schema, deploy_schema, deploy_studio), document operations (create_documents, patch_documents, query_documents, publish_documents), release management (create_release, list_releases), and project administration (list_projects, create_dataset, add_cors_origin), among others.

Official resources: Sanity MCP server

🧩 Pre-built syncs & actions for Sanity (MCP)

Explore Nango-provided actions in your dashboard. Extend and customize them to fit your needs.


On this page