How to Use the Hygraph (Headless CMS) MCP in Cursor
Generate code using live schema data from Cursor by connecting directly to your headless CMS.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Hygraph (Headless CMS) MCP to Cursor
Create your Vinkius account to connect Hygraph (Headless CMS) to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Generate Code from Live Cursor Schema Queries
The `get_model_fields` tool inspects your internal schema arrays and delivers exact Hygraph configurations directly to the Cursor agent. This allows the editor to write TypeScript interfaces that match your actual headless API response structures. By using `execute_graphql_query`, the agent pulls live production data to test Cursor components instead of relying on outdated mock JSON files. You get working code built against real, current Hygraph content payloads.
Write Mutations with this MCP Server
This MCP Server exposes `execute_graphql_mutation` so Cursor can write direct schema updates as you build your frontend components. The editor sends the mutation payload directly to Hygraph through the active terminal process. To verify the changes, `list_schema_introspection` runs an immediate check to determine which models your Hygraph project currently hosts. This loop ensures your local Cursor codebase and headless schema stay aligned.
Create and Publish Content from the Editor
The `create_cms_document` tool dispatches validation checks to generate new dynamic content models directly from your Cursor workspace. Cursor uses this to seed test databases or set up mock content blocks during feature development. Once your code changes are ready, `publish_cms_document` triggers the live shift of draft properties. Running this MCP Server allows you to push new Hygraph content types live without switching from your code editor to a web browser.
Set up Hygraph (Headless CMS) MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the Hygraph (Headless CMS) MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent Hygraph (Headless CMS) transactions." If the MCP tools are loaded correctly, Cursor will call the Hygraph (Headless CMS) tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"hygraph-headless-cms-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Hygraph. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Hygraph (Headless CMS) MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Hygraph (Headless CMS) MCP today
We host it, we monitor it, we maintain it. You just paste one token.