Direct access to your Sanity projects (content, datasets, releases, schemas) and agent rules
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Collection of resources to help AI agents build better with Sanity. Supports Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode, and any other editor/agent compatible with MCP or Agent Skills.
plugin.json, skills/, and mcp.json components for any Agent Plugins-compatible client.Choose your path based on how you want agents to work with Sanity:
Give agents direct access to Sanity projects and always up-to-date agent rules via the MCP server.
Run in terminal to detect and configure MCP for Cursor, Claude Code and VS Code automatically:
Uses your logged-in CLI user for authentication β no manual tokens or OAuth needed.
Or manually: Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P) β View: Open MCP Settings β + New MCP Server β add to mcp.json:
Run in terminal. Authenticate with OAuth on next launch:
Run in terminal. Authenticate with OAuth on next launch:
Or manually add to ~/.codex/config.toml:
Open Command Palette (Cmd+Shift+P / Ctrl+Shift+P) β MCP: Open User Configuration β add:
Sanity is available as a prebuilt chat connector in Lovable:
In your next prompt, reference your Sanity project or ask the agent to read your schema.
See the Lovable MCP documentation or Sanity + Lovable guide for more details.
In the prompt input field, click Prompt Tools β MCPs β Add New β Select Sanity β Authorize β Authenticate with OAuth.
Go to Integrations Page β scroll to MCP Servers for Replit Agent β Add MCP server β Enter Sanity as name and https://mcp.sanity.io as Server URL β Test & Save β Authenticate with OAuth.
Add to your opencode.json:
Then run: opencode mcp auth sanity
For any MCP-compatible client, add https://mcp.sanity.io as the server URL.
If your client doesn't support remote MCP servers, use a proxy like mcp-remote:
Manual MCP configuration uses OAuth by default. You can use token auth instead by setting an Authorization: Bearer <token> header in the MCP config. If authentication fails after CLI setup, rerun npx sanity@latest mcp configure and restart your MCP client. For OAuth reset issues, Cursor provides Cursor: Clear All MCP Tokens and VS Code provides Authentication: Remove Dynamic Authentication Providers.
See the Sanity MCP docs for authorization options and troubleshooting.
Install best practices skills that work with any Agent Skills-compatible agent.
See Option 3 for plugin installation.
Install the Sanity plugin to get MCP server, agent skills, and commands. Available on the Claude Code marketplace, Cursor Marketplace, or from this repo as an Agent Plugin.
The Sanity plugin is listed on the official Anthropic plugin marketplace. The official marketplace (claude-plugins-official) is pre-registered when you start Claude Code β you do not need to add a custom marketplace.
Install from Claude Code:
If the plugin is not found, refresh the marketplace catalog and retry:
Then run /reload-plugins to activate without restarting.
Alternative: interactive install
/plugin and open the Discover tab.claude/settings.json/reload-plugins to activate without restartingVerify installation: Ask Claude Code: "which skills do you have access to?"
You should see the Sanity skills listed.
Start using: Use natural language and skills activate automatically:
Help me create a blog post schema in Sanity
Review my GROQ query and Next.js Visual Editing setup
Or run /sanity to explore all capabilities.
Install from the Cursor Marketplace by running this in Cursor chat:
Verify installation: Ask Cursor: "which skills do you have access to?"
You should see the Sanity skills listed.
Start using: Use natural language and skills activate automatically:
Help me create a blog post schema in Sanity
Review my GROQ query and Next.js Visual Editing setup
Install the plugin from Codex's plugin directory (select the Sanity Agent Toolkit marketplace, then install Sanity).
Restart Codex. Verify by asking: "which skills do you have access to?" β you should see the Sanity skills listed.
Install the skill references locally to teach your editor Sanity best practices:
skills/sanity-best-practices/ to your project.AGENTS.md to your project root to act as a knowledge router.No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sanity)<a href="https://allmcps.com/mcp/sanity"><img src="https://allmcps.com/api/badge/sanity?style=directory" alt="Sanity on AllMCPs" /></a>