Connect Cursor
Cursor connects with an API key, sent as a header. The server is https://brainlets.ai/mcp.
Steps to connect
- Create an API key under API keys on brainlets.ai, and copy it. It's shown once.
- In Cursor, open Settings → MCP (Tools & Integrations) → New MCP server. That opens
~/.cursor/mcp.json; a project's own servers go in.cursor/mcp.jsoninstead. - Add the server below, with your key in place of
<api-key>, and save. - Back in Settings → MCP, check that brainlets is on and lists its tools. Use it from the chat in Agent mode.
{
"mcpServers": {
"brainlets": {
"url": "https://brainlets.ai/mcp",
"headers": {
"Authorization": "Bearer <api-key>"
}
}
}
}What happens at sign-in
- There's no sign-in page: Cursor sends your API key with every request, and the key acts as you, with everything an agent can do (create, change, delete and run your brainlets, and link services).
- Treat it like a password. Use one key per app, so you can revoke one without the others, and keep it out of anything you commit or share.
- A key can't read your other keys or secrets, or create keys.
A first prompt to try
List my brainletsCursor calls list_brainlets and shows what you have (nothing yet, on a new account). Then try:
Make a brainlet that takes a URL and returns a three-line summary of the page, then run it on https://example.comSearch the published brainlets for one that checks DNS records
Running a brainlet is an action that may not be undone, so Cursor asks before each run unless you've told it to always allow them.
Common problems and fixes
- Cursor opens a browser to sign in, then says clients from its host aren't accepted.
- The header is missing, so Cursor tried to sign in instead. Sign-in works only for Claude and ChatGPT; check the
headersblock and its spelling. - A project's
.cursor/mcp.jsonwith the key ended up in git. - Revoke that key under API keys and make a new one. Keep keys in
~/.cursor/mcp.json, which is yours alone. - "Sign in (OAuth) or send an API key" (401).
- The key is missing, mistyped or revoked. The header is exactly
Authorization: Bearer <api-key>; make a new key under API keys if in doubt. - A run comes back refused, naming a quota.
- You've used that resource for the period. Ask "What's my usage?" to see how much is left and when it resets.
- "Too many requests" (429).
- A rate limit: wait the time it gives and try again.
How to disconnect
Delete the brainlets entry from mcp.json (or turn it off in Settings → MCP), and revoke its key under API keys.
Revoking the key stops it at once, wherever it's used.
Your brainlets, runs and linked services stay as they are.