Adtraction MCP server for AI agents

Live

API KEY

AFFILIATE MARKETING

Marketing

Adtraction gives your agent affiliate marketing data in your Adtraction partner account: read traffic and earnings statistics, transactions, clicks, and payments, browse partner programs and offers, create tracking links, and file claims for untracked transactions.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Adtraction
agent · Acme Q3
Run
Which programs earned me the most commission last month?
S
adtraction_statistics_by_program_get
203ms
Affiliate agent
Your top program earned 1,240 EUR in commission from 38 transactions. The next two each earned under 600 EUR.
Sources: Adtraction statistics, 1 period
adtraction
3 programs
18:29
Message Claude...

Tools your affiliate marketing agent reaches for on Adtraction, scoped per user.

CALL ANY TOOL
33 tools for affiliate marketing in Adtraction: read statistics by program, channel, day, and ad, list transactions, clicks, and payments, browse programs, offers, and product feeds, and create tracking links and claims.
adtraction_applications_list
List applications
List the status of your channels' applications to Adtraction partner programs. Returns each application's program, channel and approval status. Filter by program or channel ID.
Parameters
Name
Type
Required
Description
channel_id
integer
Optional
Numerical ID of one of your channels (website, newsletter, social account), from List Channels. Example: 1324738001.
program_id
integer
Optional
Numerical ID of an Adtraction partner program (advertiser), from Get Programs or List Applications. Example: 1229865361.
adtraction_balance_get
Get balance
adtraction_channels_list
List channels
adtraction_claim_create
Create claim
adtraction_clicks_list
List clicks
adtraction_commission_by_payment_status_get
Get commission by payment status
adtraction_commission_by_transaction_status_get
Get commission by transaction status
adtraction_commission_by_type_get
Get commission by type
adtraction_currencies_list
List currencies
adtraction_exclusive_coupon_get
Get exclusive coupon
adtraction_markets_list
List markets
adtraction_offers_list
List offers
adtraction_payment_transactions_list
List payment transactions
adtraction_payments_list
List payments
adtraction_product_feed_get
Get product feed
adtraction_product_feed_info_get
Get product feed info
adtraction_products_search
Search products
adtraction_program_categories_list
List program categories
adtraction_program_commissions_list
List program commissions
adtraction_programs_get
Get programs
adtraction_programs_new_list
List programs new
adtraction_statistics_by_ad_get
Get statistics by ad
adtraction_statistics_by_channel_get
Get statistics by channel
adtraction_statistics_by_day_get
Get statistics by day
adtraction_statistics_by_epi_get
Get statistics by epi
adtraction_statistics_by_program_get
Get statistics by program
adtraction_statistics_get
Get statistics
adtraction_tracking_errors_list
List tracking errors
adtraction_transactions_gclid_list
List transactions gclid
adtraction_transactions_latest_list
List transactions latest

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Adtraction tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["adtraction"], toolNames: [
    "adtraction_statistics_by_program_get",
    "adtraction_programs_get",
    "adtraction_tracking_link_get"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Show which programs earned the most last month, then create a tracking link for the top one" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["adtraction"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Show which programs earned the most last month, then create a tracking link for the top one" }],
  tools,
});

// Execute the tool call with the user's vaulted Adtraction API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["adtraction"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Show which programs earned the most last month, then create a tracking link for the top one" }],
  tools,
});

// Tool call runs with the user's vaulted Adtraction API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["adtraction"] }, pageSize: 100,
});

const agent = new Agent({
  name: "affiliate_agent",
  model: "gemini-2.5-pro",
  instruction: "Adtraction tools scoped to this user",
  tools,
});

await agent.run("Show which programs earned the most last month, then create a tracking link for the top one");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Adtraction tool. Click to copy, paste into your agent, done.
Earnings and statistics
Copy the prompt
Copied
Show my traffic and earnings statistics grouped by day for last month.
Copy the prompt
Copied
Which channel earned the most commission this quarter?
Copy the prompt
Copied
Show my commission grouped by transaction status.
Programs and offers
Copy the prompt
Copied
List the new partner programs on the Swedish market.
Copy the prompt
Copied
Find coupon codes and offers from my approved programs.
Copy the prompt
Copied
Search the product database for running shoes under 100 EUR.
Tracking and payments
Copy the prompt
Copied
Create a tracking link for this program and channel pointing at this page.
Copy the prompt
Copied
List the payments Adtraction generated in EUR and show the latest.
Copy the prompt
Copied
Create a claim for this order the advertiser did not track.
SEE HOW AUTH WORKS
Each user connects their own Adtraction API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Adtraction
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Adtraction
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Adtraction
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Adtraction
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other marketing connectors.
GTM and RevOps Teams
Competitive intelligence briefing agent
Scans Gong calls for competitor mentions, matches each one to its Notion battlecard, and DMs every affected rep a single Slack digest per cycle. Every call runs as the PMM who owns the briefing, never a shared bot.
GTM and RevOps Teams
Revenue forecast commentary
Pulls open pipeline from Salesforce and HubSpot, calculates coverage against quota, flags at-risk stages, posts commentary to Slack, and logs every snapshot to Google Sheets.
Test other agents
See the same per-user auth pattern across other marketing connectors.
GTM
Competitive intelligence briefing agent
Scan Gong calls for competitor mentions, match each one to its Notion battlecard, and DM every affected rep a single Slack digest.
GTM
Revenue forecast agent
Score pipeline coverage against quota across Salesforce and HubSpot, post forecast commentary to Slack, log snapshots to Sheets.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared key for Adtraction looks fine in a demo. In production every report pull looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Adtraction today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Adtraction as the user or through a shared key?
As the user. Each user connects their own Adtraction API key once, and Scalekit sends it with every call. Audit logs attribute every statistics pull and tracking link to that user, not a shared service account.
Where is the Adtraction API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Adtraction?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the statistics and list tools without adtraction_claim_create, which submits a claim to the advertiser for review. None of the 33 tools is destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Adtraction access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
How does the agent get tracking links?
adtraction_tracking_link_get creates a tracking link for a program and channel, optionally to a specific page and with EPI values. adtraction_channels_list and adtraction_programs_get supply the channel and program to use.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""adtraction"": {
""url"": ""https://mcp.scalekit.com/adtraction"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.adtraction]
url = ""https://mcp.scalekit.com/adtraction""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""adtraction"": {
""url"": ""https://mcp.scalekit.com/adtraction"",
""type"": ""http""
}
}
}