Documentation Index
Fetch the complete documentation index at: https://support.affinity.co/llms.txt
Use this file to discover all available pages before exploring further.
Immediate Value
After this tutorial, your AI tool of choice — Claude (Desktop, Web, or Claude Code), ChatGPT, Microsoft Copilot, Notion, Gemini CLI, or another MCP-compatible client — will be able to query your Affinity data directly. You’ll be able to ask questions like “What deals are in stage X?”, “Summarize my last interactions with this person”, or “Who at our firm has the warmest relationship with Company Y?” without leaving the AI tool.Prerequisites
- You’ve completed at least the basics of Tier 1 (Lists, Profiles, Search).
- Your workspace is on a Scale, Advanced, or Enterprise plan. Check Settings → Billing Settings if you’re unsure.
- You have an AI tool that supports the Model Context Protocol (MCP): Claude (Desktop, Web, or Claude Code), ChatGPT, Microsoft Copilot, Notion (Custom Agents), Gemini CLI, or any other MCP-compatible client.
Quick-Start Roadmap
- Understand what Affinity MCP is (in plain language)
- Verify your plan and your permissions
- (Admin) Enable MCP Agents permission for the right roles
- Generate an Affinity API key (for clients that need one)
- Connect your AI client — Claude, ChatGPT, Copilot, Notion, Gemini, or others
- Run your first query
- Try the six capability areas
- Audit and revoke unused access
- Go deeper with the dev docs
Why MCP Matters
Most of your work happens in your AI tool now — chat windows, research, drafting. The friction is that the AI doesn’t know your CRM data, so you spend time copy-pasting context back and forth. MCP closes that loop: your AI tool can read directly from Affinity, answer questions against live CRM data, and surface relationship intelligence in the conversation you’re already having. This isn’t “AI inside Affinity” — it’s the other direction. You use whichever AI tool you prefer, and Affinity becomes one of the data sources it can reach.See Affinity AI chat overview for context on how MCP fits alongside Affinity’s other AI features.
Task 1: Understand What Affinity MCP Is
Context
MCP stands for Model Context Protocol — a standard way for AI assistants to securely connect to data sources like CRMs, calendars, and document stores. Affinity exposes an MCP server, which means any MCP-compatible AI client can query your Affinity data using your permissions. What this isn’t: it’s not a chatbot bolted onto Affinity. It’s a connection your existing AI tool can make. What it enables:- Ask pipeline questions in Claude Desktop and get current numbers
- Summarize a profile’s interaction history in your AI flow
- Find warm intro paths to a company without leaving your AI tool
- Update a field, add a note, or create a reminder — all conversationally
Expected Outcome
You understand the model: Affinity is the data source, your AI tool is the interface.📚 Help Center
Task 2: Verify Your Plan and Permissions
Context
MCP is gated by both plan tier and a per-role permission. Confirm both before going further.Action
- Check your plan: Go to Settings → Billing Settings. MCP is available on Scale, Advanced, and Enterprise plans. If you’re on a different plan, contact your account manager.
- Check your role permission: Each role in your workspace either has the “Manage MCP Agents” permission or doesn’t. To find out:
- Go to Settings → Users and Permissions → Roles.
- Click your role and look for the “Manage MCP Agents” toggle.
- If it’s on, you can configure MCP for yourself. If it’s off, work with your admin (see Task 3).
End-user vs admin split. Setting up your own MCP connection is something each user does for themselves under Settings → Affinity MCP. Controlling who’s allowed to set one up is an admin function under Users & Permissions → Roles. They’re different surfaces — don’t confuse the two.
Expected Outcome
You know whether you can self-serve MCP, or whether you need admin help first.Task 3: (Admin) Enable MCP Agents Permission for the Right Roles
Admin only. Skip this task if you’re not configuring permissions for others. End-users go to Task 4.
Context
By default, MCP access is gated. Admins decide which roles get the “Manage MCP Agents” permission. Common patterns: enable for power users and analysts; leave disabled for read-only or contractor roles.Action
- Go to Settings → Users and Permissions → Roles.
- Click into a role you want to grant MCP access to.
- Find the “Manage MCP Agents” permission in the permissions list.
- Toggle it on and save.
- Repeat for each role that should have access.
Expected Outcome
The right roles can self-serve MCP setup. Other roles are gated.Task 4: Generate Your Affinity API Key
Context
Some AI clients (Copilot, Gemini, Notion Bearer mode, and most “other” MCP clients) authenticate to Affinity using an API key. OAuth-only clients (Claude, ChatGPT, Notion OAuth) handle auth automatically inside their own app — if you’re using one of those, skip ahead to Task 5.Action
- Go to Settings → Manage Apps → API Keys.
- Click “Create new key”.
- Name your key after the client you’ll use (e.g.,
Gemini CLI,Copilot VS Code) so you can identify it when auditing later. - Copy the key immediately — Affinity shows it once and cannot retrieve it again.
- Store it in your password manager or your team’s secrets vault.
Expected Outcome
You have an Affinity API key ready to paste into your AI client’s MCP configuration.📚 Help Center
Task 5: Connect Your AI Client
Context
Different AI clients have slightly different setup flows. Pick yours below.Claude (Desktop, Web, Claude Code)
Claude (Desktop, Web, Claude Code)
Auth: OAuth (no API key needed).Claude Desktop or Web:
- In Claude, open Settings → Connectors → Add custom connector.
- Enter:
- Name:
Affinity - Remote MCP server URL:
https://mcp.affinity.co/mcp
- Name:
- Click “Add”.
- Go to Customize → Connectors and click “Connect” on the Affinity row.
- Complete the OAuth flow in your browser.
claude mcp add --transport http affinity-mcp https://mcp.affinity.co/mcp, then open Claude Code and run /mcp, press Enter on the affinity-mcp entry, and authorize via browser.Full guide: developer.affinity.co/pages/mcp/claudeChatGPT
ChatGPT
Auth: OAuth (no API key needed). Works on the Free plan and up — no developer mode or special setup.
- Open ChatGPT and click “Apps” in the left sidebar.
- Search for “Affinity” and select it.
- Click “Connect”, then “Sign in with Affinity” to start the OAuth flow.
- Click “Start chat” to begin using Affinity in ChatGPT.
Copilot (Studio, CLI, VS Code)
Copilot (Studio, CLI, VS Code)
Auth: API key (generate in Task 4). Requires an active GitHub Copilot subscription for CLI and VS Code variants.Open Copilot’s MCP configuration:Full guide: developer.affinity.co/pages/mcp/copilot
- Studio: Tools page → “Add a tool” → “New tool” → “Model Context Protocol”
- CLI: Run
/mcp add - VS Code: Command Palette → “MCP: Add Server”
- Server name:
affinity-mcp - Server URL:
https://mcp.affinity.co/mcp - Authentication type: API key (Header)
- Header name:
Authorization - API key value:
Bearer your_api_key_here
Copilot chat on github.com, copilot.com, and the Copilot mobile apps don’t yet support remote MCP servers.
Notion (Custom Agents)
Notion (Custom Agents)
Auth: OAuth (automatic) or Bearer token (API key from Task 4). Requires Notion Business or Enterprise plan, plus your workspace Owner has to enable custom MCP servers in Settings → Notion AI → AI Connectors.Once that’s enabled, end-user setup:
- In Notion’s left sidebar, find the “Agents” section and click “New Agent”.
- Click “Create blank” in the top right.
- In the Tools and access section, click “Add connection”, then “Add custom MCP”.
- Configure:
- MCP server URL:
https://mcp.affinity.co/mcp - Name:
Affinity - Authentication: OAuth (automatic) or Bearer token (paste your API key)
- MCP server URL:
- Click “Connect”, then “Save” in the top right.
Gemini CLI
Gemini CLI
Auth: API key (generate in Task 4). Gemini web and mobile do not currently support MCP — CLI only.Open your terminal and run, substituting your API key:Test by asking Gemini CLI a query against Affinity.Full guide: developer.affinity.co/pages/mcp/gemini
Other MCP clients
Other MCP clients
Any MCP-compatible client supporting custom headers can connect to Affinity. You’ll need:
- Server URL:
https://mcp.affinity.co/mcp - Authentication:
Authorization: Bearer your_api_key_here(use the API key from Task 4)
Expected Outcome
Your AI client is connected to Affinity and can see Affinity-specific tools in its tool list.Task 6: Run Your First Query
Context
The best way to confirm the connection works is to ask a simple question that requires CRM data.Action
Try one of these starter prompts in your AI client:- “What are the open deals in my pipeline?”
- “Find the person profile for [name] and summarize our last 5 interactions.”
- “Which companies on my deals list have we not contacted in the last 90 days?”
Expected Outcome
A successful round-trip query confirms your setup is working end-to-end.📚 Help Center
- Meeting preparation with AI chat — example use case showing how AI + Affinity data accelerates meeting prep.
Task 7: Try the Six Capability Areas
Context
Affinity’s MCP server exposes six capability areas. Try a query from each to get a feel for what’s possible.Action
| Capability | Try asking |
|---|---|
| Relationship intelligence | ”Who at my firm has the warmest relationship with someone at [Company]?” |
| Pipeline management | ”List all opportunities in ‘Diligence’ stage with amount > $10M.” |
| Meetings & activity | ”Summarize my interactions with [Person] over the last 90 days.” |
| Notes & capture | ”Create a note on [Company]‘s profile titled ‘Q2 board observations’ with these bullets…” |
| Field updates | ”Update [Person]‘s job title to ‘VP Engineering’.” |
| Reminders | ”Remind me to follow up with [Person] next Tuesday.” |
Expected Outcome
You have a working sense of what your AI tool can do with Affinity data.📚 Help Center
Task 8: Audit and Revoke Unused Access
Context
API keys and OAuth connections are like passwords. Audit them periodically; revoke anything you don’t actively use. Where you revoke depends on how the client authenticates.Action
For API-key-based clients (Copilot, Gemini, Notion Bearer mode, other clients):- Go to Settings → Manage Apps → API Keys.
- Review the list of keys you’ve created.
- Revoke any unused keys via the row action. Revoked keys stop working immediately.
- Disconnect from inside the AI client’s own settings (e.g., Claude → Settings → Connectors → Affinity → Disconnect).
- You can also review the OAuth connections Affinity has issued at Settings → Affinity MCP.
Expected Outcome
Only active, in-use credentials retain access to your Affinity data.📚 Help Center
Task 9: Go Deeper
Context
The dev docs cover everything beyond the user-friendly setup: full tool schemas, rate limits, OAuth flow details, and how to build custom MCP clients against Affinity.Action
Explore these resources when you’re ready for more:- MCP Introduction: developer.affinity.co/pages/mcp/introduction
- Supported Clients: developer.affinity.co/pages/mcp/supported-clients
- Available Tools: developer.affinity.co/pages/mcp/available-tools