# GhostPaw Affinity MCP server

Local relationship model and social CRM for contacts, relationships, evidence, and commitments.

## At a glance

GhostPaw Affinity is an MCP server in the Dev Tools & Git category. It runs locally over stdio via `npx -y @ghostpaw/affinity`, and declares no required credentials. It exposes 12 tools, including search_affinity, review_affinity and inspect_affinity_item. It scores A (82/100) on the MCP Skills Hub health score as of Oct 28, 2026.

## Install

### How to install GhostPaw Affinity in Claude Code

1. Add the server

```bash
claude mcp add affinity -- npx -y @ghostpaw/affinity
```

2. Verify it's connected

```bash
claude mcp list
```

3. Sharing it with your team?

   Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).

4. Use it in a session

   Ask Claude to use the tools this server exposes (e.g. search_affinity, review_affinity, inspect_affinity_item). It discovers them automatically.

### How to install GhostPaw Affinity in Claude Desktop

1. Open your MCP config

   macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json

2. Add this server

```json
{
  "mcpServers": {
    "affinity": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/affinity"
      ]
    }
  }
}
```

3. Restart Claude Desktop

   The tools appear under the 🔌 menu once the app reloads.

### How to install GhostPaw Affinity in Cursor

1. Create / edit .cursor/mcp.json in your project

```json
{
  "mcpServers": {
    "affinity": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/affinity"
      ]
    }
  }
}
```

2. Enable it

   Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.

### How to install GhostPaw Affinity in Codex CLI

1. Add to ~/.codex/config.toml

```toml
[mcp_servers.affinity]
command = "npx"
args = ["-y", "@ghostpaw/affinity"]
```

2. Run Codex

   Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.

### How to install GhostPaw Affinity in Windsurf

1. Edit ~/.codeium/windsurf/mcp_config.json

```json
{
  "mcpServers": {
    "affinity": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/affinity"
      ]
    }
  }
}
```

2. Reload

   Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.

### How to install GhostPaw Affinity in Cline

1. Open Cline → MCP Servers → Configure

   Adds to cline_mcp_settings.json.

2. Add the server

```json
{
  "mcpServers": {
    "affinity": {
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/affinity"
      ]
    }
  }
}
```

### How to install GhostPaw Affinity in VS Code

1. Create .vscode/mcp.json

```json
{
  "servers": {
    "affinity": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ghostpaw/affinity"
      ]
    }
  }
}
```

2. Start it

   VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.

## Tools

- `search_affinity` — Search contacts by natural key or name
- `review_affinity` — Dashboard-style list and graph review views
- `inspect_affinity_item` — Open one exact profile or link detail
- `manage_contact` — Create, revise, or change contact lifecycle
- `merge_contacts` — Merge duplicate contacts safely
- `manage_duplicate_dismissal` — Dismiss or restore a suspected duplicate pair
- `manage_identity` — Add, revise, verify, or remove identities
- `manage_relationship` — Seed social links, revise bond/state, manage structural ties
- `record_event` — Record direct evidence, observations, milestones, or transactions
- `manage_commitment` — Record or resolve obligations
- `manage_date_anchor` — Add, revise, or remove recurring important dates
- `manage_attribute` — Set, unset, or replace contact/link metadata

Source repository: https://github.com/GhostPawJS/affinity.git

---

Source: https://mcp-skills-hub.vercel.app/mcps/io-github-ghostpawjs-affinity · MCP Skills Hub · data as of 2026-10-28T12:31:05Z
