How to Use the Contentful MCP in Cursor
Generate code in Cursor using live content schemas and draft entries fetched directly from your Contentful spaces.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Contentful MCP to Cursor
Create your Vinkius account to connect Contentful 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 Typed Code from Live Contentful Schemas via MCP
The `get_content_type` tool fetches your live Contentful schemas directly into Cursor to generate TypeScript interfaces. Instead of writing types by hand or running outdated codegen scripts, Cursor pulls the exact field definitions from your space. Your generated frontend components match your headless API fields on the first try. When building a new React component, Cursor uses this schema data to write accurate props and rendering logic. It knows exactly which fields can be null and which are localized, saving you from runtime errors.
Test UI Components in Cursor with Real Contentful Data
The `get_entry` and `list_entries` tools pull real production or staging content directly into your Cursor editor. You can feed actual JSON payloads into your mock files or unit tests instead of inventing fake placeholder text. This makes it easy to see how your CSS handles long German headlines or missing images. By querying your live space, Cursor builds realistic test suites that reflect your actual content. You do not have to spend hours mimicking API responses because the editor gets the exact payload your frontend will receive.
Manage Contentful Spaces During Development
The `list_spaces` and `list_environments` tools let Cursor detect your active Contentful environments while you write code. When you switch git branches to work on a staging feature, you can tell Cursor to point its queries to a matching staging environment. The editor keeps your local development environment perfectly aligned with your headless CMS. This eliminates configuration drift. Cursor checks which spaces are available, verifies your active environment, and helps you update your local environment files with the correct IDs.
Set up Contentful 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 Contentful 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 Contentful transactions." If the MCP tools are loaded correctly, Cursor will call the Contentful tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"contentful-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 Contentful. 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 Contentful MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Contentful MCP today
We host it, we monitor it, we maintain it. You just paste one token.