# Affitor

Connects Affitor affiliate tools to AI agents. It tracks referrals, checks onboarding readiness, and guides payment integrations.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: Affitor
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Affitor/cli/tree/HEAD/packages/mcp
- Updated: 2026-10-21
- HTML: https://affpapa.org/en/nevibecode/mcp/affitor

## What it does

The server exposes Affitor affiliate features to MCP clients through a stdio interface. Coding assistants can inspect onboarding progress, register referral clicks, bind customer signups, and generate payment tracking snippets for frameworks like Next.js or Fastify.

Writing operations that touch balance or commission records stay disabled by default. You have to pass `AFFITOR_MCP_WRITE=1` to expose sale and refund tools to the model. Without `AFFITOR_API_KEY`, the process exits immediately with a message on stderr. Synthetic test runs also enforce a rate limit of 10 executions per hour for each program.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://mcp.affitor.com/mcp`
- Environment variables: `AFFITOR_API_KEY`, `AFFITOR_API_URL`, `AFFITOR_MCP_WRITE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://mcp.affitor.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env AFFITOR_API_KEY=<AFFITOR_API_KEY> --env AFFITOR_API_URL=<AFFITOR_API_URL> --env AFFITOR_MCP_WRITE=<AFFITOR_MCP_WRITE> --transport stdio mcp -- npx -y @affitor/mcp
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add mcp --url https://mcp.affitor.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add mcp --env AFFITOR_API_KEY=<AFFITOR_API_KEY> --env AFFITOR_API_URL=<AFFITOR_API_URL> --env AFFITOR_MCP_WRITE=<AFFITOR_MCP_WRITE> -- npx -y @affitor/mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "url": "https://mcp.affitor.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp": {
            "command": "npx",
            "args": [
                "-y",
                "@affitor/mcp"
            ],
            "env": {
                "AFFITOR_API_KEY": "<AFFITOR_API_KEY>",
                "AFFITOR_API_URL": "<AFFITOR_API_URL>",
                "AFFITOR_MCP_WRITE": "<AFFITOR_MCP_WRITE>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "http",
            "url": "https://mcp.affitor.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@affitor/mcp"
            ],
            "env": {
                "AFFITOR_API_KEY": "<AFFITOR_API_KEY>",
                "AFFITOR_API_URL": "<AFFITOR_API_URL>",
                "AFFITOR_MCP_WRITE": "<AFFITOR_MCP_WRITE>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http mcp https://mcp.affitor.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e AFFITOR_API_KEY=<AFFITOR_API_KEY> -e AFFITOR_API_URL=<AFFITOR_API_URL> -e AFFITOR_MCP_WRITE=<AFFITOR_MCP_WRITE> mcp npx -y @affitor/mcp
```
Replace <…> with your own values

## When to use it
- fetch code snippets for payment attribution based on the tech stack
- verify onboarding readiness gates before going live
- record referral clicks and bind user IDs to signups
- run synthetic verification passes without billing real commissions

## Example prompts
- Check the Affitor integration readiness for our project.
- Get the payment tracking implementation steps for Stripe and Express.
- Execute a synthetic attribution verification run in Affitor.

## Similar
- [labelhead-artist-momentum](https://affpapa.org/en/nevibecode/mcp/labelhead-artist-momentum.md) — MCP server · ★ 107701
- [openshorts](https://affpapa.org/en/nevibecode/mcp/openshorts.md) — MCP server · ★ 7132
- [OpenScreen](https://affpapa.org/en/nevibecode/mcp/openscreen.md) — MCP server · ★ 4963
- [Usertour MCP Server](https://affpapa.org/en/nevibecode/mcp/usertour-mcp-server.md) — MCP server · ★ 2329
- [Appllama](https://affpapa.org/en/nevibecode/mcp/appllama.md) — MCP server · ★ 3228
- [obsei](https://affpapa.org/en/nevibecode/mcp/obsei.md) — MCP server · ★ 1441

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
