Home / Sanity MCP / Setup guides / VS Code
How to add the Sanity MCP server to VS Code (GitHub Copilot)
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).
VS Code setup
File: .vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "sanity_api_token",
"description": "Sanity API token",
"password": true
}
],
"servers": {
"sanity": {
"type": "http",
"url": "https://mcp.sanity.io",
"headers": {
"Authorization": "Bearer ${input:sanity_api_token}"
}
}
}
}- Save the file and click Start above the server entry. VS Code asks you to trust the server.
- VS Code asks for the token on first start and stores it as a secret.
We ran the hands-on test in a reference client, not in VS Code. This config follows VS 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