CLI reference
MCP CLI command reference
Reference documentation for the Sanity CLI mcp command.
New to the Sanity MCP server?
This is reference documentation for the CLI's MCP command. If you're new to the Sanity MCP server, check out our getting started guide.
npx sanity mcp --help
pnpm dlx sanity mcp --help
yarn dlx sanity mcp --help
bunx sanity mcp --help
Commands
configure
USAGE
$ sanity mcp configure
DESCRIPTION
Configure Sanity MCP server for AI editors (Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, VS Code)
EXAMPLES
Configure Sanity MCP server for detected AI editors
sanity mcp configure