Skip to content
DocsClaude Code

Connect your AI

Claude Code

One command adds MCPKeychain to Claude Code. Sign in from the terminal, or use a personal access token for scripts and CI.

Your MCP URL

https://mcpkeychain.com/mcp

Add MCPKeychain

  1. Add the server

    --scope user makes it available in every project; leave it out to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user mcpkeychain https://mcpkeychain.com/mcp
  2. Sign in

    Start claude, type /mcp, select mcpkeychain and choose Authenticate. Your browser opens the MCPKeychain sign-in; pick your agency and click Allow access.

  3. Check it

    Ask Which clients can I work on?. MCPKeychain tools appear as mcp__mcpkeychain__…, for example mcp__mcpkeychain__list_clients.

Headless, scripts and CI

Without a browser, use a personal access token. Create one in the MCPKeychain panel (your agency's dashboard, Personal access tokens), store it in an environment variable and pass it as a header:

Terminal
claude mcp add --transport http --scope user mcpkeychain https://mcpkeychain.com/mcp \
  --header "Authorization: Bearer $MCPKEYCHAIN_TOKEN"

Or keep the configuration in a file, which Claude Code reads with --mcp-config. Environment variables in it are expanded:

mcpkeychain.json
{
  "mcpServers": {
    "mcpkeychain": {
      "type": "http",
      "url": "https://mcpkeychain.com/mcp",
      "headers": {
        "Authorization": "Bearer ${MCPKEYCHAIN_TOKEN}"
      }
    }
  }
}
Run a prompt non-interactively
claude -p "Summarise last week's GA4 sessions for Aurora Energy" \
  --mcp-config mcpkeychain.json --strict-mcp-config \
  --allowedTools "mcp__mcpkeychain__*"