Affinity
Affinity's official MCP server is at https://mcp.affinity.co/mcp over HTTP. Each call runs as the Affinity user who signs in, or as the owner of the API key. MCP access needs a Scale, Advanced, or Enterprise plan. Check the plan under Settings → Billing & Plans.
Willow identifies itself with your organization's Client ID Metadata Document (CIMD). An Affinity admin adds that URL once under Settings → Manage Apps. For Willow's own Affinity connector, see Affinity (Built-in).
Prerequisites
- An Affinity user with Manage all OAuth apps. Administrators have this by default.
- A Scale, Advanced, or Enterprise plan.
Add Willow's Client URL
- In Willow, go to MCP Servers → + Add MCP server, open the Affinity card with the Official badge, and click + Use.
- Willow OAuth is the sign-in method. Copy the Client ID Metadata Document URL from the card on the setup page. The same card is on the server's Setup tab and in the sign-in window:
- SaaS:
https://{org}.withwillow.ai/{org}/api/auth/client-metadata - On-prem:
{CONNECT_URL}/{org}/api/auth/client-metadata
- SaaS:
- In Affinity, go to Settings → Manage Apps, click New App, then Client URL (CIMD). If your user cannot create API keys, the button is Add by Client URL (CIMD).
- Paste the URL and click Preview. Check the hostname. The name and logo come from the document.
- Leave Allowed Scopes as they are, or narrow them. Willow asks for
mcp(read and write through the MCP server),mcp.read(read-only), andoffline_access(the token keeps working after the user signs out of Affinity). MCP calls needmcpormcp.read. - Click Add App. Affinity saves the client when you click Add App. If it cannot read the URL, the form says why.
People then sign in with Willow OAuth. On the consent screen they can uncheck the write scope and allow lookups only.
Affinity keeps a copy of the document. If it changes later, open the client and click Refresh Metadata.
On Enterprise plans, an admin can limit MCP to specific roles under Settings → Users and Permissions → Roles → Manage MCP Agents. Admins can turn a client off for the organization under Settings → Affinity MCP.
An IP allowlist on the client is optional. Setting one can also require Manage IP allowlist. Calls from other addresses return 403 with Access denied. The allowlist applies to Affinity API v2. Leave it empty to allow any address.
API key
An API key is the other sign-in method. Willow sends it as Authorization: Bearer <key>.
- In Affinity, go to Settings → Manage Apps and click New App. If a menu opens, choose the API key.
- Enter a name and a description. API version and IP allowlist can be left blank.
- Copy the key.
- In Willow, open API key under Sign-in:
- One shared — paste the key once. Willow keeps it in the vault and sends it on every request.
- Each person's own — each person pastes their own key the first time they connect.
Troubleshooting
Sign-in fails with invalid client_id. Copy the Client URL again from the card and add it under Settings → Manage Apps → New App → Client URL (CIMD).
OAuth returns unauthorized or access denied. Confirm the plan is Scale, Advanced, or Enterprise, and that the client is enabled under Settings → Affinity MCP.
Tool calls return permission errors. The call uses the signed-in user's Affinity permissions, including list access and field visibility.