Skip to content

Connect your agent

Connect Claude Code, Codex, Cursor or any MCP client to a Specimo project with OAuth or a project token.

Specimo speaks the Model Context Protocol (MCP) over Streamable HTTP. Any MCP client can connect; the endpoint is https://api.specimo.design/mcp. Access is always scoped to one project.

There are two ways to authenticate:

  • Sign in with OAuth (recommended). Clients that support MCP authorization open your browser; you sign in, choose the project and read or read/write access. Tokens refresh automatically and you can revoke the app any time in Project → Connect agent.
  • A project token. Create one in Project → Connect agent for CI, scripts and clients without OAuth. It's shown once and works until you revoke it.

Claude Code

claude mcp add --transport http specimo https://api.specimo.design/mcp

Then run /mcp in Claude Code, pick specimo and choose Authenticate. To use a project token instead:

claude mcp add --transport http specimo https://api.specimo.design/mcp \
  --header "Authorization: Bearer adp_…"

Codex

Add the server to ~/.codex/config.toml and keep the token in an environment variable:

[mcp_servers.specimo]
url = "https://api.specimo.design/mcp"
bearer_token_env_var = "SPECIMO_TOKEN"
export SPECIMO_TOKEN=adp_…

Cursor, VS Code and other clients

Most clients accept a JSON server definition (Cursor: .cursor/mcp.json; VS Code: .vscode/mcp.json):

{
  "mcpServers": {
    "specimo": {
      "type": "http",
      "url": "https://api.specimo.design/mcp"
    }
  }
}

Clients that support OAuth will ask you to sign in. Otherwise add "headers": { "Authorization": "Bearer adp_…" }.

Check it works

Ask your agent: "Call get_project_context from Specimo and summarise the design system." You should see your tokens, components and screens. The first call also shows the agent as connected in Project → Connect agent.

Read-only or read/write?

  • Read tokens can read the design system, screens, comments and accessibility reports. Use them for agents that only implement approved screens.
  • Read/write tokens can also create tokens, components and screen versions, reply to comments and mark screens implemented.
  • No token can approve designs or change sharing or settings.
  • Organizations on Business can restrict agents further (Org settings → Agent policy): force read-only, block manual tokens or OAuth apps, cap token lifetime.

Limits

Agent requests count toward your plan's daily allowance (1,000 a day on Free) and a per-token limit of a few hundred requests a minute. Agent use is never charged.