Skip to main content

Prerequisites

  • An Affinity account with API access (Scale, Advanced, or Enterprise)
  • UV Python package manager
  • An MCP-compatible AI assistant (e.g., Claude Desktop, GitHub Copilot, Gemini CLI)
  • An Affinity API key — see the Authentication page for help obtaining one

Client Setup

Run the following command with your values filled in. The --scope user flag registers the server for your user account so it’s available in all your projects.
claude mcp add affinity-mcp \
    --scope user \
    --transport stdio \
    --env AFFINITY_API_KEY=your_api_key_here \
    -- uvx affinity-mcp
Omit --scope user to register the server for the current project only.Verify the server is connected:
claude mcp list
You should see:
affinity-mcp: uvx affinity-mcp - ✓ Connected

Other Clients

See MCP Clients for a full list of compatible clients.