S

Sanity MCP

Query and mutate Sanity content.

Sanity·No reviews yet
Repo Docs
Share:

About

Interact with Sanity datasets: fetch documents with GROQ, create and update content, and manage schemas.

Example tools

Illustrative tool names — the actual tool set is defined by the server at runtime.

create_task
Create a new task
list_tasks
List tasks with filters
update_task
Update fields of an existing task

Screenshots

No screenshots yet.

Frequently Asked Questions

Common questions about Sanity MCP.

What is the Sanity MCP and what can I do with it?
The Sanity MCP allows you to query, create, update, and manage your Sanity content. You can fetch documents using GROQ queries, modify existing content, and administer schema definitions across your datasets.
How do I configure the Sanity MCP in a client like Claude Desktop?
Configuration typically involves adding a new Model Context Protocol service in your client. You will provide the transport (HTTP) and the necessary OAuth credentials to connect to your Sanity project.
Does the Sanity MCP require special credentials to use?
Yes, the Sanity MCP uses OAuth for authentication. You will need to configure OAuth credentials, likely an OAuth client ID and client secret, to authorize access to your Sanity datasets.
What are the key capabilities exposed by the Sanity MCP?
The Sanity MCP provides capabilities for data interaction including fetching documents using the GROQ query language, performing CRUD operations on content, and managing schema definitions within your Sanity project.
What are the costs associated with using the Sanity MCP?
The cost of using the Sanity MCP depends entirely on your Sanity project's plan and usage. The MCP itself is open-source but access to the Sanity service may incur costs based on data usage, API calls, and features.
Are there any known limitations or prerequisites for the Sanity MCP?
A key prerequisite for the Sanity MCP is an existing Sanity project and dataset. The MCP relies on your configured Sanity environment for all content access and management operations.

Install Sanity MCP

Server URL

https://mcp.sanity.io/mcp

Claude Desktop

Add this to claude_desktop_config.json.

{
  "mcpServers": {
    "sanity": {
      "url": "https://mcp.sanity.io/mcp",
      "transport": "http",
      "authType": "oauth"
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json.

{
  "mcpServers": {
    "sanity": {
      "url": "https://mcp.sanity.io/mcp"
    }
  }
}

VS Code

Add this to your workspace settings.json.

{
  "mcp.servers": {
    "sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io/mcp"
    }
  }
}

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Discussion(0)

Sign in to join the discussion.

No comments yet.