Sanity MCP Server
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Provides tools for interacting with Sanity.io content, including creating new documents, editing existing documents, listing documents of specific types, and retrieving schema templates based on document types.
Sanity MCP Server
This MCP server provides tools for interacting with Sanity.io content from Claude Desktop.
Installation
- Clone this repository
- Install dependencies:
- Create a
.env
file with your Sanity credentials:
Usage with Claude Desktop
- In Claude Desktop, go to Settings > MCP Servers
- Add a new server with these settings:
Available Tools
Create Document
Creates a new document in Sanity
Parameters:
type
: Document typecontent
: Document content
Example:
Edit Document
Edits an existing document
Parameters:
id
: Document IDcontent
: Updated content
List Documents
Lists documents of a specific type
Parameters:
type
: Document typelimit
: Maximum number of documents to return (default: 10)
Get Schema
Gets a schema template based on an existing document
Note: For best results, manually create at least one document of each type before using this tool.
Parameters:
type
: Document type
Example Usage
- Create a new blog post:
- Edit an existing post:
- List recent posts:
- Get schema for posts:
This server cannot be installed
An MCP server that enables Claude Desktop to interact with Sanity.io content, providing tools to create, edit, list documents and get schema templates.