Repolode
sanity-io

sanity-io/agent-toolkit

Toolkit of MCP server access, agent skills and plugins that help AI coding agents build with the Sanity content platform.

Stars
192
Forks
30
Open issues
13
Last commit
3 hours ago

What is it?

Sanity Agent Toolkit gives AI coding agents the context and tools they need to build on Sanity. It provides a hosted MCP server that exposes Sanity projects to agents, covering GROQ queries, document creation and patching, publishing, schema deployment, Content Releases and image generation. It also ships a set of Agent Skills with best-practice guides for schema design, GROQ performance, Visual Editing, Portable Text, TypeGen, localization, SEO/AEO and content experimentation.

The toolkit works with Cursor, Claude Code, Codex, VS Code, Lovable, v0, Replit, OpenCode and any other client that supports MCP or the Agent Skills format. Installation can be done through the Sanity CLI, the `npx skills add` command, or as a plugin from the Claude Code and Cursor marketplaces. Users who prefer offline use can copy the skill reference files into their own project.

The repository includes slash commands for Claude Code such as `/sanity-review`, `/typegen` and `/deploy-schema`, along with manifests for the Agent Plugins specification and validation scripts for the plugin files.

Key features

  • 01Hosted MCP server for querying, creating, patching and publishing Sanity documents.
  • 02Schema deployment and inspection tools, plus support for Content Releases.
  • 03Agent Skills covering GROQ, schema design, Visual Editing, TypeGen and SEO/AEO.
  • 04Plugins for Claude Code, Cursor and Codex bundling MCP, skills and commands.
  • 05Setup via Sanity CLI or manual config for clients including VS Code, Replit and OpenCode.

Use cases

  • Letting an AI coding assistant read your Sanity schema and draft content while you build a site.
  • Adding Sanity best-practice guidance to Cursor or Claude Code when writing GROQ queries or Studio schemas.
  • Onboarding a new Sanity project with an agent that walks through Studio setup, content and frontend integration.
  • Reviewing an existing Sanity codebase for common schema and query issues.

Quick start

  1. 1

    Install the MCP server via the Sanity CLI (auto-configures Cursor, Claude Code and VS Code)

    npx sanity@latest mcp configure
  2. 2

    Or install the best practices agent skills

    npx skills add sanity-io/agent-toolkit
  3. 3

    Or add the Sanity MCP server to Claude Code manually

    claude mcp add Sanity -t http https://mcp.sanity.io --scope user

Things to know

  • MCP tools that generate images or create versions with instructions consume Sanity AI credits.

In collections

Topics

FAQ

What is agent-toolkit?
Toolkit of MCP server access, agent skills and plugins that help AI coding agents build with the Sanity content platform. Sanity Agent Toolkit gives AI coding agents the context and tools they need to build on Sanity. It provides a hosted MCP server that exposes Sanity projects to agents, covering GROQ queries, document creation and patching, publishing, schema deployment, Content Releases and image generation. It also ships a set of Agent Skills with best-practice guides for schema design, GROQ performance, Visual Editing, Portable Text, TypeGen, localization, SEO/AEO and content experimentation.
Is agent-toolkit free to use? What license does it have?
agent-toolkit is open source under the MIT license. Check the license terms before using it in commercial products.
Is agent-toolkit still maintained?
Actively maintained. The last commit to agent-toolkit was on Oct 22, 2026.
What can I use agent-toolkit for?
Letting an AI coding assistant read your Sanity schema and draft content while you build a site. Adding Sanity best-practice guidance to Cursor or Claude Code when writing GROQ queries or Studio schemas. Onboarding a new Sanity project with an agent that walks through Studio setup, content and frontend integration. Reviewing an existing Sanity codebase for common schema and query issues.
How do I install agent-toolkit?
Install the MCP server via the Sanity CLI (auto-configures Cursor, Claude Code and VS Code): npx sanity@latest mcp configure Or install the best practices agent skills: npx skills add sanity-io/agent-toolkit Or add the Sanity MCP server to Claude Code manually: claude mcp add Sanity -t http https://mcp.sanity.io --scope user
Where can I get agent-toolkit?
The source code and installation instructions are on GitHub: https://github.com/sanity-io/agent-toolkit

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects