Skip to content
MCP & agents
  1. Docs
  2. API
  3. MCP & agents

MCP & agents

Give an agent the whole Attria API. The MCP server exposes every endpoint as a tool, with the same key — or copy the docs as one Markdown file and paste them into any chat.

#The MCP server

URLhttps://app.attria.io/api/v1/mcp
TransportStreamable HTTP, stateless
AuthAuthorization: Bearer attria_sk_… — your API key
Tools40 — one per endpoint, named by its id

Replace <key> below with your key from Settings → API.

#Claude Code

Terminal
claude mcp add --transport http attria https://app.attria.io/api/v1/mcp \
  --header "Authorization: Bearer <key>"

Then ask for something: “Make a landing page for our spring sale in Attria and give me the link.” Claude picks the tools, answers the director's questions or sends auto, and hands back the artifact's url.

#Cursor

Add the server to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project:

mcp.json
{
  "mcpServers": {
    "attria": {
      "url": "https://app.attria.io/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer <key>"
      }
    }
  }
}

A project's .cursor/mcp.json is often committed. Keep the key out of git — put the server in your home directory's file instead.

#Other clients

Any MCP client that speaks Streamable HTTP and can send a header works the same way: the URL above, and Authorization: Bearer <key>. The tools describe themselves, including which ones can take minutes.

#How the tools behave

  • A tool's arguments are its endpoint's path, query and body fields, flattened into one object.
  • Write tools take an optional idempotency_key — the same guarantee as the header.
  • Studio turn tools default to background: true over MCP, because a call that holds for minutes times out in most clients. Call the turn tool, then poll the id it returns with studio_turn_get. Pass background: false to wait instead.
  • Unattended agents should send auto: true, so a director never stops to ask a question no one will answer.

#Copy for agent

For agents without MCP — or to brief one before it starts — Copy for agent at the top of this page puts the whole API on your clipboard as one Markdown guide: auth, turns, polling, idempotency, errors, and every endpoint with an example. Agents that browse can fetch it themselves at /docs/api/llms-full.txt, or start from the index at /docs/api/llms.txt.

#Tools

Generated from the same spec as the API reference:

ToolDoes
account_meWho this key acts as
studio_website_turnTalk to the Website Director · slow
studio_document_turnTalk to the Documents director · slow
studio_app_turnTalk to the App Builder · slow
studio_image_turnTalk to the Images director · slow
studio_video_turnTalk to the Video director · slow
studio_turn_getGet a Studio turn
studio_apps_listList the Studio's Content Apps
studio_app_runRun a Studio Content App · slow
websites_listList websites
websites_getGet a website and its build
documents_listList documents
documents_getGet a document with its full content
apps_listList apps
apps_getGet an app
images_boards_listList image boards
images_listList images
videos_listList video projects
agents_listList Agents
agents_createCreate an Agent from a description · slow
agents_getGet an Agent
agents_updateChange an Agent · slow
agents_activateTurn an Agent on · slow
agents_pausePause an Agent
agents_runs_listList an Agent's runs
agents_runs_createTalk to an Agent (run it) · slow
runs_getGet a run with its steps
approvals_listList approvals
approvals_decideApprove or reject an Agent action · slow
objects_listList Objects
objects_createCreate an Object
objects_getGet an Object
objects_updateChange an Object
objects_records_listList and query records
objects_records_createCreate a record
objects_records_getGet a record
objects_records_updateUpdate a record
objects_records_deleteDelete a record
objects_relationships_listList a record's relationships
objects_relationships_createLink a record to another