Documentation Index
Fetch the complete documentation index at: https://developer.affinity.co/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- An Affinity account with API access (Scale, Advanced, or Enterprise)
- An MCP-compatible AI assistant (e.g., Claude Desktop, Copilot, Gemini CLI)
- An Affinity API key. See the Authentication page for help obtaining one
- UV Python package manager
Switching to the hosted MCP server? If you currently run Affinity locally and want to move
to the hosted server, first remove the existing
affinity-mcp configuration from your AI
client (consult your client’s documentation for steps), then follow the appropriate guide
under Setup by Client.- Claude CLI
- Claude Desktop
- Gemini CLI
- Copilot CLI
- Copilot (VS Code)
Run the following command with your API key filled in. The Omit You should see:
--scope user flag registers the server for your user account so it’s available in all your projects.--scope user to register the server for the current project only.Verify the server is connected:OpenTelemetry (Optional)
The server supports OpenTelemetry tracing. To export telemetry data to an OTLP-compatible collector, set theOTEL_EXPORTER_OTLP_ENDPOINT environment variable alongside your API key in
your client config. Example:
OTEL_EXPORTER_OTLP_ENDPOINT is not set, telemetry export is disabled and the server operates
normally without it.