Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

xaffinity MCP

by yaniv-golanversion 1.22.0i★ –iRuns on your computer
Registry nameio.github.yaniv-golan/xaffinity-mcp

Install

Overview

Description from the maker (original English)

MCP server for Affinity CRM - entity search, relationship intelligence, and workflow management

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Marketing & social media
  • You need to fill in: AFFINITY_API_KEY

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: AFFINITY_API_KEY

Values marked secret are keys to your account. Never share them or paste them into a chat.

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Download the maker’s .mcpb file

The link goes to the maker’s own file; we do not host or repackage it. Open the file and Claude Desktop installs it.

Run this in your terminal

Fill in the empty values before running it.

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • AFFINITY_API_KEY secret required env
    Your Affinity API key (Settings > API in Affinity)

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 8, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account yaniv-golan, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Marketing & social mediai

  • More stars than 0% of the other 3589 servers in this category
  • Published to the registry more recently than 6% of the other 3589 servers in this category
  • Basic checks equal to or better than 100% of the other 3589 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is xaffinity MCP safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: AFFINITY_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.22.0) reached the registry 7 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need MCPB on your computer.

What can I use instead?

In the same category: MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

An MCP server retrieving transcripts of YouTube videos

Runs on your computer★ 495MITUpdated 11 days ago
Install

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

Runs on your computer★ 244MITUpdated 11 days ago
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

xaffinity MCP Server

An MCP (Model Context Protocol) server for Affinity CRM, built with the MCP Bash Framework.

Features

  • Entity Management - Search and lookup persons, companies, and opportunities
  • Workflow Management - View and update pipeline status, manage list entries
  • Relationship Intelligence - Get relationship strength scores and find warm intro paths
  • Interaction Logging - Log calls, meetings, emails, and messages
  • Session Caching - Efficient caching to minimize API calls

Quick Start

# 1. Install the xaffinity CLI

pipx install "affinity-sdk[cli]"

2. (Optional) Configure your API key - Claude Desktop will prompt if skipped

xaffinity config setup-key

3. Install the MCP server (choose one)

- Claude Desktop: Download and double-click xaffinity-mcp-*.mcpb

- Other clients: See "Manual Installation" below

- Claude Code: /plugin marketplace add yaniv-golan/affinity-sdk

Prerequisites

For Claude Desktop / MCPB Installation (Recommended)

The .mcpb bundle is self-contained — it includes the MCP Bash Framework and gojq. You only need:

RequirementHow to InstallVerify
Python 3.10+python.org or your package managerpython --version
xaffinity CLIpipx install "affinity-sdk[cli]"xaffinity --version
Affinity API keyxaffinity config setup-key (or let Claude Desktop prompt)xaffinity config check-key

Keep the CLI and the extension in step. They are installed separately. When you upgrade one, upgrade the other: download the latest .mcpb after pipx upgrade affinity-sdk, and the other way round. Since MCP 1.25.2, with a CLI older than the extension needs, changes are refused ("This MCP server needs the xaffinity CLI … or later to make changes") and reads still run with a warning that results may be incomplete. An older extension with a newer CLI can fail without saying why (for example, merges with CLI 1.22.0 need extension 1.25.1 or later). Claude Desktop never updates an extension installed from a .mcpb file: install each new release yourself.

For Manual Installation

Manual installation requires additional dependencies:

RequirementHow to InstallVerify
Bash 3.2+Included on macOS/Linux; Windows: use WSL or Git Bashbash --version
Python 3.10+python.org or your package managerpython --version
jq or gojqSee Installing jq/gojq belowjq --version or gojq --version
xaffinity CLIpipx install "affinity-sdk[cli]"xaffinity --version
Affinity API keyxaffinity config setup-keyxaffinity config check-key
Installing jq/gojq

Either jq or gojq works — the server auto-detects which is available.

Which to choose:

  • jq (recommended) — The original, widely available, full regex support
  • gojq — Pure Go implementation, also supports YAML, better error messages

Install jq:

PlatformCommand
macOSbrew install jq
Debian/Ubuntusudo apt-get install jq
Fedorasudo dnf install jq
Arch Linuxsudo pacman -S jq
Windowswinget install jqlang.jq or choco install jq

Install gojq (alternative):

PlatformCommand
macOSbrew install gojq
Any (Go required)go install github.com/itchyny/gojq/cmd/gojq@latest
Binary downloadGitHub Releases

Installation

Option 1: Claude Desktop (One-Click)

The .mcpb bundle is fully self-contained — it includes the MCP framework and JSON processor.

  1. Install the xaffinity CLI: pipx install "affinity-sdk[cli]"
  2. *(Optional)* Configure your API key: xaffinity config setup-key
  • If skipped, Claude Desktop will prompt for your API key during MCPB installation
  1. Download xaffinity-mcp-*.mcpb from the latest release
  2. Double-click the file or drag it into Claude Desktop

Note: MCPB bundles currently only work with Claude Desktop. Other clients require manual installation.

Option 2: Claude Code
/plugin marketplace add yaniv-golan/affinity-sdk

/plugin install affinity-crm-mcp-unofficial@xaffinity

Option 3: Manual Installation

For other MCP clients or development. Requires additional prerequisites.

  1. Download xaffinity-mcp-plugin.zip from the latest release
  2. Extract and configure your MCP client (see Usage below)
  3. The MCP Bash Framework runtime is vendored in .mcp-bash/ — no separate install needed to run the server.
  4. Optional — validate your configuration. validate and doctor are developer tools that need the full mcp-bash install (the vendored copy is runtime-only); the command prints the install line for the pinned version if it is missing:
   ./xaffinity-mcp.sh validate

Troubleshooting

Verify Installation

Before debugging, verify each layer works in order:

Step 1: CLI Installation

First, verify the CLI is installed and can reach the Affinity API. See CLI: Verify Installation.

# Check CLI is installed

xaffinity --version

Check API connectivity (set your API key - same one entered in Claude Desktop)

AFFINITY_API_KEY="your-key-here" xaffinity whoami --json

If whoami hangs, check network connectivity (firewall, proxy, VPN).

Step 2: MCP Server

Once the CLI works, test the MCP server end-to-end.

First, locate your MCP server directory:

# MCPB installation (macOS)

cd ~/Library/Application\ Support/Claude/Claude\ Extensions/local.mcpb.yaniv-golan.xaffinity-mcp/server

Or find it automatically

cd "$(find ~ -name 'xaffinity-mcp.sh' -type f 2>/dev/null | head -1 | xargs dirname)"

Other platforms/installations

InstallationPath
MCPB (Windows)%APPDATA%\Claude\Claude Extensions\local.mcpb.yaniv-golan.xaffinity-mcp\server\
Manual installYour chosen extraction location
Development /mcp/

For MCPB installations: If Step 1 passes, your setup is complete. The MCP server shells out to CLI, so if CLI works with your API key, the MCP server will too. Restart Claude Desktop and test the tools there.

For manual installations: You can also test the MCP layer directly:

AFFINITY_API_KEY="your-key-here" \

mcp-bash run-tool execute-read-command \ --args '{"command":"whoami"}'

Expected: JSON response with your user information.

If Step 1 works but Step 2 fails, the issue is MCP-specific. Run diagnostics (these need the full mcp-bash install, not just the vendored runtime — see step 4 of manual installation):

./xaffinity-mcp.sh doctor

./xaffinity-mcp.sh validate

Common Issues
ErrorCauseSolution
"Could not detect xaffinity CLI"CLI not installedpip install "affinity-sdk[cli]"
"older than this MCP server needs" / "This MCP server needs the xaffinity CLI X or later"Outdated CLIpipx upgrade affinity-sdk or pip install --upgrade "affinity-sdk[cli]"
"API key not configured"Missing credentialsxaffinity config setup-key
"No JSON processor found"jq/gojq not installed (manual install only)See Installing jq/gojq
"Framework not found"Vendored .mcp-bash/ directory missingcd mcp && mcp-bash vendor
Every tool call fails with "server.d/policy.sh was not loaded"The server's folder, server.d or policy.sh is writable by group or other users (common after a clone or unzip with umask 002), a symlink, or owned by another user. The server then refuses to run without its policy (read-only mode and other limits).Run the chmod go-w ... command the error names (or chmod -R go-w ), then restart the server

For detailed debugging, see docs/DEBUGGING.md.

Usage

With Claude Code

The server is automatically available through the Claude plugin at .claude-plugin/mcp.json.

With Other MCP Clients

Add to your MCP client configuration:

{

"mcpServers": { "xaffinity": { "command": "/path/to/affinity-sdk/mcp/xaffinity-mcp.sh" } } }

Tools

CLI Gateway (Primary Interface)

The CLI Gateway provides full access to the xaffinity CLI with minimal token overhead:

ToolDescription
discover-commandsSearch CLI commands by keyword (e.g., "create person", "delete note")
execute-read-commandExecute read-only CLI commands (get, search, list)
execute-write-commandExecute write CLI commands (create, update, delete)
Query Tool
ToolDescription
queryExecute structured JSON queries with filters, joins, and aggregations

For complex data analysis (filtering, grouping, aggregations), use the query tool instead of individual CLI commands. See the Query Language Reference for full documentation.

Utility Tools
ToolDescription
get-entity-dossierGet comprehensive info for an entity (aggregates 5+ CLI calls)
read-xaffinity-resourceRead static MCP resources (data-model, etc.)
CLI Gateway Usage
  1. Discover the right command:
   {"query": "add person to list", "category": "write"}

Returns compact text format:

   # cmd|cat|params (s=str i=int b=bool f=flag !=req *=multi)

list entry add|w|LIST:s! --person-id:i --company-id:i

  1. Execute the command:
   {"command": "list entry add", "argv": ["Pipeline", "--person-id", "123"]}
Output Formats

Control the format of command results for optimal token efficiency:

{"command": "person ls", "format": "markdown"}
FormatToken EfficiencyBest For
jsonLowProgrammatic use (default)
markdownMedium-HighLLM comprehension - best for analysis tasks
toonHigh (~40% fewer)Large datasets, batch operations
csvMediumSpreadsheet export
jsonlMediumStreaming workflows

Recommendations:

  • Use markdown when you need to analyze or summarize data (LLMs read tables well)
  • Use toon for large exports to minimize tokens (30-60% smaller than JSON)
  • Use json when you need full structure with pagination/metadata
Destructive Commands

Commands that cannot be undone (delete, merge) need the user's confirmation:

  • In clients that support confirmation dialogs (MCP elicitation), the server asks you directly.
  • Claude Desktop extensions get no dialog. The tool refuses the first call and tells Claude to ask you in the conversation; Claude retries with confirm: true only after you agree:
{"command": "person delete", "argv": ["456"], "confirm": true}

The tool appends --yes for the CLI. Since MCP 1.27.0 confirm: true counts only after the server refused that exact command (or showed its dialog) in the last 15 minutes, once: if Claude sets it on its first call, the call is refused and Claude is told to ask you. The server can't see the conversation, so it can't tell whether you really agreed: **keep Claude Desktop's tool-approval prompt on for execute-write-command and don't choose "always allow

Only the beginning is shown; read the rest in the repo

Ask PopNx