Now with MCP · your agent can query commission, affiliates, and payouts. Read-only. Connect a client
← Blog

Ask Claude About Your Affiliate Program (MCP)

Sled runs an MCP server, so Claude, Cursor, VS Code or opencode can answer questions about your affiliate program. Setup takes one pasted prompt.

SSled11 min read
·Share on X

You know the ritual. A partner asks how many sales they drove last month. You open the dashboard, set the date range, screenshot the two numbers, paste them into Slack, and close the tab. Ten minutes later someone asks about a renewal that didn't credit, and you do it all again.

That ritual is exactly what an AI agent with access to your data is good at. So Sled now runs an MCP server: connect Claude, Cursor, VS Code, opencode or any other MCP client once, and then ask questions in plain language instead of driving the dashboard with your mouse.

Person typing a question into an AI agent

TL;DR

  • MCP is the open standard that lets an AI client call tools on a server. Sled speaks it, so your agent can read your affiliate program directly.
  • Seven read-only tools: program overview, metrics for a date range, affiliates, one affiliate, conversions, payouts, recent activity.
  • Setup is one pasted prompt. Create a key in Settings, copy the setup prompt, paste it into your client. It writes its own config and verifies the connection.
  • Read-only by design. An agent can read your numbers; it cannot change commission rates, approve partners, record payouts or move money. That stays a human decision.
  • Included on every plan, the free trial too. Keys are per program, stored hashed, revocable at any time, and rate limited to 120 requests a minute.

What MCP actually is, without the acronym soup

MCP stands for Model Context Protocol. It is a standard interface between two things: an AI client (Claude Code, Cursor, VS Code, opencode, anything else that speaks it) and a server that owns data (Sled). Instead of pasting exports into a chat, the client asks the server a structured question and gets a structured answer.

The reason it matters for affiliate tracking specifically is that affiliate data is inherently queryable. "How much did Sarah drive this quarter, and how much of it have I already paid?" is not a creative question. It is a lookup with a filter, and it is the kind of lookup a language model is extremely good at phrasing and terrible at inventing. Give it the real numbers and it will summarize, chart and cross-reference them for you. Leave it without access and it will confidently tell you to check the dashboard, which is where the numbers were all along.

Nothing about this requires you to hand your database to a chatbot. The agent gets one key, scoped to one program, and a fixed list of questions it is allowed to ask. Everything else is out of reach by construction.

What you can ask, today

Real prompts that work against the tools as they exist right now:

  • "How is my affiliate program doing this month, compared with last month?"
  • "Which affiliates have clicks but no conversions, and how many clicks each?"
  • "How much commission is currently payable, and to whom?"
  • "Show me every refunded order this year with the affiliate attached."
  • "What happened in my program in the last seven days?"
  • "Which provider produced the most conversions: Polar, Stripe or Paddle?"
  • "How much has Sarah earned since she joined, and how much have I paid her?"
  • "What is my earnings per click this month, and is it better than last month?"
  • "List my affiliates sorted by payable amount, with the oldest unpaid partner first."
  • "Did any conversion come through without an affiliate code?"

That last one is quietly the most useful. Missing attributions are the bug that costs real money, and it is the sort of thing you only notice when a partner emails you about it.

Setting it up

The dashboard has an AI agents section in Settings. Create a key there, then pick your client.

Client Where the config goes Notes
Claude Code claude mcp add or your MCP config file Takes a URL plus an Authorization header directly
Cursor MCP settings, mcpServers block Same shape as Claude Code
VS Code MCP servers settings Same shape
opencode ~/.config/opencode/opencode.json, mcp block Set oauth: false, Sled uses a static key
claude.ai Custom connector, static_headers (beta) An organization admin enters the key once
ChatGPT Not supported yet Needs OAuth, which Sled does not serve yet

Two ways to do this. The manual route is the config block, an mcpServers entry with the URL https://usesled.com/api/mcp and your key as a bearer header. The fast route is the setup prompt in Settings: copy it, paste it into whichever client you already have open, and the agent writes its own config, tells you which file it touched, and calls get_program_overview to prove the connection works. The prompt is client-agnostic on purpose, because we cannot know whether you are in Claude Code, Cursor or something we have never heard of.

If something looks wrong, check it from a terminal first. One curl against the endpoint either returns your program totals or a 401, and that tells you whether the problem is the key or the client.

The seven tools

Tool What it answers
get_program_overview Lifetime totals and program config: commission rate, cookie window, minimum payout
get_metrics Revenue, commission, order counts (first orders vs renewals), clicks, new affiliates and derived rates for a date range
list_affiliates Every partner with clicks, conversions, revenue, commission, paid and payable amounts
get_affiliate One partner in full, looked up by referral code or email
list_conversions Individual attributed orders: order id, partner, amount, commission, provider, renewal flag, status
list_payouts Recorded payouts with method and date, plus what is still owed
get_activity_feed The newest recorded events: joins, first sales, renewals, refunds, payments

Seven tools is deliberate. Every tool an agent can see costs context in every conversation, so a long menu of near-duplicates makes the whole thing worse. These seven cover the questions a program owner actually asks, and they map one to one onto pages in the dashboard you already know.

Read-only is the feature, not the limitation

Every tool is a reader. There is no delete_affiliate, no set_commission_rate, no record_payout. The protocol supports write tools; we have not written any, and the reason is not laziness.

An agent reading your numbers and getting one slightly stale value can be corrected in a sentence. An agent that can approve partners, edit a commission rate or mark a payment as sent is one bad prompt away from changing what people are owed. Payouts and partner approvals are exactly the places where you want a human looking at a screen, and where an audit trail matters more than convenience. If write tools arrive, they will be a separate, clearly labelled surface, and probably a paid one, because that is where the operational value is.

So today the division of labour is clean: the agent reads and summarizes, you decide and act.

Keys, scope and revocation

Each key belongs to one program and nothing else. There is no tool that accepts a program name, which means there is no prompt that could convince an agent to look at someone else's data. The key is the scope.

  • Keys are created in Settings and shown once. Sled stores a hash, so nobody, including us, can read the key back out of the database.
  • You can hold up to five active keys, which is enough for a laptop, a work machine and a client or two.
  • Revocation is immediate. Revoke a key and the next request from that client gets a 401, with no session to expire and no cache to wait out.
  • Requests are capped at 120 per minute per key and 300 per minute per IP address, so a runaway agent loop fails fast instead of turning into a database bill.
  • The endpoint validates the browser Origin header, which means a random website cannot quietly call it on your behalf.

The practical version: treat the key like a password for your reporting, because that is what it is. If you paste one into a shared laptop, revoke it when you are done.

Numbers you can trust

An AI agent inherits both the strengths and the bugs of the data it reads, so the definitions matter more than usual. Sled's MCP answers use the same rules as the dashboard:

  • Revenue and commission exclude refunded conversions. A refund does not quietly sit in a total looking like income. It stays visible as a refunded row instead, which is the behaviour that makes refund-before-sale webhooks survivable.
  • First orders and renewals are counted separately. "18 orders" hides the difference between new customers and the same customer paying again.
  • Money comes back in both cents and a formatted string. Integers for anyone doing arithmetic, dollars for anyone reading aloud.
  • Dates are UTC and inclusive on both ends. Ask for 2026-09-01 to 2026-09-14 and you get both those days, with no timezone guessing.
  • Commissions respect per-affiliate overrides. If a partner is on a custom rate, the numbers they see are their numbers.

That last point is the one agents get wrong on their own. Ask a generic assistant to "estimate commission at 30%" and it will quietly ignore the VIP partner on 40%.

What MCP is not

Worth stating plainly, because the hype is loud:

  • It is not a chatbot for your customers. It is a reporting interface for you, or for whatever agent you run.
  • It is not the dashboard, replaced. The dashboard is still where you approve partners, edit settings and record payouts.
  • It does not move money. Sled never has. Merchants pay partners directly, which is why there is no KYC queue and no per-payout fee. See paying affiliates internationally for the unglamorous details.
  • It is not a ChatGPT connector yet. ChatGPT's connector surface needs OAuth; Sled authenticates with a static key. Claude Code, Cursor, VS Code and opencode work today, and claude.ai works through its static header support.
  • It is not a replacement for knowing your numbers. If you cannot tell whether reported revenue is plausible, no amount of natural language will help.

Prompts that get good answers

Three habits make the difference between a useful answer and a generic one.

Give a date range, or accept the default. Ranges default to the last 30 days. Saying "since the 1st" or "Q2" gets you exactly what you meant instead of a window you have to mentally correct.

Name the entity when you have it. "Sarah" and "sarah-1" resolve differently: one is a name match, the other is a referral code. Codes are unique, names are not.

Ask for a comparison, not just a number. "How did this month compare with last month" makes the agent call get_metrics twice and do the arithmetic, which is the whole point of having it read your data.

A prompt I use weekly, verbatim: "Use the Sled tools. Summarize my program for the last 30 days: revenue, commission, first orders vs renewals, which affiliates drove them, anything refunded, and who is currently owed money. Then tell me the one thing I should look into."

Where this pays off in practice

The weekly review. One prompt replaces the dashboard tour, and it arrives with the comparison already done. Pair it with the questions in our quarterly program audit and the review stops being a chore you skip.

Partner check-ins. When a partner emails "what do I have coming?", you forward a real answer in ten seconds rather than opening a dashboard and reading numbers aloud.

Debugging missing commissions. list_conversions with a date range and the affiliate code shows whether an order landed at all, when it landed, and whether it came back as a refund. Most "Sled lost my sale" reports turn out to be a checkout that never passed the referral metadata, which is a two-minute fix once you can see the shape of the data.

Prep for someone else. Tax season, a bookkeeper, an investor update, a co-founder who wants the shape of the program without a login. The agent produces the summary, you sanity-check it, it goes out. If you have ever rebuilt a spreadsheet for this, see affiliate tax forms for the version that does not need one.

Teaching the agent your program. The MCP instructions field tells the client what Sled is and how the tools fit together. That is why the first question usually gets a good answer instead of a clarification loop.

FAQ

Four things people ask before they connect an agent (and yes, it is included on every plan, the free trial too).

Which clients work right now? Claude Code, Cursor, VS Code, opencode, and anything else that speaks MCP over HTTP with an Authorization header. claude.ai connectors support static headers in beta, with an admin entering the key once. ChatGPT needs OAuth, which is not implemented yet, so do not try to add it there today.

Can an agent change my commission rates or approve partners? No. Every tool is read-only. The agent can report that a partner is pending and what they would earn, and then you approve them yourself in the dashboard.

Is it safe to give an AI agent access to revenue data? The key is scoped to one program, stored as a hash, rate limited and revocable in one click, and no tool accepts another program's identifier. The realistic risk is not a breach, it is pasting a key into a shared machine, which revocation fixes in a second.

What if the numbers look wrong? Check the same question in the dashboard before blaming the agent. The tools call the same code the dashboard renders, so a disagreement is almost always a date range, a default window, or an agent that summed refunds by mistake. Ask it to exclude refunds explicitly and the answer usually snaps back into place.


Sled is flat $19/mo after a 10-day free trial, no percentage cut, and now a read-only MCP server so your agent can answer program questions without you opening a dashboard. Create a program, or read the MCP setup docs first.

Try Sled

Recurring commission on every renewal.

Polar-native affiliate tracking, with Stripe and Paddle handled the same way. 10-day trial, no card required, cancel anytime. Then $19/mo or $99/yr.

Keep reading

All posts →