Atlas: 20% higher ROASEnds in34d21h35m21s

Gemini CLI MCP server for affiliate programs

Your Affiliate ProgramInside Gemini CLI

Add the Referly MCP server to Gemini CLI, 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 Gemini CLI 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. `/mcp auth` opens the browser; nothing is stored in your shell.

  1. Add the server

    One command from the terminal.

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

    Start gemini and run the auth command for the server. A browser window opens for the Referly sign-in.

    /mcp auth referly
  3. Ask

    Ask gemini which affiliates signed up this week, or to check your tracking script.

terminal
gemini mcp add --transport http referly https://mcp.referly.so/mcp

Or in settings

~/.gemini/settings.json
{  "mcpServers": {    "referly": {      "httpUrl": "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 Gemini CLI about your program

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

03 / The work

Checks and exports from a script

The jobs Gemini CLI 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 Gemini CLI

Copy one and paste it into Gemini CLI. 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 `gemini -p` with the morning check prompt in cron or CI.

Read the Gemini CLI 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 gemini -p "$(cat morning-check.txt)"

FAQ

Using Referly in Gemini CLI

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

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

  • No. Gemini CLI 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