Connect Sanity MCP to your AI agents, securely.
One secured endpoint for every Sanity call your AI agents make, scoped per user, inspected, and logged.Try Sanity MCP now
What your agents can ask once Sanity MCP is connected.
“Run a GROQ query for all articles written by Mark”
“List all releases in this dataset”
“Add localization to my article document type”
“Help me migrate existing content to a new schema shape”
“Which documents reference this Media Library asset?”
“Show me the deployed schema for this workspace”
Select the tools your AI agents can call
54 tools from the Sanity MCP schema.
Showing 54 tools
What Sanity MCP exposes
Sanity MCP groups its 54 tools into 10 categories, each with a suggested starting policy.
| Category | Covers | Access | Suggested policy |
|---|---|---|---|
| Documents | GROQ queries, direct ID lookups, creating drafts and release versions, patching documents, publishing, unpublishing, discarding drafts and versions, and creating and listing releases | Read / Write | Edits are saved to the draft or release version, never directly to published content. Scheduling, publishing, archiving and deleting a release are deliberately not available here and must be done in Studio or the HTTP Actions API |
| Media Library | Listing libraries, their schema, GROQ queries and ID lookups, creating collections, patching the safe subset of asset metadata, publishing and discarding asset drafts, listing what references an asset and linking assets into project documents | Read / Write | media_library_patch_documents is deliberately narrow, but cdnAccessPolicy is published-only and takes effect immediately, so it bypasses the draft step the rest of the surface relies on |
| Assets & Uploads | Uploading images, video and files to a dataset or Media Library from a public URL, a one-use upload URL, a local file or a ChatGPT web attachment, plus upload status polling and CLI guidance | Read / Write | The from_url tools make Sanity fetch an arbitrary public HTTPS URL on the agent's behalf; pin the allowed sources. File uploads are capped at 50 MiB |
| Projects & Access | Organizations, projects, studio applications, creating a project, listing, adding and deleting CORS origins, and identifying the authenticated account | Read / Write | create_project initializes a project with its own dataset and API tokens. The CORS tools change which browsers can reach the project, so they are a security control rather than a convenience |
| Docs & Rules | Searching and reading Sanity documentation, listing and loading best-practice development rules, and submitting product feedback | Read / Write | Account-independent; safe to allow broadly |
| Schema & Studio | Fetching a deployed schema, listing every deployed schema by source, deploying schema types to the cloud and deploying a managed Studio bound to an MCP-managed schema | Read / Write | deploy_schema changes how content is validated and presented for everyone; deploy_studio creates a publicly reachable hosted Studio URL |
| Datasets | Listing datasets, creating one with access settings and modifying a dataset's name or access control | Read / Write | update_dataset can change access control settings, which is what decides whether a dataset is public |
| AI Images | Triggering async AI image generation for a document field and async AI transformation of an existing image | Read / Write | The only two tools that consume AI credits; Sanity suggests disabling them in the client if credit usage is a concern |
| Search | Listing the embeddings indices available for a dataset and running a semantic search against one | Read | Read-only |
| CLI | Running a limited subset of Sanity CLI commands and returning their output | Read / Write | A meta-tool: the tool name says nothing about the command run. Commands execute without a shell and cannot touch the filesystem or change authentication, but the reachable surface is the CLI's, not this tool list's |
Connect Sanity MCP to your AI agent
Four steps, under ten minutes.
- 01
Sign in to NeuralTrust
Open the NeuralTrust platform, sign in and go to Getting started, then Connect your tools.
- 02
Choose your agent
When asked which agent you use, pick Claude Code, Codex, Cursor, Windsurf, Copilot or your own code.
- 03
Connect Sanity
Find Sanity in the tool list and connect it.
- 04
Connect your agent
Follow the steps on screen to add the config to your agent, then send the test prompt.
Permissions down to the single tool
You do not allow Sanity MCP or block it. You allow the exact tools each agent can call, one by one.
| Sanity MCP | 54 TOOLS AVAILABLE |
|---|---|
| Code review agent | 4 tools, read only |
| Issue triage bot | 9 tools |
| Platform team assistant | all 54 tools |
- Tool by toolConnecting the server is not the unit of access. Each tool is granted on its own.
- Default denyA tool you have not enabled is never exposed to the agent.
- Approval on writesTools that change or delete things can require a human to confirm.
Is Sanity MCP secure?
One endpoint instead of raw credentials. Every call is checked against policy and logged.
| AI agentsConnect through your MCP client configuration. | NeuralTrustApply controls based on your configuration. | Sanity MCP54 documented tools. Availability varies with the account's project and dataset permissions, and the set changes as Sanity ships updates. |
|---|---|---|
| Coding assistants | Connection & credentialsper user | Documents12 tools |
| Internal copilots | Tool access policiesdeny by default | Media Library10 tools |
| Workflow automations | Request & response inspectioninline | Projects & Access8 tools |
| Compatible MCP clients | Activity monitoringalerts and logs | All other tools24 tools |
Use Sanity MCP with any AI agent framework
Setup guides for the tools your team already uses.
- Claude CodeSetup guide
- CursorSetup guide
- CodexSetup guide
- WindsurfSetup guide
- Gemini CLISetup guide
- Google AntigravitySetup guide
- GitHub CopilotSetup guide
- Claude EnterpriseSetup guide
- Microsoft Copilot StudioSetup guide
- Open WebUISetup guide
- LangChainSetup guide
- HaystackSetup guide
- Strands AgentsSetup guide
- Vercel AI SDKSetup guide
- n8nSetup guide
Common questions about running Sanity MCP through TrustGate.
Other MCP servers
More servers from the catalog.
Contentful
Securely connect your AI agents to Contentful through TrustGate: entries, content types, assets, releases, locales, taxonomy, AI Actions and editor interfaces, scoped per agent and logged.
82 toolsView)
Storyblok
Securely connect your AI agents to Storyblok through TrustGate: finding and running Management API operations on stories, components and assets, plus asset uploads, scoped per agent and logged.
7 toolsViewWebflow
Securely connect your AI agents to Webflow through TrustGate: sites, pages, CMS collections, elements, components, styles, assets, webhooks and the live Designer session, scoped per agent and logged.
37 toolsView
Connect Sanity MCP instantly
Pick the tools, point your agent at TrustGate, and Sanity MCP is live: scoped, inspected, logged.