Managing content in a headless CMS used to mean constantly switching between your code editor and a browser-based studio. That back-and-forth wasn’t just annoying — it slowed down development and broke focus.
With the introduction of Sanity MCP (Model Context Protocol) and GitHub Copilot in VS Code, that context-switching is now a thing of the past.
You can query, create, update, and publish content directly from your editor — simply by describing what you want in natural language.
What Is Sanity MCP?
MCP (Model Context Protocol) is an open standard that allows AI assistants to communicate with external tools in a structured way.
With the official MCP server from Sanity, tools like GitHub Copilot can directly interact with your content.
The official MCP endpoint:
https://mcp.sanity.io
Through this integration, Copilot can:
List datasets and schemas
Query documents using GROQ
Create new documents
Patch and update existing content
Publish or unpublish drafts
Instead of writing API calls or opening Sanity Studio, you simply tell Copilot what you want.
Your code editor is no longer just for development — it becomes a complete content command center.
Final Thoughts
If you’re working with modern headless CMS architecture, adopting MCP is not optional — it’s the next step forward.
Start small:
Connect your project
Try simple queries
Gradually automate workflows
Soon, you’ll realize:
You’re not just managing content anymore — You’re running content operations powered by AI
Frequently Asked Questions
What is How We Use Sanity MCP in Visual Studio Code Copilot?⌄
Discover how the Sanity MCP integration with GitHub Copilot in Visual Studio Code lets you query, create, and manage your Sanity content directly from your editor using AI — no browser required.