TrafficOX MCP Server
OfficialUse the TrafficOX MCP server to inspect account, campaign, RTB, domain-filter, and conversion data, and to perform selected account-changing actions.
Read account email/name/balance and daily earned/spent stats.
Get valid filter values for countries, categories, OS, browsers, and platform.
List and inspect buy/sell orders, including detailed order data and order statistics by country, category, browser, ISP, platform, domain, day, hour, or sub_id.
Generate sell-order sub-ID earnings reports with filters and cursor pagination.
List and inspect RTB feeds and query RTB statistics account-wide or per feed, with dimensions and breakdowns.
List and inspect domain blacklists/whitelists; create filters and add/remove domains.
List and inspect conversion trackers and conversion events.
Start/pause popunder buy orders and RTB feeds. Actions are account-changing and should be previewed/confirmed per the README.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@TrafficOX MCP Server which domains burned budget on order 105002 this week?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
TrafficOX MCP server
Connect Claude, Cursor and other MCP clients to your TrafficOX account. Ask about your campaigns in plain language — "which domains burned budget on order 105002 this week?", "compare sticker RTB feeds by country for yesterday" — and the assistant reads the numbers from the TrafficOX API.
The server runs locally and talks to https://api.trafficox.com/api with your own API key, so the assistant sees only what your key can see.
Requirements
Node.js 20+
A TrafficOX API key (dashboard → API). API access must be enabled for your account.
Related MCP server: SandBase
Setup
Claude Desktop
Settings → Developer → Edit Config, add to claude_desktop_config.json:
{
"mcpServers": {
"trafficox": {
"command": "npx",
"args": ["-y", "@trafficox/mcp@0.5.0"],
"env": { "TRAFFICOX_API_KEY": "your-api-key" }
}
}
}Restart Claude Desktop.
Claude Code
claude mcp add trafficox --env TRAFFICOX_API_KEY=your-api-key -- npx -y @trafficox/mcp@0.5.0Cursor
~/.cursor/mcp.json (or .cursor/mcp.json in a project) — the same block as for Claude Desktop.
The version is pinned on purpose: your client runs exactly the release you reviewed, not whatever is published later. To upgrade, change the version in the config (versions on npm).
Environment
Variable | Required | Default |
| yes | — |
| no |
|
Tools
Account
get_account— email, username, balanceget_balance_stats— daily earned/spentget_filter_values— valid countries, categories, OS, browsers for filters (categories are category IDs)
Orders (format: popunder | sticker, side: buy | sell)
list_orders— filter bystateandsearch, paged (see Lists);get_orderget_order_stats— group by country, category, browser, isp, platform, domain, day, hour or sub_id, with filters and an optional second-level breakdown. Conversions are counted by the time they were received, traffic and spend by the time of the click, so the numbers match your conversion tracker for the same periodget_account_stats— the same statistics summed over all buy or sell orders of a format in one call (the panel's Total Buy / Total Sell Stats), with a per-order breakdown (group_by=orderorsubdimension=order)get_sub_id_report— sell earnings by sub_id_1..3, cursor-paginated
RTB
list_rtb_feeds— filter bystateandsearch, paged;get_rtb_feedget_rtb_stats— account-wide or per feed; withsubdimension=feedevery feed sub row also carries the feedname
Domain filters
list_domain_filters,get_domain_filter
Conversion tracking
list_conversion_trackers,get_conversion_tracker,list_conversion_events
Actions — these change your account, and only after you confirm (see Confirming changes)
set_buy_order_state— start or pause a popunder buy orderset_rtb_feed_state— start or pause an RTB feedcreate_domain_filter,add_domains_to_filter,remove_domains_from_filter
Bid prices and other order settings are changed in the dashboard only.
Confirming changes
Every action works in two steps. Called without confirm: true it changes nothing and returns a preview built from the current state of your account:
{
"data": {
"preview": {
"action": "add_domains_to_filter",
"filter": { "id": "62c7…", "name": "Bad sources", "list_type": "blacklist" },
"domains_before": 120, "domains_after": 123, "max_domains": 15000, "within_limit": true,
"new": { "count": 3, "domains": ["a.com", "b.com", "c.com"] },
"already_present": { "count": 1, "domains": ["d.com"] }
},
"apply": "Call again with confirm: true after the user agrees."
}
}start / pause: the order or feed name, its current state and the new one, with a note when it is already in that state;
add / remove domains: the filter name, which domains are new, already present or not present, the size before → after and the 15,000-domain cap;
create: the filter that would be created.
The assistant shows you the preview and repeats the call with confirm: true only after you agree. Your MCP client may also ask you to approve the call itself.
Lists
list_orders and list_rtb_feeds take optional state, search (part of the name, case-insensitive; an exact id or id_numeric also matches), page (default 1) and per_page (default 50, max 200):
{ "data": { "items": [ … ], "total": 12, "page": 1, "per_page": 50, "pages": 1,
"counts_by_state": { "active": 9, "paused": 3 } } }total and pages count the filtered list; counts_by_state counts all records of the account, so "how many active orders do I have" is one call.
Prompts
Ready-made workflows your client offers as prompts (in Claude: the "+" menu → the server's prompts). Each tells the assistant which tools to call and how to present the result:
Prompt | Arguments | What you get |
|
| spend and earnings per order, top and bottom orders, anomalies against the previous day |
|
| period-over-period table with Δ and % change |
|
| domains with spend but no conversions or an expensive cost per conversion, and a proposal to blacklist them through the preview — nothing is written until you confirm |
|
| best and worst sell orders and countries by earnings and cpm |
Response format
Every tool returns JSON with the API data under data:
{ "data": { "2026-10-30": { "hits": 378241, "spent": 476.27, "cpm": 1.2592 } } }Dates are ISO and UTC:
2026-10-30, hours2026-10-30T13:00:00Z.Rows exist only where there is data; an empty period returns
{}(or[]).Ratios with a zero denominator (
cpm,cpc, cost per conversion/click) are0.Money totals are rounded to cents;
cpm,cpc, cost-per and payout values to 4 decimals.Buy rows carry
conversions_by_type(conversions and revenue per event type:signup,ftd, …);event_typeslimits the conversion metrics to the given types.Rows of
get_account_statskeyed by order carry the ordername; RTB stats split by feed carry the feedname. Stats grouped by category are keyed by category ID: the public API has no list of category names.Rows keyed by source domain carry
domain_id_numeric, the value the{domain_id_numeric}URL macro sends (nullfor an unregistered source), so stats can be matched with your tracker.If a response is too large for the assistant's context, rows are cut and a separate field says so:
{ "data": { … }, "truncated": { "shown": 556, "total": 1000, "hint": "…" } }.
Limits
Stats requests cover at most 60 days, no more than 90 days back; dates are UTC and default to today. date_end is inclusive: 2026-10-30 means the whole day. A breakdown (subdimension) returns up to 1000 sub-rows per row (day/hour return every day/hour); a breakdown too large for one request is rejected with a hint to shorten the range.
Development
pnpm install
pnpm test
pnpm build
TRAFFICOX_API_KEY=... node dist/index.js # stdio serverFull REST reference: https://app.trafficox.com/docs/
Available Tools
20 toolsadd_domains_to_filterAdd domains to filterAIdempotent
Append domains to a domain filter (max 15,000 per filter). Invalid domains are skipped and listed in rejected_domains. Takes effect on every order using this filter.
Inputs: id (required), domains (required).
create_domain_filterCreate domain filterA
Create a domain blacklist or whitelist. Invalid domains are skipped and listed in rejected_domains. Attach it to an order in the dashboard.
Inputs: name (required), domains (required), list_type (required), ips.
get_accountAccountBRead-only
Current TrafficOX account: email, name, balance (USD).
Inputs: no named parameters.
get_balance_statsBalance by dayBRead-only
Daily earned/spent (USD) for the account plus totals and current balance.
Inputs: date_end, date_start.
get_conversion_trackerConversion trackerCRead-only
One conversion tracker with its postback settings.
Inputs: id (required).
get_domain_filterDomain filterCRead-only
One domain filter with its full domain list.
Inputs: id (required).
get_filter_valuesFilter valuesARead-only
Valid values for stats filters: countries, categories, desktop/mobile OS, desktop/mobile browsers, platform. Call this before filtering if unsure of exact spelling.
Inputs: no named parameters.
get_orderOrder detailsBRead-only
Full order details. Buy orders include targeting (order_filter), traffic filter and the attached domain filter.
Inputs: id (required), side (required), format (required).
get_order_statsOrder statisticsARead-only
Statistics of one buy or sell order grouped by a dimension. Buy rows: hits, unique, desktop, mobile, spent, cpm, conversions, cost_per_conversion, conversion_rate, conversion_revenue, winrate, profit. Sell rows: total, unique, sold, sent_back, earned, cpm. group_by=sub_id is sell-only; group_by=domain is not available for sticker sell orders. subdimension adds a nested sub breakdown to every row (must differ from group_by). from/size/order_field/order_direction paginate sell orders only; buy orders return up to 1000 rows.
Inputs: id (required), side (required), format (required), group_by (required), +17 more.
get_rtb_feedRTB feed detailsCRead-only
One RTB demand feed with its settings.
Inputs: id (required), format (required).
get_rtb_statsRTB statisticsARead-only
RTB statistics grouped by a dimension — for the whole account, or for one feed when feed_id is given. Terms groupings return 10 rows unless size is set. subdimension adds a nested sub breakdown to every row (must differ from group_by); feed splits rows per RTB feed.
Inputs: format (required), group_by (required), isp, from, +14 more.
get_sub_id_reportSub-ID reportARead-only
Sell-order earnings grouped by up to three sub-ID levels (sub_id_1..3), cursor-paginated: pass the returned after to get the next page. Works for any format; needs the hex order id.
Inputs: id (required), isp, size, after, +11 more.
list_conversion_eventsConversion eventsCRead-only
Conversion postbacks received by a tracker, newest first, paginated.
Inputs: id (required), page, status, per_page, +2 more.
list_conversion_trackersList conversion trackersCRead-only
S2S conversion trackers of the account.
Inputs: status.
list_domain_filtersList domain filtersCRead-only
Domain blacklists/whitelists of the account, 20 per page.
Inputs: page, length, search, list_type.
list_ordersList ordersCRead-only
All buy orders (campaigns) or sell orders (placements) of the account for one ad format.
Inputs: side (required), format (required).
list_rtb_feedsList RTB feedsARead-only
RTB demand feeds (DSP endpoints) of the account for one format, with state.
Inputs: format (required).
remove_domains_from_filterRemove domains from filterADestructiveIdempotent
Remove domains from a domain filter. Takes effect on every order using this filter.
Inputs: id (required), domains (required).
set_buy_order_stateStart / pause buy orderADestructiveIdempotent
Start (active) or pause (paused) a popunder buy order. Starting it resumes buying traffic and spending balance.
Inputs: id (required), state (required).
set_rtb_feed_stateStart / pause RTB feedADestructiveIdempotent
Start (active) or pause (paused) an RTB demand feed; bidding changes within ~10 seconds. Account managers are notified.
Inputs: id (required), state (required), format (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 20 tools
Most tools target clearly distinct resources or actions, such as orders vs RTB feeds vs domain filters. There is some conceptual overlap among the stats tools (get_order_stats, get_sub_id_report, get_rtb_stats), but the descriptions clarify their different scopes and grouping options.
Every tool follows a consistent snake_case verb_noun pattern: get_, list_, set_, create_, add_, remove_. There are no mixed casing styles or vague one-word tool names.
The server exposes 20 tools for a fairly broad ad-traffic domain, which is on the heavy side for an MCP toolset. While most tools map to distinct operations across account, stats, orders, filters, trackers, and RTB feeds, the surface feels larger than necessary rather than tightly scoped.
Core read, stats, domain-filter CRUD, and some state toggles are present, but there are notable gaps: no create/update operations for buy/sell orders, conversion trackers, or RTB feeds. Order state changes only cover popunder buy orders, leaving broader order lifecycle management incomplete.
Maintenance
Related MCP Connectors
Analyze, edit and launch Meta (Facebook and Instagram) ads from Claude, ChatGPT, Cursor or Codex. Query insights and campaign health, change budgets, bids, status and targeting with undo, bulk-launch many ads across campaigns and ad sets from a live ad's settings, and duplicate by post to keep social proof. Choose per ad account what the agent may do and what waits in the Agent Inbox for approval. Requires a paid Ads Uploader account with MCP access.
Hosted Google Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Google Ads MCP for Claude and ChatGPT. Preview every write. No developer token.
Hosted Meta Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server exposing the full ClickUp REST API v2 as MCP tools, enabling natural language management of ClickUp workspaces, spaces, folders, lists, tasks, custom fields, comments, goals, views, webhooks, and time tracking via any MCP-compatible client like Claude Desktop or Cursor.97MIT
- AlicenseNot gradedqualityAmaintenanceA local MCP bridge that connects AI clients such as Claude Code, Cursor, Codex, ChatGPT, and Hermes to 2,000+ models and APIs, letting agents discover, inspect, and run search, social, scraping, finance, LLM, image, video, and audio capabilities behind a single browser sign-in. It keeps spending verifiable by exposing live schemas, pricing, run status, account balance, and rollback before anything executes.556,724 npmMIT
- FlicenseNot gradedqualityAmaintenanceExposes a governed suite of 38 tools over a single OAuth-gated MCP endpoint, letting web AI chat clients such as Claude, ChatGPT, and Grok operate on a local machine — reading and editing files, running whitelisted shell commands, searching, querying SQLite, driving browsers and DevTools, managing background jobs, ports, and clipboard. Local IDEs and Postman can also connect directly over localhost for offline, low-latency access.-
- AlicenseNot gradedqualityAmaintenanceEnables MCP clients to discover, inspect, and run 2,000+ AI models and data APIs, including search, social, scraping, image, video, and audio tools, through one browser-authorized local bridge. It also surfaces run status, recorded cost, and account balance, and supports rolling back client configuration changes.556,724 npmMIT