MCP server
brainlets.ai is an MCP server, so your agent (Claude, ChatGPT, Claude Code, Cursor…) can build brainlets for you: create one, run it, read what it did, fix the spec and run it again. The server is https://brainlets.ai/mcp.
Connect with one click
Claude, ChatGPT and Claude Code sign in with your brainlets.ai account, so there's no key to copy. Add the server's URL, sign in, and approve the app. You can disconnect it any time under API keys.
Claude Code: add the server, then run /mcp in Claude Code to sign in.
claude mcp add --transport http brainlets https://brainlets.ai/mcpClaude (claude.ai and the desktop app): Settings → Connectors → Add custom connector, with the URL above. ChatGPT: add it as a connector with the same URL.
Connect with an API key
For clients that take a header instead (Cursor, VS Code, your own scripts), create a key under API keys and send it as a bearer token.
{
"mcpServers": {
"brainlets": {
"url": "https://brainlets.ai/mcp",
"headers": {
"Authorization": "Bearer <api-key>"
}
}
}
}claude mcp add --transport http brainlets https://brainlets.ai/mcp \
--header "Authorization: Bearer <api-key>"A server added with a key doesn't fall back to signing in: use one or the other.
What an agent can and can't do
- Everything it does is as you, on your brainlets only, within your quotas and rate limits.
- It can link a service with its key, but it can never read a key back: keys are only added to your brainlets' requests. If you'd rather type the key yourself, the agent gives you a link to a filled-in form instead.
- Deleting a brainlet or a linked service needs its exact name, and puts it in the trash for 7 days; restore it from the agent or the dashboard.
- It can't create API keys or see webhook signing secrets.
Tools
Your agent sees these, with descriptions written for it.
create_brainletchangesCreate a new brainlet from a name and a spec (system_prompt, model tier, tool_grants, egress_allowlist and the rest). Use it when the user wants a new agent; to change an existing one, update it instead. Returns the brainlet with its id and slug: its URL is the runner host plus /<slug>/.
delete_brainletdestructiveMove one of the user's brainlets to the trash: its URL stops working at once and it leaves their lists, and it can be restored for 7 days, then it and its runs are gone. confirm must be the brainlet's exact name: get it with get_brainlet first and say which brainlet you mean. Only delete what the user asked you to.
get_brainletread-onlyGet one of the user's brainlets by id: its name, slug, public flag, current version and full current spec. Use it before changing a spec, to start from what's there.
get_brainlet_versionread-onlyGet one version of one of the user's brainlets by number, with its full spec. Runs record the version they ran, so use it to see the spec behind a run.
get_runread-onlyGet one run of the user's brainlets in full: its input and output, the model's tool calls step by step, blocked hosts, tokens, timing and error. Use it to find out why a run failed or did the wrong thing before changing the brainlet's spec.
get_usageread-onlyGet what the user's brainlets have used this period of each resource with a quota (house-model tokens, web searches, browser pages), the quota and when it resets. Use it when a run was refused with quota_exceeded, or before running something heavy.
link_servicechangesLink a service to the user's account with its key, so brainlets can use it: the provider (see list_service_providers), a name, and the provider's fields, the key included. The key is encrypted and only ever added to the brainlet's requests to that service; nothing returns it, you included. If the user hasn't given you the key, or the provider signs in with OAuth, use link_service_in_browser instead and let them finish it.
link_service_in_browserchangesGet a link for the user to finish linking a service in their browser: the dashboard's form for the provider, filled in with the name and non-secret fields you give, where they type the key themselves or sign in (OAuth providers). The key never passes through you. Where the chat can show it, the form appears right there; otherwise give the user the URL. Once they've saved it, the service shows in list_services.
list_brainlet_versionsread-onlyList every version of one of the user's brainlets, newest first, each with its full spec. Every update makes a new version; use this to see what changed or to find a spec to go back to.
list_brainletsread-onlyList the user's brainlets, newest first, each with its current spec and version. Use it to find a brainlet's id before reading, running or changing it.
list_removed_servicesread-onlyList the user's removed linked services still in the trash, with when each is gone for good. Use it to find one to restore.
list_runsread-onlyList the runs of the user's brainlets, newest first, a page at a time: each run's outcome, status, timing, tokens and error. Narrow it to one brainlet, a time range (since/until) or outcomes (outcome=model_error, repeatable). For older runs pass the page's next_before as before. Use it after running a brainlet, or to see how one has been doing; get_run has the full detail of one.
list_service_providersread-onlyList the kinds of service the user can link (API providers, model providers, MCP servers) and the fields each takes. Use it before linking a service or naming one in a spec.
list_servicesread-onlyList the user's linked services: each one's id, provider, name, what it's for (tool, model, mcp), its hosts and settings, never its keys. A brainlet uses one by naming its id in the spec's services; a model link's id goes in model.provider.
list_tool_grantsread-onlyList the tool grants a brainlet's spec can name in tool_grants, what each gives the brainlet's model, and the programs its shell can run. Use it when writing or fixing a spec: grant only what the task needs, and add egress_allowlist hosts for network grants.
list_trashread-onlyList the user's deleted brainlets still in the trash, newest first, with when each will be gone for good. Use it to find one to restore.
remove_servicedestructiveRemove one of the user's linked services: brainlets stop using it at once, an OAuth sign-in is revoked, and what it set up (e.g. a phone number's webhook) is undone. It can be restored for 7 days. confirm must be its exact name: list_services first, and say which one you mean. Only remove what the user asked you to.
restore_brainletchangesBring a deleted brainlet back from the trash, with its versions, runs and URL as they were. Use it when the user wants back a brainlet they deleted in the last 7 days.
restore_servicechangesBring a removed linked service back from the trash. A key link works again at once and its setup is redone; an OAuth link comes back needing the user to sign in again (relink it in the dashboard).
run_brainletchangesRun one of the user's brainlets with an input, as a call to its URL would, and return its answer: the output (text, cut at 64 KB), status, content type, the run's id and any hosts its allowlists blocked. Read the run with get_run (its tool calls step by step) to see why it did what it did, then fix the spec with update_brainlet and run it again. Runs use the owner's quotas; an async webhook brainlet answers at once with the id to read later.
update_brainletchangesChange one of the user's brainlets: its name, public flag and whole spec. It makes a new version (the old ones stay, see list_brainlet_versions), and runs use it at once. Send the full spec: start from get_brainlet's and change what needs changing.
update_servicechangesChange one of the user's linked services: its name, fields, hosts or enabled models, or replace its key (write-only: nothing returns it). Only what you send changes.