drio
Open app

Sanity.io MCP Server for Draft Posts

Source

A sanity mcp server for interacting with sanity IO project using natural language in an MCP client like claude desktop

Catalog onlyCatalog onlySTDIO

Overview

Sanity.io MCP Server for Draft Posts is a server that allows users to manage draft posts in a Sanity.io project using natural language through an MCP client like Claude Desktop.

To use the server, clone the repository, install the required dependencies, set up your Sanity.io credentials in the .env file, and run the server using Python.

  • Create new draft posts with titles and content. - List all draft posts in your Sanity.io project. - Publish draft posts by their ID.
  1. Managing blog posts in a Sanity.io project.
  2. Collaborating with team members on draft content.
  3. Automating the publishing process of draft posts.

Add to your AI client

Use these steps to connect Sanity.io MCP Server for Draft Posts 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-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-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-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-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-jlmelis": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-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-jlmelis": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sanity-mcp-jlmelis"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

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

Cline

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

Cline MCP Settings (via UI)

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

FAQ

Can I use this server with any MCP client?

Yes! The server is designed to work with any MCP client that supports the Model Context Protocol.

Is there a specific programming language required to run the server?

The server is written in Python, so you will need Python installed to run it.

How do I set up my Sanity.io credentials?

You need to copy the `.env.example` file to `.env` and fill in your Sanity.io project credentials.