Atlas: 20% higher ROASEnds in34d21h35m21s

Claude Code MCP server for affiliate programs

Your Affiliate ProgramInside Claude Code

Add the Referly MCP server to Claude Code, then ask about affiliates, sales and payouts in chat.

14-day free trial · Full access from day one · Cancel anytime

  • One command to add
  • No API key, sign in with Referly
  • Writes preview before they run

01 / Install

Connect Claude Code in 2 minutes

One command adds the server. Sign in with your Referly account in the browser window it opens.

Server URL

https://mcp.referly.so/mcp

OAuth over loopback. `claude mcp login` opens the browser; no key is stored in your shell.

  1. Add the server

    One command, from any project directory.

    claude mcp add --transport http referly https://mcp.referly.so/mcp
  2. Sign in

    Run the login command, or type /mcp inside a session. A browser window opens for the Referly sign-in.

    claude mcp login referly
  3. Ask

    Start claude and ask: who were my top affiliates last month?

terminal
claude mcp add --transport http referly https://mcp.referly.so/mcpclaude mcp login referly

Or check it into the project

.mcp.json
{  "mcpServers": {    "referly": {      "type": "http",      "url": "https://mcp.referly.so/mcp"    }  }}

Using Referly Atlas?

Atlas has its own server. Add it the same way, with this URL.

https://mcp.referly.so/atlas
Atlas MCP setup

02 / Ask

Ask Claude Code about your program

The questions you would ask a teammate, answered from your own Referly records without leaving Claude Code.

03 / The work

Checks and exports from a script

The jobs Claude Code can take off your list. Anything that changes data asks you first.

  • Scripted checks

    Run the tracking check from a script and read plain text back.

  • Exports

    Performance by affiliate, link or coupon, as text you can pipe into a file.

  • CI gates

    Stop a deploy when the integration reports a setup step still missing.

  • Scheduled briefs

    A weekday overview of revenue and referrals, run from cron.

  • Bulk approvals with preview

    The first call previews. Nothing is approved until you confirm.

    Asks first
  • Payout prep

    Count and total the next batch from the terminal. Sending stays in Referly.

Prompts

Prompts to try in Claude Code

Copy one and paste it into Claude Code. Every prompt here is answered by a real tool.

  • Tracking and reports

    Using Referly, is my tracking script live on my site, and which integration is connected right now?

  • Affiliates

    Using Referly, who were my top 5 affiliates by revenue last month, and how did each compare with the month before?

  • Commissions

    Using Referly, list the commissions on hold for more than 30 days and tell me which ones look safe to approve.

  • Payouts

    Using Referly, preview a payout batch for everything approved and above my minimum, and show me the total before creating it.

  • Affiliates

    Using Referly, which affiliates joined in the last 30 days but have not sent a single click yet?

  • Referrals and sales

    Using Referly, show this month's referrals by affiliate and flag any customer who refunded.

Automate

Your morning check, on a schedule

Schedule `claude -p` with the morning check prompt in cron or a CI job; the output is plain text.

Read the Claude Code docs

Weekday routine09:00

cron and print mode

Using Referly, give me the morning check: new sign-ups since yesterday, commissions on hold over 30 days, and anything waiting on me.

  • get_partner_activity
  • list_transactions
  • get_program_overview
0 9 * * 1-5 claude -p "$(cat morning-check.txt)"

FAQ

Using Referly in Claude Code

Referly's MCP server connects Claude Code to your affiliate program. Add https://mcp.referly.so/mcp in Claude Code, sign in with your Referly account, and ask about affiliates, referrals, sales and commissions. Changes are previewed before they run. Payouts are prepared in Claude Code and sent from Referly. Included on every plan.

14-day free trial · Full access from day one · Cancel anytime

  • No. Claude Code opens a Referly sign-in the first time it connects. You choose which program it can see, and you can revoke the connection from Referly at any time.

More assistants

Use it in another assistant

Each one takes the same server URL and the same Referly sign-in.

Using another agent?

Any MCP client that speaks Streamable HTTP can add the URL and sign in the same way.

https://mcp.referly.so/mcp
Server reference