Sign in from your client
The first time your client connects, it opens the anyformat sign-in in your browser. Sign in as you do on app.anyformat.ai, then press Accept to let the client read and write on your behalf. No key is involved, and you can sign in to several clients with the same account.- Claude Code
- Claude
- VS Code
- Cursor
Add the server. Start Claude Code, run
--scope user makes it available in every project:/mcp, choose anyformat and select Authenticate. Your browser opens the sign-in. When it finishes, /mcp shows Signed in and connected to anyformat.More than one organization
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. Otherwise the agent tells you which organizations you have and asks which one to use, and you answer in the chat, for example “use Acme”. You pick once: the choice is remembered for the rest of the sign-in. To switch, tell the agent, for example “use organization Beta”. The choice applies to every chat that uses this sign-in; switching in one chat switches the others.Headless agents: use an API key
An agent with no browser, such as a CI job, a scheduled script or your own product’s agent, sends anaf_... API key as a bearer token. The key acts in its own organization only, and the same key works on the REST API. Mint one at app.anyformat.ai/api-key and export it:
- Claude Code
- Codex CLI
- Cursor
- OpenCode
- Claude Desktop and stdio-only hosts
- Anything else
One command, and Or commit it to the project by writing Confirm with
--scope user makes it available in every project:.mcp.json in the repository root. Claude Code expands ${VAR} from the environment, so the key stays out of the file:claude mcp list.Check it worked
Ask the agent something only anyformat can answer:“List my anyformat workflows.”If the tools are missing entirely, the host has not reloaded its config: restart it.
If something goes wrong
The first three things to ask
“Parse invoice.pdf with anyformat and save the markdown to invoice.md.”
“Build an anyformat workflow that pulls the invoice number, the total and the due date, then run every PDF in ./inbox through it and write the results to a CSV.”
“Which of my anyformat runs failed yesterday, and why?”The agent stages the local file, creates the workflow, runs the documents and polls until each run is terminal. Agents over MCP walks one real session call by call.
What the agent can reach
The tools split by what you, or your key, are allowed to do. Without thewrite permission the tools that write are absent from the tool list rather than failing when called.
The MCP server reference has the full table, the scopes and the error shapes.
Not using an agent?
The Claude Code skill teaches Claude the workflow API without MCP, and the SDKs do the same job from your own code.Next steps
Agents over MCP
One real session, call by call, with every payload
MCP server reference
Endpoint, auth, scopes and every tool

