Sanity MCP Server

Stableapi
60 starsTypeScriptsanity-io
GitHub
About

Overview

The Sanity MCP Server enables AI agents to interact with Sanity's structured content platform. It provides tools for querying content with GROQ, creating and updating documents, managing assets, and working with Sanity datasets.
Capabilities

Tools & Capabilities

query

Execute a GROQ query

create_document

Create a new document

update_document

Update (patch) a document

delete_document

Delete a document

list_datasets

List datasets in the project

Setup

Installation

bash
Install
npx -y @sanity/mcp-server
Examples

Example Usage

javascript
Usage
{
  "mcpServers": {
    "sanity": {
      "command": "npx",
      "args": ["-y", "@sanity/mcp-server"],
      "env": {
        "SANITY_PROJECT_ID": "your-project-id",
        "SANITY_TOKEN": "your-token"
      }
    }
  }
}

Quick Info

Authorsanity-io
LanguageTypeScript
StatusStable
Stars 60
Last UpdatedFeb 12, 2026

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow.

Get in Touch

Need a Custom MCP Server?

Our team builds custom MCP servers tailored to your workflow. From proprietary data sources to internal tools, we have you covered.

Contact Us
CortexAgent Customer Service

Want to skip the form?

Our team is available to help you get started with CortexAgent.

This chat may be recorded for quality assurance. You can view our Privacy Policy.