Affitor

v0.2.5
com.affitor/mcp Checked 3 days ago Published 27 days ago

Affiliate programs in AI tools: read partners, commissions and payouts; track clicks and sales.

Values you need

VariableWhat it is
AFFITOR_API_KEYrequired secret Your Affitor program API key. Server-side only.
AFFITOR_API_URLoptional API base override. Defaults to https://api.affitor.com.
AFFITOR_MCP_WRITEoptional Set to 1 to register the two tools that move money (track sale, track refund). Off by default.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp -e 'AFFITOR_API_KEY=<AFFITOR_API_KEY>' -- npx -y --package=@affitor/mcp@0.2.4 affitor-mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@affitor/mcp@0.2.4",
        "affitor-mcp"
      ],
      "command": "npx",
      "env": {
        "AFFITOR_API_KEY": "<AFFITOR_API_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@affitor/mcp@0.2.4",
        "affitor-mcp"
      ],
      "command": "npx",
      "env": {
        "AFFITOR_API_KEY": "<AFFITOR_API_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AFFITOR_API_KEY",
      "id": "affitor-api-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp": {
      "args": [
        "-y",
        "--package=@affitor/mcp@0.2.4",
        "affitor-mcp"
      ],
      "command": "npx",
      "env": {
        "AFFITOR_API_KEY": "${input:affitor-api-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "--package=@affitor/mcp@0.2.4", "affitor-mcp"]
env = { "AFFITOR_API_KEY" = "<AFFITOR_API_KEY>" }

Remote (hosted)

Run in a terminal
claude mcp add --transport http mcp https://mcp.affitor.com/mcp
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.affitor.com/mcp"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.affitor.com/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.affitor.com/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://mcp.affitor.com/mcp"]

For AI agents

  1. Ask the user for: AFFITOR_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: affitor_readiness, affitor_track_lead, affitor_track_click, affitor_get_integration_plan, affitor_run_verification.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json