Sanity MCP Server
MCP server by luminarylane Verified · npm:@luminarylane
Sanity MCP Server lets MCP-compatible clients list, read, create, publish, delete and upload images for blog posts in a Sanity dataset. It is for teams that manage blog content in Sanity through an AI assistant.
Install Sanity MCP Server
Built from the published package, never by AI.
claude mcp add sanity-mcp-server -- npx -y @luminarylane/sanity-mcp-serverRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"sanity-mcp-server": {
"args": [
"-y",
"@luminarylane/sanity-mcp-server"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"sanity-mcp-server": {
"args": [
"-y",
"@luminarylane/sanity-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"sanity-mcp-server": {
"args": [
"-y",
"@luminarylane/sanity-mcp-server"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add sanity-mcp-server -- npx -y @luminarylane/sanity-mcp-server{
"mcpServers": {
"sanity-mcp-server": {
"args": [
"-y",
"@luminarylane/sanity-mcp-server"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add sanity-mcp-server npx -y @luminarylane/sanity-mcp-serverGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the sanity-mcp-server block.
About
Sanity MCP Server is a standalone Model Context Protocol server for Sanity-backed blog operations. It runs as a stdio server that MCP-compatible clients can start and call. The server exposes tools for listing, reading, creating and updating, publishing, and deleting blog posts, and for uploading images.
The server reads its access settings from environment variables: a Sanity project ID, dataset, API version and API token. The source states that the repository contains no embedded credentials. It can be run with npx from the @luminarylane/sanity-mcp-server npm package or from a local build. The source describes it as intended for MCP clients that manage blog posts in a Sanity dataset.
Written from the project's README and checked against it.
Tools it gives your assistant
sanity_blog_listLists blog posts in the Sanity dataset.sanity_blog_getReads a single blog post from the Sanity dataset.sanity_blog_upsertCreates or updates a blog post in the Sanity dataset.sanity_image_uploadUploads an image to Sanity.sanity_blog_publishPublishes a blog post.sanity_blog_deleteDeletes a blog post from the Sanity dataset.
What you need
- Node.js 20 or newer
- A Sanity API token with access to the target dataset
- A Sanity project ID and dataset name
- A Sanity API version setting
Try asking
- List the blog posts in my Sanity production dataset.
- Read the blog post with the slug I give you from Sanity.
- Publish the draft blog post I just created in Sanity.
Good to know
- The source describes this as an interim vendored copy of the upstream package, which is still being finalized.
- All access depends on the environment variables being set before the server starts.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Sanity MCP Server
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
Sanity MCP Server: common questions
What Sanity settings does the server need?
It needs SANITY_PROJECT_ID, SANITY_DATASET, SANITY_API_VERSION and SANITY_API_TOKEN set as environment variables. The source says the repository contains no embedded credentials.
Which blog actions can the assistant perform?
The server provides tools to list, get, create or update, publish and delete blog posts, and to upload images. Each action maps to one of the named sanity_ tools.
Does it need Node.js?
Yes. The source requires Node.js 20 or newer, and it can be started with npx from the npm package.
How do I install Sanity MCP Server?
In Claude Code run claude mcp add sanity-mcp-server -- npx -y @luminarylane/sanity-mcp-server. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Sanity MCP Server the official server?
Sanity MCP Server is published by npm:@luminarylane from its verified domain in the official MCP Registry.
Is Sanity MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Sanity MCP Server safe to use?
It scores 54 of 100. Grades: maintenance C, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to Sanity MCP Server?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does Sanity MCP Server work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
