Skip to main content

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, GitHub Copilot, Gemini CLI)
The hosted MCP server is available at https://mcp.affinity.co/mcp. Depending on your client, you can connect using your Affinity API key or via OAuth.
Already using the local MCP server? Remove the existing affinity-mcp configuration from your AI client (consult your client’s documentation for steps), then follow this guide to connect to the hosted server.

OAuth Setup

The following clients support OAuth for a seamless connection to the Affinity hosted MCP server. For more details on how OAuth works and how to manage access, see the Authentication page.
Custom connectors via remote MCP are available on Free, Pro, Max, Team, and Enterprise plans. Free users are limited to one custom connector. On Team and Enterprise plans, only Owners can add custom connectors to the organization. Once added, individual users can authenticate and use the connector.
Team or Enterprise Plan — Workspace Owner Setup
  1. Navigate to Organization settingsConnectorsAdd (top right) → CustomWeb.
  2. In the Add custom connector module, enter:
    • Name: Affinity
    • Remote MCP server URL: https://mcp.affinity.co/mcp
    • Leave Advanced settings blank.
  3. Click Add. The connector is now available to all plan users. Proceed to the Connecting to the MCP Server section below to authenticate.
Individual Plans (Free, Pro, Max)
  1. Navigate to SettingsConnectorsAdd custom connector.
  2. In the Add custom connector module, enter:
    • Name: Affinity
    • Remote MCP server URL: https://mcp.affinity.co/mcp
    • Leave Advanced settings blank.
  3. Click Add. Proceed to the Connecting to the MCP Server section below to authenticate.
Connecting to the MCP Server
  1. Navigate to SettingsConnectors and find the Affinity connector.
  2. Click the three dots on the right → Disconnect.
  3. Click Connect to initiate the OAuth flow.
  4. Once authenticated, Affinity data is accessible from your Claude conversations.

API Key Setup

The following clients connect to the Affinity hosted MCP server using your Affinity API key — see the Authentication page for help obtaining one.
Run the following command with your API key filled in:
claude mcp add --transport http affinity-mcp https://mcp.affinity.co/mcp \
    --header "Authorization: Bearer your_api_key_here"

Other Clients

See MCP Clients for a full list of compatible clients.