Docs / MCP server

Give your AI assistant your architecture.

Connect Claude, Cursor or ChatGPT to Archreactor. Your assistant can read your diagrams, walkthroughs and saved versions, and search our free System Design Library.

01What it does

Archreactor has an MCP server. MCP (the Model Context Protocol) is the standard way AI assistants connect to outside tools. Once connected, your assistant can read what is in Archreactor and use it to answer questions, review a design, or write documentation.

There are two parts:

  • The System Design Library, with no key. Anyone can connect and let their assistant search and read our library of explained architectures: components, connections and a step-by-step walkthrough of each system.
  • Your own diagrams, with an API key. Your assistant can list your diagrams, read their components and connections, follow a walkthrough, see what sensitive data crosses a trust boundary, and compare saved versions.
Server address: https://api.archreactor.app/mcp
Transport: Streamable HTTP. Authentication: none for the library; Authorization: Bearer ar_live_... for your diagrams.

02Create an API key

You only need a key for your own diagrams. The library tools work without one.

  • Sign in and open Settings, API keys.
  • Name the key after the tool that will use it, and create it.
  • Copy it straight away. We store only a fingerprint of the key, so we cannot show it to you again.

A key reaches one workspace: the one it was created in. It can read. If you tick the option when creating it, it can also save a version of a diagram. It cannot edit or delete anything, and it cannot use AI credits. Keys are free on every plan: up to 3 at a time on Free and 20 on paid plans. In an organization, admins create and revoke keys. You can revoke a key at any time and it stops working at once.

03Claude Code

Run this once in a terminal, with your key in place of the placeholder:

Terminal
claude mcp add --transport http archreactor https://api.archreactor.app/mcp \
  --header "Authorization: Bearer ar_live_YOUR_KEY"

For the library only, leave the header out:

Terminal
claude mcp add --transport http archreactor https://api.archreactor.app/mcp

Then ask something like "list my Archreactor diagrams" or "find a system design for a chat app in the Archreactor library".

04Claude (web and desktop apps)

Claude connects to remote MCP servers as custom connectors.

  • Open Claude's connector settings and choose to add a custom connector. On Team and Enterprise plans an owner adds it in the organization's connector settings.
  • Enter the server address: https://api.archreactor.app/mcp
  • For your own diagrams, add a request header named Authorization with the value Bearer ar_live_YOUR_KEY. For the library only, choose the option with no sign in and add no header.

Claude connects from Anthropic's servers, not from your computer, so this works the same on the web, desktop and mobile apps.

05Cursor

Add the server to .cursor/mcp.json in a project, or to ~/.cursor/mcp.json for every project. This reads the key from an environment variable so it stays out of the file:

.cursor/mcp.json
{
  "mcpServers": {
    "archreactor": {
      "url": "https://api.archreactor.app/mcp",
      "headers": {
        "Authorization": "Bearer ${env:ARCHREACTOR_API_KEY}"
      }
    }
  }
}

Set ARCHREACTOR_API_KEY in your environment before starting Cursor. For the library only:

.cursor/mcp.json
{
  "mcpServers": {
    "archreactor": {
      "url": "https://api.archreactor.app/mcp"
    }
  }
}

06ChatGPT

ChatGPT can add a custom MCP server by its address. Enter https://api.archreactor.app/mcp and choose no authentication.

What works today: the System Design Library tools. ChatGPT's custom servers sign in with OAuth or not at all, and cannot send an API key, so it cannot read your own diagrams yet. We plan to add OAuth sign-in; until then use Claude or Cursor for your own workspace.

07Any other client

Any MCP client that supports a remote server over Streamable HTTP and lets you set a request header will work. Point it at https://api.archreactor.app/mcp. To check the connection by hand:

Terminal
curl -s https://api.archreactor.app/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer ar_live_YOUR_KEY" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

The server is stateless: each request is answered in full with one JSON response. There are no sessions and no event stream. It speaks protocol versions 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26.

08Tools

Your assistant sees only the tools it can use: the two library tools without a key, and the rest with one.

ToolNeedsWhat it returns
search_libraryNo keySearch the System Design Library. An empty query lists every entry.
get_library_entryNo keyOne library entry in full: components, connections, the walkthrough step by step, the path sensitive data takes, and its sources.
list_diagramsKeyThe diagrams in the key's workspace, most recently changed first.
get_diagramKeyA diagram's components (kind, group, technology, trust zone, region, runtime, data classes) and connections.
find_componentsKeySearch every component in the workspace by name, description, kind or technology, with the diagrams each one is on.
get_walkthroughKeyThe walkthrough: one request through the system, step by step.
get_data_flowKeyThe connections that carry sensitive data, the trust zones at each end, and which of them cross a trust boundary.
list_versionsKeySaved versions of a diagram, with who saved each one and the reviews attached to it.
compare_versionsKeyWhat changed between two versions, or since a version: added, removed, changed, and the changes a reviewer should read first.
export_sequenceKeyThe walkthrough as sequence-diagram source, in Mermaid or PlantUML.
save_versionKey with writeSave the diagram as it is now as a new numbered version. Changes nothing in the diagram and uses no AI credits.

The same data is available over plain HTTP: see the REST API.

09Things to ask

  • "Read my payments diagram and explain how a refund flows through it."
  • "Which connections in the checkout diagram carry cardholder data across a trust boundary?"
  • "What changed in the platform diagram since version 3? Anything a security reviewer should look at?"
  • "Where do we use Redis across all our diagrams?"
  • "Turn the login walkthrough into a Mermaid sequence diagram for the pull request."
  • "Find a system design for a URL shortener in the Archreactor library and compare it with ours."

10Limits, plainly

  • Read-only, with one exception. A key with the write option can save a version of a diagram. Nothing else changes anything. Creating or editing diagrams through MCP is not available yet.
  • One workspace per key. A key cannot see another workspace, and no tool accepts a workspace as input.
  • Rate limits. 60 requests a minute and 1,000 an hour per key; 60 a minute per address without a key. Over the limit the server answers 429 with a Retry-After header.
  • Large diagrams are cut. One call returns at most 300 components and 600 connections, and says so with truncated when it had to cut.
  • Zones and data classes may be suggestions. Where an AI proposed a trust zone or data class and nobody has confirmed it, the result marks it. The data-flow tool is for review, not a compliance assessment.
  • Library entries are learning explainers. They are simplified, based on public engineering writing, and are not any company's actual architecture.

11Security

  • We store a SHA-256 fingerprint of each key, never the key. A key is 256 random bits.
  • Every read is filtered by the key's workspace. An id from another workspace gets the same "not found" as an id that does not exist.
  • Revoked and expired keys are refused immediately. The key list shows when each key was last used.
  • Text inside a diagram (names, descriptions, captions) was written by its authors. We strip control characters and cap its length, and the tools tell the assistant to treat it as data. If you share a workspace with people you do not fully trust, keep in mind that your assistant will read what they wrote.

Treat a key like a password. Use one key per tool, keep keys out of source control, and revoke any key you no longer need. Found a problem? Email support@archreactor.app.