MCP Server Setup Guide

admin

What is the Commish MCP Server?

The Commish MCP (Model Context Protocol) server lets you manage your entire commission tracking workflow through natural language. Instead of clicking through the dashboard, just tell your AI assistant what you need:

  • *"Show me all pending deals"*
  • *"What would Sarah earn if she closes a $150K deal?"*
  • *"Create a Q3 SPIFF — $500 per new logo over $10K"*
  • *"Clone Phil's comp plan and bump accelerators by 2%"*

It works with Claude Desktop, Claude Code, ChatGPT, Cursor, and any MCP-compatible AI client.

Prerequisites

  • Node.js 18+ installed on your machine
  • A Commish account with API access enabled
  • An MCP-compatible AI client

Step 1: Generate Your API Key

  • Log in to Commish at app.getcommish.io
  • Navigate to Admin → Settings → API Keys
  • Click "Create API Key"
  • Name your key (e.g., "Claude Desktop MCP") and select scopes:
ScopePermissions
readView deals, comp plans, commissions, SPIFFs, users
writeCreate and update deals
adminAll of the above + approve deals, manage comp plans, SPIFFs, webhooks, users
  • Copy your key. It will look like: cm_live_a1b2c3d4e5f6...
⚠️ Important: Store your API key securely. It provides direct access to your commission data. Never share it publicly or commit it to version control.

Step 2: Configure Your AI Client

Claude Desktop (macOS)

Edit ~/Library/Application Support/Claude/claude_desktop_config.json:

`json

{

"mcpServers": {

"commish": {

"command": "npx",

"args": ["-y", "commish-mcp-server"],

"env": {

"COMMISH_API_KEY": "cm_live_your_api_key_here"

}

}

}

}

`

Claude Desktop (Windows)

Edit %APPDATA%\Claude\claude_desktop_config.json with the same configuration as above.

Claude Code

`bash

# Add the MCP server

claude mcp add commish -- npx -y commish-mcp-server

# Set your API key in your environment

export COMMISH_API_KEY="cm_live_your_api_key_here"

`

Cursor

Create or edit .cursor/mcp.json in your project root:

`json

{

"mcpServers": {

"commish": {

"command": "npx",

"args": ["-y", "commish-mcp-server"],

"env": {

"COMMISH_API_KEY": "cm_live_your_api_key_here"

}

}

}

}

`

Local Development (from source)

`bash

git clone https://github.com/commish-io/commish-mcp-server

cd commish-mcp-server

npm install

npm run build

COMMISH_API_KEY="cm_test_your_key" node dist/index.js

`

Step 3: Verify the Connection

After configuring, restart your AI client. You should see 28 Commish tools available. Try a simple command:

Try it: "List all my sales reps" — this should return your team from Commish.

Available Tools (28 Total)

Deals (6 tools)

ToolDescriptionScope
list_dealsList and filter deals by status, rep, dateread
get_dealGet full deal detailsread
create_dealLog a new deal (created as pending)write
update_dealModify deal detailswrite
approve_dealApprove a pending deal (triggers commission calc)admin
reject_dealReject a pending dealadmin

Comp Plans (6 tools)

ToolDescriptionScope
list_comp_plansList all compensation plansread
get_comp_planGet full plan details with tiers & acceleratorsread
create_comp_planCreate a new comp planadmin
update_comp_planModify plan rates, tiers, capsadmin
assign_comp_planAssign a plan to one or more repsadmin
clone_comp_planDuplicate a plan as a starting pointadmin

Users (5 tools)

ToolDescriptionScope
list_usersList all reps and team membersread
get_userGet user details and plan inforead
get_user_commissionsGet a rep's commission historyread
create_userAdd a new rep to the orgadmin
update_userUpdate rep details or statusadmin

Commissions (3 tools)

ToolDescriptionScope
list_commissionsOrg-wide commission recordsread
get_commission_summaryAggregated totals, by-rep & by-period breakdownsread
simulate_commissionWhat-if calculator for hypothetical dealsread

SPIFFs (5 tools)

ToolDescriptionScope
list_spiffsList all SPIFF programsread
get_spiffSPIFF details + live leaderboardread
create_spiffCreate a new SPIFF/contestadmin
update_spiffModify a running or draft SPIFFadmin
delete_spiffCancel/delete a SPIFFadmin

Webhooks (3 tools)

ToolDescriptionScope
list_webhooksList webhook subscriptionsadmin
create_webhookSubscribe to deal/commission/SPIFF eventsadmin
delete_webhookRemove a subscriptionadmin

Example Conversations

You SayWhat Happens
"Show me all pending deals"Lists deals filtered by pending status
"Log a new deal — Acme Corp, $85K ARR, new business"Creates a deal in pending status
"Approve deal abc-123"Approves the deal and triggers commission calculation
"How much has Phil earned this year?"Looks up Phil, then pulls his commission history
"What's our total commission payout?"Returns org-wide commission summary
"What would Sarah earn on a $150K new biz deal?"Runs the commission simulator with her comp plan
"Create a comp plan — 10% new biz, 5% renewals, $250K quarterly quota"Creates a full comp plan with rates and quota
"Set up a Q3 SPIFF — $500 per new logo over $10K, capped at 5 per rep"Creates a SPIFF with criteria and caps
"Clone Phil's plan and assign it to the East team"Clones the plan, then assigns to multiple reps

Environment Variables

VariableRequiredDescription
COMMISH_API_KEYYesYour API key (starts with cm_live_ or cm_test_)
COMMISH_API_URLNoOverride API base URL (default: https://app.getcommish.io/api/v1)

Rate Limits

The Commish API allows 100 requests per minute per API key. The MCP server automatically retries with exponential backoff if you hit the limit. Under normal conversational use, you'll never come close to this limit.

Troubleshooting

"Authentication failed"

  • Verify your COMMISH_API_KEY is set correctly in your client config
  • Check that the key starts with cm_live_ or cm_test_
  • Confirm the key hasn't been revoked in Admin → Settings → API Keys

"Insufficient scope"

  • Your API key doesn't have the required permission for that action
  • Write operations need write scope; management actions need admin
  • Generate a new key with broader scopes if needed

"No tools showing in my AI client"

  • Restart your AI client after editing the config file
  • Verify the JSON config is valid (no trailing commas, proper quotes)
  • Check that npx is available in your PATH
  • Try running manually: COMMISH_API_KEY=your_key npx -y commish-mcp-server

Security Best Practices

  • Use test keys (cm_test_) during development and evaluation
  • Use the minimum scope needed — if you only need to view data, use read
  • Rotate keys periodically via Admin → Settings → API Keys
  • Never commit API keys to version control — use environment variables
  • Set key expiration dates for temporary integrations

Was this article helpful?

Still need help?

Our team is ready to assist you.