Home / Sanity MCP / Setup guides / Claude Code
How to add the Sanity MCP server to Claude Code
Server URL: https://mcp.sanity.io
Sign-in: We tested it with an access token sent as an Authorization: Bearer header. The vendor also offers OAuth sign-in, which we did not test.
Our hands-on result: Works 18 of 18 tasks passed, tested Oct 17, 2026 with MCP TypeScript SDK (reference client).
Claude Code setup
claude mcp add --transport http sanity https://mcp.sanity.io \
--header "Authorization: Bearer $SANITY_API_TOKEN"- Run the command, then run claude mcp get sanity to confirm it connected.
We ran the hands-on test in a reference client, not in Claude Code. This config follows Claude Code's documented format for remote (Streamable HTTP) servers. If it fails for you, tell us and we will retest.
Same server, other clients
Full Sanity test report | Compare all tested connectors | Connector Weather