You're building a frontend in Cursor and need content from a CMS. Instead of switching between Cursor and the CMS admin panel, what if Cursor could talk to your CMS directly? With an MCP server, it can.
Why Use a Headless CMS with Cursor?
When you build websites or apps in Cursor, you often need to set up content structures: blog posts, products, pages, settings. Normally that means opening the CMS admin, creating collections, adding fields, and inserting test data. Then you go back to Cursor and write the frontend code to fetch that data.
With an MCP-compatible CMS, the workflow is different. You stay in Cursor and tell the AI what you need:
- "Create a Blog Posts collection with title, slug, content, featured image, and published date"
- "Add 5 sample blog posts with realistic content"
- "Now generate a Next.js page that lists these posts"
Cursor handles both the CMS setup and the frontend code in one conversation. No tab switching, no copying field names between browser and editor.
What is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI tools interact with external systems. Cursor supports MCP natively. When you add an MCP server, Cursor gains new tools it can call during conversations. The ElmapiCMS MCP server provides 17 tools covering the entire CMS API: collections, fields, entries, assets, and project info.
You configure MCP servers in ~/.cursor/mcp.json. Once added, Cursor discovers the available tools and can use them when you ask questions or give instructions about your CMS content.
1. NomaCMS
NomaCMS is our managed, AI-native headless CMS. You get structured content, a REST API, a JavaScript SDK, and AI built in for writing, translation, and editing. Ship to Next.js, Nuxt, Astro, or other stacks without running your own CMS server. Connect Cursor, Claude Code, or other MCP-compatible tools using the Noma MCP server. Plans start at $15 per month after a 7-day free trial; see nomacms.com for tiers and limits.
Why consider NomaCMS
- Managed cloud with global CDN for assets and no server ops on your side
- AI assistant, inline field actions, and one-click entry translation
- REST API and SDK with predictable shapes for frontends and automation
- MCP server for AI editors (
npx -y @nomacms/mcp-server) - Project auth, webhooks, locales, and team workspaces on paid plans
Best for
Teams that want a hosted CMS with AI-first workflows and delivery infrastructure included, not only a self-hosted install.
ElmapiCMS + Cursor
ElmapiCMS is a self-hosted headless CMS built with Laravel. It has an official MCP server published on npm. One ElmapiCMS installation can host unlimited projects, each with isolated content, API keys, and permissions.
Why ElmapiCMS for Cursor
- Official MCP server – Published on npm, maintained and documented
- 17 tools – Collections, fields, entries, assets, project info
- Advanced queries – 13 filter operators, OR groups, relation filters, pagination, sorting
- Built-in resources – Cursor reads field types and query reference docs automatically
- Schema-aware code generation – Cursor reads your collections via MCP, then generates typed frontend code that matches your exact fields
- Multi-project – Add multiple MCP configs for different projects
- $149 one-time – No monthly fees, no per-seat pricing
Setting Up ElmapiCMS in Cursor
You need Node.js 18+, a running ElmapiCMS instance, and an API token with the abilities you need (read, create, update, delete, admin).
1. Install the MCP server
npm install -g @elmapicms/mcp-server2. Get your credentials
In the ElmapiCMS admin panel, go to your project's Settings → API Access. Copy the Content API Endpoint, the Project ID (UUID), and create an API token with the abilities you want Cursor to have.
3. Add to Cursor configuration
Add the MCP server to ~/.cursor/mcp.json:
{
"mcpServers": {
"elmapicms": {
"command": "npx",
"args": ["@elmapicms/mcp-server"],
"env": {
"ELMAPI_API_URL": "https://your-domain.com/api",
"ELMAPI_API_KEY": "your-api-key",
"ELMAPI_PROJECT_ID": "your-project-uuid"
}
}
}
}Then go to Settings → MCP in Cursor and verify the server is running. You should see elmapicms listed with a green status.
What You Can Do
Once connected, you can ask Cursor things like:
- Create collections – "Create a Products collection with name, slug, price, description, and image fields"
- Add fields – "Add a 'category' relation field to the Products collection"
- Insert content – "Create 10 sample products with realistic data"
- Query entries – "List all products where price is less than 50, sorted by name"
- Upload assets – "Upload this image as an asset"
- Generate frontend code – "Read the Products collection schema and generate a Next.js page that displays them"
The query tool supports 13 operators (eq, lt, like, in, between, etc.), OR groups, and relation filters. You describe what you want; Cursor builds the query.
Example Workflow
Here's what a typical Cursor + ElmapiCMS session looks like:
- You: "Create a Blog Posts collection with title (text, required), slug (text, required), content (richtext), excerpt (longtext), featured image (media), and published date (date)"
- Cursor: Creates the collection and all fields via MCP tools. Shows you each step.
- You: "Add 3 sample blog posts with realistic content"
- Cursor: Creates 3 published entries with real-looking titles, content, and dates.
- You: "Now generate a Next.js page that fetches and displays these blog posts using the ElmapiCMS JS SDK"
- Cursor: Reads the collection schema via MCP, then writes a typed Next.js page that matches your exact field names.
The entire backend setup and frontend code happens in one conversation, in one editor.
Other CMS Options for Cursor
Most headless CMS platforms (Strapi, Payload, Directus, Sanity, Contentful) do not provide an official MCP server. You can still use them with Cursor by having Cursor write code that calls their REST or GraphQL APIs, but Cursor cannot directly manage those CMSes through native tools. It would need to generate scripts or API calls rather than operating the CMS in real time.
ElmapiCMS is one of the few headless CMS platforms with a dedicated, maintained MCP server. If tight Cursor integration matters to your workflow, it's worth considering.
Conclusion
Cursor with an MCP-compatible headless CMS is a fast way to build content-driven projects. The ElmapiCMS MCP server gives Cursor 17 tools covering the full CMS API. Set up collections, insert content, run queries, and generate matching frontend code, all from inside Cursor. Install the MCP server, add your credentials, and your CMS becomes part of the AI workflow.