BusinessMCP
Sanity CMS logo

Sanity CMS

Free forever

sanity-io · Writing

10k installs

Connect in 1 click

The Sanity CMS MCP server connects your Sanity.io content projects directly to any AI agent through a single hosted MCP endpoint, making structured content management accessible to Claude, GPT, Gemini, and other model-agnostic assistants without custom integration work. Instead of writing bespoke GROQ queries by hand or jumping into the Sanity Studio every time you need to check or update content, teams can expose document queries, mutations, and asset management as callable tools that any agent understands. This is especially useful for editorial teams, marketing operations, and product content workflows that rely on Sanity's structured content model but want AI agents to draft, review, and publish without manual context-switching.

Because BusinessMCP.com unifies your tools, databases, and revenue data into one hosted MCP server plus a business-intelligence dashboard, the Sanity CMS connector doesn't live in isolation. Connect it once through /api/mcp with a Bearer mcph_* key, and the same agent that queries your Sanity dataset via GROQ can also pull ad platform metrics, CRM records, or spreadsheet data in the same conversation — giving content teams a genuinely unified view of how published content performs against business outcomes. This pairing turns Sanity from a headless CMS into part of a broader AI-accessible content and revenue stack, without exposing raw API tokens to every tool an agent touches.

Common workflows include letting an agent draft a new blog post schema, populate fields with GROQ-verified references, upload and tag media assets, then check publish status across environments before a release. Content ops teams use it to audit stale documents, batch-update metadata, or generate content briefs pulled from live Sanity data rather than static exports. Because queries run through the hosted MCP server rather than direct API calls scattered across scripts, GROQ query patterns and mutation logic stay centralized, auditable, and easier to secure — a meaningful advantage for teams juggling multiple Sanity datasets or environments (staging vs. production).

The integration is model-agnostic by design, so switching between Claude, GPT, or Gemini doesn't require re-plumbing your Sanity content pipeline; the MCP server abstracts the connection so agents interact with documents, references, and assets the same way regardless of which model is doing the reasoning. It's also cookieless and GDPR-friendly, which matters for organizations managing editorial content tied to EU audiences or regulated industries where every third-party connection needs a clear data-handling story.

Whether you're building an AI-assisted editorial workflow, automating content QA before deploys, or simply want your agents to answer "what's published where" without logging into Sanity Studio, this MCP server gives you a clean, queryable interface into your content graph. Paired with BusinessMCP's business-intelligence dashboard, you get visibility not just into what content exists, but how it connects to the rest of your hosted tools — all through one endpoint instead of a sprawl of individual API keys and SDKs.

$ npx mcphosting-cli add mcp-server-sanity

Just say it in a thread

No configs, no docs. Once connected, these are the kinds of messages your agents act on.

"Run a groq query against a specified sanity dataset and return matching documents — and give me the highlights."

"Fetch a single sanity document by its id and dataset for me, then post a summary in the thread."

"Create a new content document in sanity with specified fields and type and flag anything that needs my approval."

What teams use it for

  • Let an AI agent draft, structure, and publish new Sanity documents from natural-language briefs
  • Run GROQ queries via agent commands to audit content freshness or find broken references
  • Automate media asset uploads and tagging across Sanity datasets
  • Compare content performance in Sanity against ad or revenue data through the unified BI dashboard
  • Batch-update metadata or localize documents across staging and production environments

Agent-callable tools

query_groq

Run a GROQ query against a specified Sanity dataset and return matching documents.

get_document

Fetch a single Sanity document by its ID and dataset.

create_document

Create a new content document in Sanity with specified fields and type.

update_document

Patch or mutate an existing Sanity document's fields.

delete_document

Remove a document from a Sanity dataset by ID.

upload_asset

Upload an image or file asset to Sanity's asset pipeline and return its reference.

list_datasets

List available Sanity datasets and projects connected to the hosted MCP server.

Your data stays yours

Credentials live in your vault. We route requests — we never store, log, or train on your data.

Works with every AI

Connect once — portable across Claude, GPT, Gemini, and every local agent you run.

Frequently asked questions

Does this MCP server require direct Sanity API tokens exposed to the AI agent?

No — credentials are managed through the hosted MCP server, so agents authenticate via your BusinessMCP Bearer key rather than handling raw Sanity tokens directly.

Can I query multiple Sanity datasets or projects through one MCP connection?

Yes, the connector can be configured to reach multiple datasets or environments, letting an agent switch context between staging and production content.

How does this differ from using the Sanity API or SDK directly?

Instead of writing custom integration code per model, the MCP server exposes standardized tools any AI agent can call, and it plugs into BusinessMCP's shared BI dashboard alongside your other connected tools.

Give your AI team the Sanity CMS skill

Free forever plan, no credit card. Connected and working in under five minutes.

Connect Sanity CMS free