All docs

Connect Claude (MCP)

SlingAgent runs a Model Context Protocol (MCP) server, so Claude — or any MCP client — can read your analytics and answer questions like "which network sent the most clicks this month?", "did anything come from ChatGPT?" or "what should I post more of?".

If you allow it, Claude can also draft posts and schedule them: "write three Bluesky posts for my new book and schedule the best one for Thursday morning". That's off unless you tick it when you connect, and even then Claude can't post on the spot or delete anything. See Drafting and scheduling.

Available on the Unlimited plan.

On claude.ai (easiest)

No token needed — you sign in and approve:

  1. In Claude, open Settings → Connectors and choose Add custom connector.
  2. Name it SlingAgent and enter the URL https://slingagent.com/api/mcp.
  3. Click Connect. Claude sends you to SlingAgent; sign in if asked, check the request, and click Allow. Tick Also let it draft and schedule posts first if you want Claude to be able to do that.

That's it — ask Claude about your analytics in any chat with the connector turned on. You can see and disconnect it any time under Settings → API tokens → Connected apps.

Claude Code, Claude Desktop and other clients

Claude Code can sign in the same way claude.ai does — add the server, then run /mcp inside Claude Code and choose SlingAgent to sign in and approve:

claude mcp add --transport http slingagent https://slingagent.com/api/mcp

Or use a personal token. Create one under Settings → API tokens and copy it (it's shown once; it starts with slag_). A token is always read-only — to let Claude draft and schedule, connect with sign-in instead.

Claude Code with a token:

claude mcp add --transport http slingagent https://slingagent.com/api/mcp \
  --header "Authorization: Bearer slag_your_token_here"

Claude Desktop — add this to your claude_desktop_config.json and restart Claude. It uses the mcp-remote bridge, which needs Node.js installed:

{
  "mcpServers": {
    "slingagent": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://slingagent.com/api/mcp",
               "--header", "Authorization:${SLINGAGENT_AUTH}"],
      "env": { "SLINGAGENT_AUTH": "Bearer slag_your_token_here" }
    }
  }
}

Other clients — anything that speaks MCP over Streamable HTTP works: either with OAuth (it'll find SlingAgent's sign-in automatically) or with the header Authorization: Bearer <token>.

What Claude can see

Tool What it returns
get_summary Clicks, visitors, change vs last period, top links, networks, countries, sources, best hours, top posts
list_links Your links with ids, clicks and networks
get_traffic_sources Channels — including AI assistants — and every named source
get_devices Phone vs desktop, browsers, and how often clicks open inside an app
get_funnel Posts → views → clicks → visitors → earnings
get_live_clicks The last 30 minutes, click by click
get_notes How your notes did — engagement by week, by network, best notes
get_recommendations SlingAgent's suggestions for your account

| list_queue | Posts that haven't gone out yet — drafts and scheduled — with their times |

Most tools take the same filters as the Analytics pages: range_days, network, link_id and country.

Drafting and scheduling

With Also let it draft and schedule posts ticked when you connected, Claude gets these too:

Tool What it does
generate_drafts SlingAgent writes posts for a link in your brand voice, one per network
create_draft Saves a post Claude wrote as a draft for one of your links
edit_promo Changes a waiting post's text or hashtags
schedule_promo Puts a post on your schedule at a time you agree on
unschedule_promo Takes a post off the schedule, back to draft

How it stays safe:

  • Everything starts as a draft. Nothing Claude writes goes out until it's scheduled, even on links set to post automatically.
  • No posting on the spot, no deleting. The most Claude can do is put a post on your schedule, where you can see it, change it or cancel it before it goes out.
  • Drafts count against your monthly post allowance, the same as generating in the app.
  • Times are read in your account's timezone (Settings), the same as the app's time pickers.

Connected before this existed? Your connection is still read-only. To turn on drafting, disconnect SlingAgent in Claude, connect again, and tick the box.

Good to know

  • Bots are already excluded, same as everywhere else in SlingAgent.
  • Earnings are whatever you've logged on each link — Claude can't see your affiliate account.
  • Rate limit: 120 requests per minute per account.
  • Revoke access any time: disconnect the app under Settings → API tokens → Connected apps, or delete the token you pasted.