Sponsored by Deepsite.site

Sanity MCP Server

Created By
sanity-io9 months ago
Connect your Sanity content to AI agents. Create, update, and explore structured content using Claude, Cursor, and VS Code via the Model Context Protocol. Transform content operations from complex queries to simple conversations—giving your team superpowers without sacrificing structure.
Overview

Sanity MCP Server

What is Sanity MCP Server?

Sanity MCP Server implements the Model Context Protocol to connect your Sanity projects with AI tools like Claude, Cursor, and VS Code. It enables AI models to understand your content structure and perform operations through natural language instructions.

How to use Sanity MCP Server?

To use the Sanity MCP Server:

  1. Prerequisites:

    • Deploy your Sanity Studio with schema manifest
    • Get your API credentials (Project ID, Dataset name, API token)
  2. Add configuration to your application's MCP settings:

    {
      "mcpServers": {
        "sanity": {
          "command": "npx",
          "args": ["-y", "@sanity/mcp-server@latest"],
          "env": {
            "SANITY_PROJECT_ID": "your-project-id",
            "SANITY_DATASET": "production",
            "SANITY_API_TOKEN": "your-sanity-api-token"
          }
        }
      }
    }
    
  3. The server can be used with any application that supports the Model Context Protocol, including:

    • Claude Desktop
    • Cursor IDE
    • Visual Studio Code
    • Custom MCP-compatible applications

Key features of Sanity MCP Server

  • 🤖 Content Intelligence: Let AI explore and understand your content library
  • 🔄 Content Operations: Automate tasks through natural language instructions
  • 📊 Schema-Aware: AI respects your content structure and validation rules
  • 🚀 Release Management: Plan and organize content releases effortlessly
  • 🔍 Semantic Search: Find content based on meaning, not just keywords

Use cases of Sanity MCP Server

  1. AI-powered content creation and management: Create, update, and manage documents using natural language instructions
  2. Intelligent content exploration: Query your content using GROQ, or search semantically based on meaning
  3. Release management: Plan and coordinate content releases through conversational interfaces
  4. Schema exploration: Help AI understand your content structure to work more effectively
  5. Content operations automation: Streamline repetitive tasks through natural language commands

FAQ from Sanity MCP Server

What is the Model Context Protocol (MCP)?

The Model Context Protocol is a standard that allows AI assistants to connect with external tools and data sources. It enables AI models to understand your content structure and perform operations through natural language instructions.

How do I install the Sanity MCP Server?

You don't need to install it separately. Simply add the configuration to your MCP-compatible application (like Claude Desktop, Cursor, or VS Code), and it will be automatically downloaded and run using npx when needed.

What permissions does the Sanity MCP Server need?

The permission level depends on what you want to do:

  • For basic read operations: viewer role is sufficient
  • For content management: editor or developer role recommended
  • For advanced operations (like managing datasets): administrator role may be needed

Is there special setup required for Node Version Manager users?

Yes, if you use tools like nvm, mise, or fnm, you'll need to create symlinks to ensure MCP servers can access Node.js. This is a one-time setup that involves creating symlinks to your Node.js binaries.

What tools are available in the Sanity MCP Server?

The server provides a wide range of tools, including:

  • Document operations (create, update, query, patch)
  • Release management
  • Version management
  • Dataset management
  • Schema information retrieval
  • GROQ query support
  • Semantic search
  • Project information

Can I use this with any AI assistant?

You can use it with any AI assistant that supports the Model Context Protocol (MCP), such as Claude, and applications that integrate with MCP-compatible models.

Server Config

{
  "mcpServers": {
    "sanity": {
      "command": "npx",
      "args": [
        "-y",
        "@sanity/mcp-server@latest"
      ],
      "env": {
        "SANITY_PROJECT_ID": "your-project-id",
        "SANITY_DATASET": "production",
        "SANITY_API_TOKEN": "your-sanity-api-token"
      }
    }
  }
}
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Serper MCP ServerA Serper MCP Server
ChatWiseThe second fastest AI chatbot™
Playwright McpPlaywright MCP server
WindsurfThe new purpose-built IDE to harness magic
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
CursorThe AI Code Editor
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Amap Maps高德地图官方 MCP Server
Tavily Mcp