# Sanity (MCP server)

> Sanity is an MCP server that adds developer tools to AI assistants such as Claude Code, Cursor and VS Code. Direct access to your Sanity projects (content, datasets, releases, schemas) and agent rules. It has 187 GitHub stars, is released under the MIT license and runs as a remote server at https://mcp.sanity.io.

Collection of resources to help AI agents build better with Sanity. Supports Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode, and any other editor/agent compatible with MCP or Agent Skills.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/sanity-io/agent-toolkit |
| GitHub stars | 187 |
| License | MIT |
| Language | JavaScript |
| Transport | streamable-http |
| Packages | none (remote only) |
| Remote URL | https://mcp.sanity.io |
| Needs API key | no |
| Official | yes |
| Works with | Claude Code, Cursor, VS Code, Claude.ai, ChatGPT |
| Category | Developer tools |
| Latest release | none |
| Last commit | Sep 16, 2026 |
| MCP registry name | io.sanity.www/mcp |

## Install

### Claude Desktop

```
Settings > Connectors > Add custom connector
URL: https://mcp.sanity.io
```

Remote servers are added as a custom connector, not in claude_desktop_config.json.

### Claude Code

```sh
claude mcp add --transport http sanity "https://mcp.sanity.io"
```

### Cursor (.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sanity": {
      "url": "https://mcp.sanity.io"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "sanity": {
      "type": "http",
      "url": "https://mcp.sanity.io"
    }
  }
}
```

Config formats checked against the official docs on 2026-10-07.

## Tools

- `query_documents`: run GROQ queries directly
- `create_documents`: create draft documents from structured content, or version documents when a release ID is provided
- `patch_documents`: surgical edits to existing documents; published documents are edited by creating or updating drafts
- `publish_documents`: / unpublishdocuments — manage document lifecycle
- `deploy_schema`: / getschema — deploy MCP-managed schemas and inspect deployed schemas
- `deploy_studio`: deploy a hosted Studio bound to an MCP-managed schema
- `create_release`: / listreleases — create and inspect Content Releases
- `create_version`: create version documents for releases
- `generate_image`: / transformimage — AI image generation and editing
- `whoami`: verify the authenticated Sanity user
- `get_project_studios`: list Studio applications linked to a project
- `search_docs`: / readdocs — search and read Sanity documentation
- `list_sanity_rules`: / getsanityrules — load agent rules on demand
- `give_feedback`: report MCP tool errors, missing capabilities, confusing output, or documentation issues

## Similar MCP servers

- [Gemini CLI](https://appsgit.com/mcp-servers/gemini-cli): An open-source AI agent that brings the power of Gemini directly into your terminal. (107,240 stars, Apache-2.0)
- [Front-End Checklist](https://appsgit.com/mcp-servers/front-end-checklist): Review frontend code and live pages against 386 quality-gated web development rules. (74,390 stars, MIT)
- [Claude Flow](https://appsgit.com/mcp-servers/claude-flow): AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev. (74,016 stars, MIT, needs API key)
- [Codebase Memory](https://appsgit.com/mcp-servers/codebase-memory): Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens. (45,917 stars, MIT)
- [Bytedance Filesystem](https://appsgit.com/mcp-servers/bytedance-filesystem): MCP server for filesystem access. (39,206 stars, Apache-2.0)
- [GitHub](https://appsgit.com/mcp-servers/github): Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language. (33,414 stars, MIT, official, needs API key)

---

Canonical page: https://appsgit.com/mcp-servers/sanity
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
