Skip to content

MCP for Cursor & Claude ​

Viaduct ships an MCP server so Cursor, Claude Code, Claude Desktop — any MCP client — can pull live architecture context into another codebase: systems and services, API endpoints (method, path, headers, request, response), markdown documentation, and PlantUML sequence diagrams.

The server is hosted at https://mcp.quietgridlabs.com/mcp. Nothing to clone, nothing to install — point your client at the URL and send your token with it. Each request carries its own token, so the server never holds anyone’s credentials.

What you need ​

  • A signed-in Viaduct account. Guest accounts have no API access.
  • An MCP client: Cursor, Claude Code, Claude Desktop, or any other.

1. Create a personal API token ​

Sign in, then open the gear next to your username in the top-right toolbar → Settings → MCP access. Setup runs in three steps: Token, Connect, Skill.

Name the token after the machine or editor that will hold it, then choose what it may do:

  • Read and write — what an MCP client needs.
  • Read only — for CI and dashboards. A read-only token is answered 403 insufficient_scope by anything that changes the model, so it cannot touch your architecture even if it leaks.

Press Create token. The dialog also copies a ready-made mcp.json entry with the token already in it.

  • The token is shown once. The server keeps only a hash, so a lost token is reissued, never recovered.
  • One token per client. Creating another leaves the existing ones working, so adding a second editor never signs the first one out.
  • Config next to a token downloads the file its client expects — Cursor, Claude Code or Claude Desktop, each in the right shape. A token you just created comes out with the value already in it; an older one leaves a placeholder to paste over, since the value itself was never stored.
  • Revoke next to a token cuts off that client alone, without touching the others or your browser session.
  • Tokens do not expire and are independent of your browser session, which ends after four hours of inactivity. The list shows when each was last used, so a client that was never wired up correctly is easy to spot.

The same thing over HTTP, if you would rather script it. The cookie value comes from DevTools → Application / Storage → Cookies → c4_uid; copy it and run the command in one go, since it is only valid for four hours.

bash
curl -sS -X POST 'https://c4.quietgridlabs.com/api/auth/api-token' \
  -H 'Cookie: c4_uid=PASTE_COOKIE_VALUE' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Claude Code"}'

Example response:

json
{
  "id": "5f0c…",
  "token": "c4pat_…",
  "name": "Claude Code",
  "createdAt": "2026-…",
  "expiresAt": null,
  "hint": "Store this token in your MCP client config…"
}

To list what the account has — names, creation and last use, never the tokens themselves:

bash
curl -sS 'https://c4.quietgridlabs.com/api/auth/api-token' \
  -H 'Cookie: c4_uid=PASTE_COOKIE_VALUE'

To revoke one by id, or every token on the account:

bash
curl -sS -X DELETE 'https://c4.quietgridlabs.com/api/auth/api-token/TOKEN_ID' \
  -H 'Cookie: c4_uid=PASTE_COOKIE_VALUE'

curl -sS -X DELETE 'https://c4.quietgridlabs.com/api/auth/api-token' \
  -H 'Cookie: c4_uid=PASTE_COOKIE_VALUE'

2a. Configure Cursor ​

Add a server entry to ~/.cursor/mcp.json (global) or .cursor/mcp.json in a project:

json
{
  "mcpServers": {
    "viaduct": {
      "url": "https://mcp.quietgridlabs.com/mcp",
      "headers": {
        "Authorization": "Bearer c4pat_PASTE_TOKEN_HERE"
      }
    }
  }
}

Reload MCP in Cursor (Customize / MCP settings, or restart Cursor). Confirm the server shows as connected.

2b. Configure Claude Code ​

Claude Code reads MCP servers from a .mcp.json file at the root of the project you are working in — commit it and everyone on the repository gets the same architecture context:

json
{
  "mcpServers": {
    "viaduct": {
      "type": "http",
      "url": "https://mcp.quietgridlabs.com/mcp",
      "headers": {
        "Authorization": "Bearer c4pat_PASTE_TOKEN_HERE"
      }
    }
  }
}

If you do commit it, keep your own token out of the file — it is a personal credential, and a shared one lets everybody act as you.

The same thing from the terminal, without editing files by hand:

bash
claude mcp add --transport http viaduct https://mcp.quietgridlabs.com/mcp \
  --header "Authorization: Bearer c4pat_PASTE_TOKEN_HERE"

Then run /mcp inside Claude Code to check the server is connected and to see the tools it exposes.

2c. Configure Claude Desktop ​

Claude Desktop keeps its servers in a config file — Settings → Developer → Edit config opens it, or edit it directly:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Recent versions add a remote server under Settings → Connectors → Add custom connector, which only asks for the URL. If your build has no Connectors screen, use the config file with a local bridge instead — Claude Desktop’s config file understands commands, not URLs:

json
{
  "mcpServers": {
    "viaduct": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote", "https://mcp.quietgridlabs.com/mcp",
        "--header", "Authorization: Bearer c4pat_PASTE_TOKEN_HERE"
      ]
    }
  }
}

Restart the app after saving.

3. Install the Viaduct skill ​

The token gets your agent through the door. The skill tells it what to do once inside: read before writing, never invent ids, check its own work before calling it done. Download the Viaduct skill on the last step of the dialog, and unpack it into the folder your client expects.

An agent already connected can fetch it over MCP instead: c4_skill_status says whether the copy on disk is the published one, and c4_get_skill hands over the files to write. Most clients only pick up a new skill in the next session.

4. Quick smoke test ​

  • Ask the agent to run c4_whoami — you should see your username.
  • Then c4_project_access and c4_project_context for a project you own or can edit.
  • Not connecting? Check the server itself first — this needs no client and no token: curl https://mcp.quietgridlabs.com/healthz.

Available tools ​

  • c4_whoami, c4_list_projects, c4_project_access — auth and edit rights (canEdit)
  • c4_project_context, c4_get_element, c4_search — read model / docs / sequences. The context comes in a compact one-line-per-element notation with a legend on top (about a third fewer tokens than markdown, and it carries the connections); pass format: "markdown" for the older form.
  • c4_create_element, c4_update_element, c4_delete_element — write architecture (requires edit)
  • c4_upsert_connection, c4_layout, c4_upsert_doc, c4_upsert_sequence — edges, markdown, PlantUML (requires edit)
  • c4_list_change_sets, c4_get_implementation_bundle, c4_report_progress, c4_set_change_set_status — implement a change set and report what is finished. Status follows the evidence on its own; the last one is for the transitions evidence cannot make.
  • c4_create_branch, c4_list_branches, c4_branch_changes, c4_branch_review, c4_merge_branch — propose changes on a branch instead of on the model everyone works from: fork one (a project with no version gets one pinned first), pass the id it answers back as projectId on every write, then merge it once it has been reviewed
  • c4_list_docs, c4_get_doc, c4_list_sequences, c4_get_sequence — one document or diagram by id, when you do not want the whole project context
  • c4_delete_doc, c4_delete_sequence, c4_delete_connection — remove what is no longer true (requires edit)
  • c4_list_data_flows, c4_get_data_flow, c4_upsert_data_flow, c4_upsert_data_flow_step, c4_delete_data_flow, c4_delete_data_flow_step — Magic flows. List before creating, so a journey is updated instead of duplicated: flows are not idempotent the way elements are. Consecutive steps sharing a parallelGroupId play as one stage, and branchKind tells a fan-out (parallel) from an exclusive choice (alternative). Writing requires edit.
  • c4_list_design_systems, c4_upsert_design_system, c4_delete_design_system — the vocabulary a front-end container is built in: the names a UI element cites instead of a hardcoded colour or spacing. Read it before building any interface.
  • c4_read_design_node, c4_read_design_system_values, c4_refresh_design_nodes — the design behind a UI element, read live from Figma with the CSS already translated and token names matched against the design system. Needs Figma connected under Settings → Design tools. Figma budgets file reads tightly on a view-only seat, so refresh a whole project in one call rather than reading node by node.
  • c4_list_technologies, c4_resolve_technologies — the technology catalog. technology takes a catalog id (redis), never a display name (Redis), and unknown ids are refused; c4_resolve_technologies maps free text such as Java, Spring MVC onto ids.
  • c4_validate — structural self-check of a project: orphan parents, dangling or cross-level connections, endpoints without contracts, duplicate names under one parent. Read-only. It reports ok: false only for error-severity issues, so read the warnings too.
  • c4_skill_status, c4_get_skill — whether the Viaduct skill on disk is the published one, and the files to write when it is not.

How it behaves day to day ​

  • Write tools refuse projects where your share is view-only.
  • A protected project refuses every direct write, whoever you are — c4_create_branch is the way in, and the merge is where a person signs off. A merge needs the revision the branch was last reviewed against, so nothing lands on a trunk that moved since.
  • Your token travels with each request and is never stored on the server. Revoking one token cuts off the client holding it and leaves your other tokens working; to cut off everything at once, revoke them all.
  • Useful prompt: “Check c4_project_access, then use c4_create_element / c4_upsert_doc for project <id>.”
  • Treat the token like a password — do not commit it to git.