TL;DR. Open Cursor → Settings → Cursor Settings → MCP → Add new MCP server. Paste the JSON config and save. Cursor picks up the change immediately. For Hatchable, grab a free token at hatchable.com and paste it into the Authorization header.
What is an MCP server?
An MCP server (Model Context Protocol) is an external service that Cursor's agent can call — create files, deploy apps, run queries, hit an API. Any service that speaks MCP can be plugged in, and Cursor will let the agent invoke its tools as part of a conversation.
Hatchable's MCP server lets Cursor's agent create Hatchable projects, deploy code, and manage the project's database — all without leaving the editor.
Before you start
- Cursor installed — any recent version. Older Cursor builds used a different MCP UI; if you don't see an MCP tab in Settings, update Cursor first.
- A bearer token for the MCP server you're adding. For Hatchable, click Copy on the Cursor snippet at hatchable.com — the config already includes a fresh token.
Add the server
-
Open Cursor's MCP settings
Settings → Cursor Settings → MCP. You'll see a list of any servers already configured and an Add new MCP server button.
-
Paste the JSON config
Cursor uses JSON for MCP server entries. For Hatchable:
{ "mcpServers": { "hatchable": { "url": "https://hatchable.com/mcp", "headers": { "Authorization": "Bearer YOUR_TOKEN" } } } }Swap
YOUR_TOKENfor your actual token. If you're adding multiple servers, repeat the block insidemcpServerswith a different key name for each one. -
Save and confirm
Cursor will re-read the config on save. Back on the MCP page, your new server should show a green "connected" indicator. If it stays red, jump to Troubleshooting below.
-
Ask the agent to use it
Open the agent panel (⌘+L on macOS) and give it a task that requires the server. For Hatchable:
"Create a new Hatchable project called hello-world with a page that says hi, and deploy it."
The agent will invoke the Hatchable tools. Cursor shows a permission prompt the first time each tool runs — accept to continue.
Where the config file lives
If you'd rather edit the config file directly than go through the UI, it's at:
| OS | Path |
|---|---|
| macOS | ~/Library/Application Support/Cursor/User/globalStorage/cursor.mcp/config.json |
| Windows | %APPDATA%\Cursor\User\globalStorage\cursor.mcp\config.json |
| Linux | ~/.config/Cursor/User/globalStorage/cursor.mcp/config.json |
.cursor/mcp.json in the repo root with the same mcpServers object. Cursor loads it automatically when the project opens.
Troubleshooting
Cursor shows the server as "not connected"
In order of frequency:
- Invalid JSON. Cursor silently fails on syntax errors. Paste your config into a JSON linter or run
cat ~/.config/Cursor/... | jq. - Expired token. Hatchable auto-signup tokens last 30 days from first use. Generate a new one at hatchable.com and update the
Authorizationheader. - Proxy or VPN. Cursor uses the system HTTPS stack — if your network inspects TLS, Cursor may refuse the connection. Test by running
curl -I https://hatchable.com/mcpfrom the same machine.
The server connects but the agent doesn't call its tools
Cursor's agent only invokes MCP tools when the conversation explicitly needs them. "Help me with this file" won't trigger Hatchable's deploy tool; "Deploy this to Hatchable" will. Be specific — name the tool ("deploy", "create project", "query the app database") in the prompt and the agent will find it.
I switched Hatchable tokens and the old one still works
That's normal — Cursor caches tool manifests. Restart Cursor (or just reload the agent panel) and the cache clears.
Deploy apps from Cursor to a free live URL.
Hatchable hosts everything Cursor builds. Free forever — bring your own AI.
Get started free →Frequently asked questions
Does Cursor support the same MCP servers as Claude Code?
Mostly yes. Any MCP server that speaks the HTTP transport works in both. The config format is different (JSON in Cursor, claude mcp add command in Claude Code) but the servers themselves are interchangeable.
Can I put my Hatchable token in an environment variable instead of the config file?
Cursor's MCP config resolves ${env:VAR_NAME} placeholders in header values. For example: "Authorization": "Bearer ${env:HATCHABLE_TOKEN}". Then set HATCHABLE_TOKEN in your shell and Cursor will pick it up at launch.
Do I need a paid Cursor plan to use MCP?
No. MCP support is available in the Cursor free tier. What's metered on Cursor's free tier is AI requests, not the MCP feature itself.
Can I add MCP to Cursor on a specific project only?
Yes — put the config at .cursor/mcp.json in the project root. Cursor loads project-scoped MCP servers on top of your global ones when the project opens.
Is the Hatchable token scoped to my account?
Yes. Each token Hatchable issues is tied to a single account. Sharing a token lets the holder create projects billable to that account — don't commit it to public repos.