Context
MCP server by sanity-io Verified · npm:@sanity
Sanity Context gives production AI agents structured, read-only access to content in a Sanity dataset. It supports GROQ queries, reference traversal, and semantic search for search and support features.
Install Context
Built from the published package, never by AI.
claude mcp add context -- npx -y @sanity/contextRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"context": {
"args": [
"-y",
"@sanity/context"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"context": {
"args": [
"-y",
"@sanity/context"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"context": {
"args": [
"-y",
"@sanity/context"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add context -- npx -y @sanity/context{
"mcpServers": {
"context": {
"args": [
"-y",
"@sanity/context"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add context npx -y @sanity/contextGemini 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 context block.
About
Sanity Context is a hosted MCP endpoint that connects AI agents to content stored in the Sanity Content Lake. The content is structured, queryable data rather than pages or HTML. Agents can filter by fields, follow references between documents, and combine structured GROQ queries with semantic search.
You create an endpoint in the Context app in the Sanity Dashboard or with the Sanity CLI, then connect your agent to its MCP URL using an organization API token. An endpoint can serve a live dataset in GROQ mode, Knowledge Bases in beta, or both. The source describes it as built for production agents that serve end users, with read-only, scoped access. It is separate from the Sanity MCP Server, which targets AI coding assistants.
Written from the project's README and checked against it.
Tools it gives your assistant
Read schemaLets the agent read the schema of the deployed Sanity project (GROQ mode).Run GROQ queriesRuns GROQ queries against the dataset, with optional semantic search (GROQ mode).Search Knowledge BaseSearches and reads Knowledge Base entries (Knowledge Base mode, beta).
What you need
- Context enabled for your Sanity organization
- A Sanity project with content and a deployed schema from Studio v5.1.0 or later (GROQ mode)
- An organization API token with Context permissions
- An LLM API key from Anthropic, OpenAI, or another provider
Try asking
- Find trail running shoes under $150 in my product catalog.
- Show products in the shoes category with their brand references.
- Search my knowledge base for the return policy.
Good to know
- Designed for read-only, scoped access by production agents.
- Knowledge Base mode is in beta.
- Project tokens are not accepted; an organization API token is required.
- Recording agent conversations for Insights needs Editor permissions.
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 Context
All alternatives →Oh My Posh Validator is listed as an MCP server, but the source is the README for oh-my-posh, a cross platform prompt theme engine. It does not describe an MCP server, tools, or schema validation.
Sim is a workspace for building, deploying and managing AI agents and workflows. Its MCP server lets Claude, Claude Code, Codex or another MCP client manage workspaces, workflows, tables, knowledge bases, files and logs.
Omnara deploys durable AI agents on any model and any machine. It is an open-source, self-hostable managed agent platform under Apache 2.0, with a REST API, TypeScript SDK, CLI, and MCP server.
Strata is an MCP server from Klavis AI for progressive tool usage, described as a way to optimize the AI agent's context window. The repository is deprecated, but it remains public for reference and for local or hosted use.
VoiceMode is an MCP server that adds voice conversations to Claude Code and other MCP capable agents. It uses speech-to-text and text-to-speech. It suits people whose hands or eyes are busy.
Gives an AI agent access to the skills, plugins, MCP connections, and Google Workspace and Microsoft 365 capabilities assigned to you by your OpenWork organization, through one OAuth MCP URL. Intended for people and teams who want to reuse the same setup across agents, tools, and machines.
Compare with Oh My Posh Validator, Sim or Omnara
Context: common questions
Is Sanity Context the same as the Sanity MCP Server?
No. The source says Sanity Context is for production agents that serve end users, while the Sanity MCP Server gives AI coding assistants like Cursor and Claude Code access to your workspace.
Does Sanity Context use embeddings?
It supports semantic search alongside structured queries. The source says embeddings are used for exploration and structured GROQ queries for precision.
Can I still use the Studio plugin?
The source says the Studio plugin was removed in version 3.0.0 and points to a migration guide.
How do I install Context?
In Claude Code run claude mcp add context -- npx -y @sanity/context. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Context the official server?
Context is published by npm:@sanity from its verified domain in the official MCP Registry.
Is Context free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is Context safe to use?
It scores 76 of 100. Grades: maintenance A, licence F, 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 Context?
Similar MCP servers: Oh My Posh Validator, Sim, Omnara, strata.
Does Context 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.
