Atlas: 20% higher ROASEnds in34d21h35m19s

Grok Build MCP server for affiliate programs

Your Affiliate ProgramInside Grok Build

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

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

  • One config block to paste
  • No API key, sign in with Referly
  • Writes preview before they run

01 / Install

Connect Grok Build in 2 minutes

Paste one config block into Grok Build, save, and sign in with your Referly account.

Server URL

https://mcp.referly.so/mcp

No API key. Grok Build runs the OAuth sign-in in your browser on first use.

  1. Add the server

    Add the block below to ~/.grok/config.toml. A project-only server goes in .grok/config.toml instead.

  2. Sign in

    Start grok. The first Referly tool call opens the sign-in in your browser; Grok keeps the token for next time.

  3. Check and ask

    Run grok mcp doctor if a tool does not show up, then ask for this week's referrals.

    grok mcp doctor
~/.grok/config.toml
[mcp_servers.referly]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 Grok Build about your program

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

03 / The work

Checks and exports from a script

The jobs Grok Build 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 Grok Build

Copy one and paste it into Grok Build. 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.

FAQ

Using Referly in Grok Build

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

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

  • No. Grok Build 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