Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 54
  • 0 stars
  • 32 a week
  • MIT
  • Updated

Install Sanity MCP Server

Built from the published package, never by AI.

claude mcp add sanity-mcp-server -- npx -y @luminarylane/sanity-mcp-server

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install Sanity MCP Server in Claude Code

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

A

No 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 →

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.

Sanity MCP Server Install

Add to stack

Loading.