drio
Open app

Sanity MCP Server

Source

MCP for interacting with Sanity IO projects.

Catalog onlyCatalog onlySTDIO

Overview

Sanity MCP Server is a tool designed for interacting with Sanity.io projects, allowing users to manage content seamlessly from Claude Desktop.

To use the Sanity MCP Server, clone the repository, install the dependencies, and set up your Sanity credentials in a .env file. Then, configure it within Claude Desktop by adding a new MCP server with the appropriate settings.

  • Create, edit, and list documents in Sanity.io - Retrieve schema templates based on existing documents - Easy integration with Claude Desktop for content management
  1. Creating new blog posts in Sanity.io
  2. Editing existing content dynamically
  3. Listing and managing documents of various types
  4. Retrieving schema templates for content types

Add to your AI client

Use these steps to connect Sanity MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "sanity-mcp-server-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-server-jlmelis"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "sanity-mcp-server-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-server-jlmelis"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "sanity-mcp-server-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-server-jlmelis"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "sanity-mcp-server-jlmelis": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-server-jlmelis"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "sanity-mcp-server-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-server-jlmelis"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "sanity-mcp-server-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-server-jlmelis"
      ]
    }
  }
}

FAQ

What is required to run the Sanity MCP Server?

You need Node.js and your Sanity project credentials to set it up.

Can I use this server for any type of document?

Yes, as long as the document type is supported by your Sanity.io schema.

Is there a limit to the number of documents I can list?

The default limit is 10, but you can specify a different limit when listing documents.