Connect your Sanity.io CMS to AI — run GROQ queries, manage documents, explore schemas, and administer projects with natural language.
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"sanity": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-sanity",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the _ping tool to verify sanity credentials by calling a lightweight read endpoint. used internally by aerostack to validate credentials”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
Connect your Sanity.io CMS to AI — run GROQ queries, manage documents, explore schemas, and administer projects with natural language.
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-sanity
This MCP server gives AI agents access to Sanity via 12 tools. Connect it to any Aerostack workspace and your agents can interact with Sanity directly.
| Tool | Description |
|---|---|
query | Run a GROQ query against the Sanity dataset |
get_document | Get a document by its ID |
create_document | Create a new document in Sanity |
patch_document | Update specific fields in an existing document |
delete_document | Delete a document from Sanity |
list_projects | List all Sanity projects accessible with the current token |
get_project | Get details about a Sanity project |
list_datasets | List datasets in a Sanity project |
list_schemas | List all document types defined in the dataset |
count_documents | Count documents of a specific type |
list_recent_documents | List recently updated documents of a given type |
get_api_stats | Get API usage statistics and project details |
| Variable | Required | Description |
|---|---|---|
SANITY_API_TOKEN | Yes | Personal access token or service token from the provider |
SANITY_PROJECT_ID | Yes | See provider documentation |
SANITY_DATASET | Yes | See provider documentation |
Add the following secrets under Project → Secrets:
SANITY_API_TOKENSANITY_PROJECT_IDSANITY_DATASETOnce added, every AI agent in your workspace can use Sanity tools automatically.
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-sanity \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-SANITY-API-TOKEN: your-sanity-api-token' \
-H 'X-Mcp-Secret-SANITY-PROJECT-ID: your-sanity-project-id' \
-H 'X-Mcp-Secret-SANITY-DATASET: your-sanity-dataset' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query","arguments":{}}}'
MIT
Live Endpoint
https://mcp.aerostack.dev/s/aerostack/mcp-sanity
Sub-50ms globally · Zero cold start
@aerostack
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.
by @aerostack
Discover and invoke any MCP, Function, or Skill published to the Aerostack marketplace — the universal AI capability hub.
by @aerostack
Search indexes, manage records, browse data, and configure ranking in Algolia — AI-native instant search access.
by @aerostack
Query documents, run AQL, traverse graphs, and manage collections in your ArangoDB database — AI-native multi-model database access.
by @aerostack
Post, schedule, and analyze social media across 13 platforms — Facebook, Instagram, X, LinkedIn, TikTok, Bluesky, Threads, Reddit, Pinterest, YouTube, Telegram, Snapchat, Google Business.
by @aerostack
Manage projects, to-dos, messages, schedules, and campfire chats in Basecamp — AI-native project management.
by @aerostack
Run SQL queries, list datasets and tables, inspect schemas, and export results from Google BigQuery — AI-native data warehouse access.
Yes. The Sanity MCP includes a create_document tool that lets Claude create documents in your Sanity account from a plain-English prompt. You can also update and delete documents — no Sanity UI needed.
Yes. The Sanity MCP includes tools to list and retrieve projects from your Sanity account. Claude can filter, sort, and summarize projects based on your instructions.
Yes. The Sanity MCP uses the open Model Context Protocol standard, so it works in Claude, Cursor, Windsurf, and any other MCP-compatible AI tool. All 12 Sanity tools are available everywhere you connect it — install once on Aerostack.
Yes. The Sanity MCP includes tools to update documents in your Sanity account. Tell Claude what to change in plain English — it reads the current state and applies the update via the Sanity API.