Skip to main content
anyformat runs a remote Model Context Protocol server. Any MCP host, such as Claude Code, VS Code or Cursor, connects to it and calls anyformat as tools. You add the URL and sign in with your anyformat account; an agent with no browser sends an API key instead. The tools are the same v3 endpoints you call by hand, under the same rate limits and error envelope.

Endpoint

/mcp and /mcp/ are the same endpoint. There is no stdio package; a host that only speaks stdio connects through a bridge, mcp-remote or fastmcp-remote (below).

Auth

Add the URL, sign in. A host listed under Connect starts a browser login the first time it connects: it reads the server’s 401 challenge, finds anyformat’s sign-in at login.anyformat.ai, and you sign in as you do on app.anyformat.ai. No key is involved. The host asks for the read and write permissions; a tool your account cannot use is left out of the list.
  • Your account needs the Member role or above in an organization. A Viewer is told to ask for the Member role.
  • If you have not accepted the Terms of Service and Privacy Policy, sign in to app.anyformat.ai once and accept them.
  • Each call acts in one organization. With one organization nothing else is needed. With several, a client that supports it asks you which one in its own prompt. Any other client gets your organizations (name and id) and the call does nothing, so the agent asks you in the chat and repeats the call. The choice is remembered for the sign-in: say “use organization X” to switch, which the agent does with choose_organization, or pass an organization_id on a call. The choice applies to every chat that uses this sign-in; switching in one chat switches the others. So that a chat never writes in an organization another chat switched to, a tool that changes anything needs an organization_id when you have more than one organization, or are a support agent: without it the call is refused, naming the organization it would have used, and the agent repeats it with the id or asks you. Reads keep using the remembered organization.
An unsigned or expired session returns 401 with a WWW-Authenticate challenge that points the host at the sign-in. The body is the API’s error envelope: MISSING_API_KEY with no credential, AUTH_FAILED with a bad or expired session. Agents and headless clients send an af_... API key as a bearer token instead, as in Agents and headless. Repeated invalid keys from one address are throttled and return 429 with Retry-After, as on the REST API.

Connect

Then run /mcp inside Claude Code, choose anyformat, and select Authenticate. Your browser opens the sign-in; when it finishes, ask Claude to list your workflows. Add --scope user to make the server available in every project.
ChatGPT cannot connect to anyformat yet. Codex, OpenCode and stdio-only hosts connect with an API key, as in Agents and headless.

Agents and headless

An agent with no browser, such as a CI job or a customer’s headless agent, sends an af_... API key as the bearer token. A key that works on /v3 works on /mcp, on the key’s organization only. Mint one at app.anyformat.ai/api-key.
Or write .mcp.json in the project root. Claude Code expands ${VAR} from the environment.
Check with claude mcp list.

Tools

The server exposes these 41 tools today. Each API tool calls the matching v3 endpoint under your key, so the endpoint page is the reference for its inputs, outputs and errors. The Scope column names the key scope the tool needs. For a worked end-to-end session with real payloads, see Agents over MCP. The graph a tool takes or returns is the one on the Node schemas page. A host reads the full input schema from the server, so an agent can compose a valid graph without you pasting the schema into the conversation. The document flow an agent follows is upload_documents, then run_document_packet with an idempotency_key, then get_run with wait_seconds set, so one call waits for the result instead of the agent polling. A file on the agent’s machine enters the flow through stage_files: upload the bytes to the returned form, then pass { object_id, filename } to parse_document, upload_documents or upload_edit_references. Pass the short id, never the kilobytes-long presigned read_url. parse_document is the one-call shortcut when the agent needs only the markdown of a single document. Save that markdown: its output is not retained. Every extracted value is a JSON string on the wire, whatever the field’s declared type. A float field answers "4594.62", so parse numbers before comparing them. A field’s confidence is a whole number from 0 to 100, such as 88, or null when none was produced. Each field carries the evidence text and the page it was read from.
delete_workflow and delete_document_packet take effect at once: the API stops returning the workflow or packet immediately. A deleted packet is deleted permanently with its files and runs, as are the packets and runs of a deleted workflow. The workflow’s own files stay in storage for a grace window of 14 days, or 24 hours for an organization with zero data retention, before they become eligible for a permanent purge. delete_edit_reference deletes a reference document and its stored objects. No MCP tool undoes a delete. set_ground_truth replaces a dataset document’s ground truth without keeping the previous one. delete_row removes a row with its values, and no tool restores it. The three delete tools’ descriptions, and those of set_ground_truth and delete_row, ask the agent to call request_approval with a one-line summary and to wait for your approval before deleting. That approval is a card the host shows you; a host that does not render it still sees the destructiveHint and can ask you its own way.

Tool annotations

Every API tool declares the standard MCP annotations, so a host can decide when to ask you before calling it. request_approval declares none: it touches nothing on anyformat. All API tools set openWorldHint: false: they only reach anyformat. The server’s instructions, and the description of every tool that returns document text, tell the agent that text from your documents is data to report, never instructions to follow.

Skill resources

The server also serves the anyformat skill, the design know-how an agent reads before it builds a workflow, as MCP resources. It is the same content that ships as the @anyformat/skill npm package; the resource path needs no install step. A host discovers them with resources/list and reads one with resources/read and its URI; any valid key can read them, whatever its scopes. In Claude Code, mention a resource as @anyformat:skill://anyformat/SKILL.md to pull it into the conversation. Over plain HTTP:

Authorization and limits

Authorization follows the credential. A key does on /mcp whatever it can do on /v3, on its own organization only. A signed-in session does what your role in the chosen organization allows, with the read and write permissions the host asked for. Each API tool needs one of those scopes: the list and get tools need read, the tools that create, run, update or delete need write; request_approval needs none. A tool the credential cannot call is left out of the server’s tool list, and a direct call to it is answered as an unknown tool. Every tool call passes through the gateway’s normal rate limiting, so the rate limit tiers apply per tool call as they do per request.

Errors

A failed tool call returns an MCP tool error whose message is the API’s error envelope as JSON: { error, detail, error_code, retryable, request_id, status }, plus params, doc_url and recovery when they apply. Read error_code to branch, recovery for the next step, status for the equivalent HTTP status code, and quote request_id in a support request. A TOPOLOGY_INVALID error carries detail.violations[], one entry per broken rule, with the node ids involved.