sanity-io/mcp-cli
If you are the rightful owner of mcp-cli and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A local MCP server that bridges stdio transport and streamable HTTP endpoint at mcp.sanity.io, using Sanity CLI authentication.
@sanity/mcp
A local MCP (Model Context Protocol) server that provides a bridge between the stdio transport and the remote streamable http endpoint at mcp.sanity.io, and automatically uses your Sanity CLI authentication.
Note: This module is primarily meant for automation/easy editor integration - for most use cases, you will want to use mcp.sanity.io directly.
Prerequisites
- Node.js 20.19.1+, 22.12+ or >= 24
- Sanity CLI authentication: run
npx sanity loginfirst
Setup
Claude Code
Add to ~/.claude/settings.json:
{
"mcpServers": {
"sanity": {
"command": "npx",
"args": ["-y", "@sanity/mcp"]
}
}
}
VS Code
Add to .vscode/mcp.json in your project:
{
"servers": {
"sanity": {
"command": "npx",
"args": ["-y", "@sanity/mcp"]
}
}
}
Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"sanity": {
"command": "npx",
"args": ["-y", "@sanity/mcp"]
}
}
}
How it works
This package acts as a local proxy that:
- Receives MCP requests from your AI assistant via stdio
- Forwards them to
mcp.sanity.iowith your auth token - Returns the responses back to the assistant
Your Sanity auth token is read automatically from the Sanity CLI config (or the SANITY_AUTH_TOKEN environment variable).
License
MIT-licensed. See LICENSE.