MCP server
Give an AI agent the trade data, enrichment, signals and cold email APIs as tools: how to connect, what each tool does and costs, and how spending is capped.
The MCP server gives an agent the trade data API, the enrichment API, the signals API and the cold email API as tools, over the Model Context Protocol. It is a remote server: you add one URL to your client, with an API key or by signing in, and there is nothing to install.
Connect
| URL | https://won.dev/mcp |
| Transport | Streamable HTTP |
| Authentication | Authorization: Bearer <API key> on every request, or OAuth |
Most clients take the server as JSON:
{
"mcpServers": {
"won": {
"type": "http",
"url": "https://won.dev/mcp",
"headers": {
"Authorization": "Bearer won_live_..."
}
}
}
}In Claude Code:
claude mcp add --transport http won https://won.dev/mcp \
--header "Authorization: Bearer $WON_API_KEY"Give each agent a key of its own with a budget: it cannot spend more than that. A key that starts with won_test_ costs nothing, which is the way to try an agent out: the trade data, enrichment and signals tools return sample data, and the cold email tools run in a sandbox where no email is sent.
Connect without a key
Claude, ChatGPT and other clients that sign in with OAuth need the URL alone: add https://won.dev/mcp as a custom connector, without a header. The client opens won.dev, where you sign in with Google, pick the organization the app calls as, and allow it.
The app then calls like a key of that organization: its calls are paid from the balance, one call costs at most $1 unless it sets max_cost, and the rate limit is the same.
The app gets a key of its own on the API keys page of the console, named after it. Set a budget there, or revoke the key to disconnect the app. Connecting creates a key, so only owners and admins of an organization can connect apps.
The app's tokens work for the MCP server only. The REST API takes keys.
Choose the tools
Parameters in the URL choose what the server offers, so that an agent that needs one product does not carry the definitions of all of them, and how much one call may spend.
| Parameter | Values | What it does |
|---|---|---|
tools | trade, enrich, signals, email | The products whose tools are offered, comma-separated. account_get_usage always comes along, and the task tools with trade, enrich or signals. All of them when left out. |
output_schema | true, false | Whether tools/list gives each tool's result schema as outputSchema. Off by default, which makes the list 70% smaller. Every result carries structuredContent either way. |
max_cost | US dollars, 1 by default | The most a paid call may cost when it does not set max_cost itself. See Spending. |
An agent that finds buyers and writes to them:
https://won.dev/mcp?tools=trade,emailA value the server does not know fails with HTTP 400. A tool the URL leaves out is unknown to tools/call as well.
Tools
| Tool | Use it to | Cost | Stands for |
|---|---|---|---|
trade_lookup_hs_code | Find the HS code of a product from its name. | Free | GET /trade/hs-codes |
trade_check_coverage | See what data a country has, before spending anything. | Free | GET /trade/coverage |
trade_search_companies | Rank the buyers or suppliers of a product, or the companies one company trades with. | $0.01 per company | POST /trade/companies/searchGET /trade/companies/{id}/partners |
trade_search_shipments | Read the shipment records themselves. | $0.005 per record | POST /trade/shipments/searchGET /trade/companies/{id}/shipments |
trade_get_company | Get one company's profile. include adds its partners, latest shipments, contacts and public channels. | $0.04 per profile; each included part at its own price | GET /trade/companies/{id}GET /trade/companies/lookup |
trade_find_contacts | Find the people to approach at a company, each with a verified work email. | $0.03 per contact | GET /trade/companies/{id}/contacts |
trade_find_leads | Get buyers or suppliers together with a way to reach each one, in one call. | $0.01 per company, plus $0.03 per contact or $0.02 for the shared mailboxes of its website | POST /trade/leads/find |
trade_query_stats | Size a market: totals, country shares and a month-by-month series. | $0.10 per query; $0.02 for official statistics alone | POST /trade/stats/query |
enrich_search_companies | List the companies of an industry, a headquarters country, a headcount range or a technology, with their websites. | $0.002 per company | POST /enrich/companies/search |
enrich_find_company | Fill in a company from its website, name, LinkedIn page or a work email. include adds its public channels, technologies, funding, news, job postings and similar companies. | $0.01 per profile; each included part at its own price | POST /enrich/companies/find |
enrich_search_jobs | List a company's open job postings, newest first, with how many are open. | $0.003 per posting | POST /enrich/companies/jobs/search |
enrich_read_website | Read a company's own website for its shared mailboxes, phone numbers, WhatsApp and WeChat contacts, and the people it names with a verified work email. | $0.02 when it gives a way to reach the company, plus $0.03 per person with an email; the first call is free | POST /enrich/companies/website/read |
enrich_search_people | List the people who work at a company, by its website, without contact details. | $0.005 per person | POST /enrich/people/search |
enrich_find_person | Fill in a person's profile from an email, a LinkedIn profile or a name at a company. include adds the work email and the phone. | $0.02 per profile, plus $0.03 for the email and $0.10 for the phone | POST /enrich/people/find |
enrich_find_email | Find a person's work email on their employer's domain, checked before it is returned. | $0.03 per email found | POST /enrich/people/email/find |
enrich_find_phone | Find a person's phone number, with a WhatsApp link for a mobile. | $0.10 per number found | POST /enrich/people/phone/find |
enrich_verify_email | Check whether an address from elsewhere can receive mail. | $0.003 per verdict | POST /enrich/email/verify |
signals_search_hiring | Find the companies that just posted jobs, for the team that buys what you sell. | $0.03 per company | POST /signals/hiring/search |
signals_search_funding | Find the companies that just announced a funding round. | $0.20 per company | POST /signals/funding/search |
signals_search_import_surge | Find the importers of a product who import more than before. | $0.05 per company | POST /signals/import-surge/search |
signals_check_company | Check one company for all three signals, to decide whom to write to first and what to open with. | Per kind found: $0.03 hiring, $0.20 funding, $0.05 import surge | POST /signals/find |
email_create_sender | Register a company the emails are sent for: once per company, before its first campaign. | Free | POST /email/senders |
email_get_sender | List the senders of the account, or see one of them. | Free | GET /email/sendersGET /email/senders/{id} |
email_launch_campaign | Create a campaign: a sequence of emails for a list of people. With dry_run it shows the emails and the most they can cost, and creates nothing. | Free to create; $0.03 per email as it goes out | POST /email/campaigns |
email_add_recipients | Add people to a campaign that exists. | Free | POST /email/campaigns/{id}/recipients |
email_get_campaign | See where one campaign stands, or all of them. | Free | GET /email/campaignsGET /email/campaigns/{id} |
email_control_campaign | Start, pause, resume or cancel a campaign. | Free | POST /email/campaigns/{id}/startPOST /email/campaigns/{id}/pausePOST /email/campaigns/{id}/resumePOST /email/campaigns/{id}/cancel |
email_list_replies | Read what recipients answered, what each answer means, and the files it came with. | Free | GET /email/replies |
email_get_conversation | Read everything written with one person, oldest first. | Free | GET /email/recipients/{id}/conversation |
email_send_reply | Answer a reply in the same thread, with files if needed. | $0.03 per answer | POST /email/replies/{id}/reply |
email_send_message | Write again to someone a campaign wrote to, or to a colleague a reply named. | $0.03 per email | POST /email/messages |
email_add_suppression | Put addresses or company domains on the do-not-contact list. | Free | POST /email/suppressions |
email_manage_capacity | See how many emails the account can send a day, or get mailboxes of its own. | Free to check; $25.00 per domain of your own, every 30 days | GET /email/capacityPOST /email/capacityDELETE /email/capacity |
email_list_events | Get what happened since the last call: replies, bounces, unsubscribes and changes of status. | Free | GET /events |
task_create | Run up to 100 email lookups, email checks or signal checks, or find up to 500 leads, in the background. | Free to create; each part what the call costs on its own | POST /tasks |
task_get | See how far a task got, what it cost, and its results. | Free | GET /tasks/{id} |
account_get_usage | Check the balance, the key's budget and what was spent. | Free |
The server sends each tool's description and parameters to the client, and its result schema with ?output_schema=true. The parameters have the names and meanings of the API reference for trade data, enrichment, signals and cold email, and Reading the numbers says what the counts and values mean.
Results
A result carries the answer twice: as structuredContent, and as the same JSON in a text block for clients that only read text. This is a call and what comes back:
{
"method": "tools/call",
"params": {
"name": "trade_search_companies",
"arguments": {
"role": "importer",
"hs_code": "940161",
"importer_country": "US",
"limit": 1
}
}
}{
"content": [
{
"type": "text",
"text": "{ ...the same JSON as text... }"
}
],
"structuredContent": {
"data": [
{
"id": "co_8f3k2m9x4p1q",
"name": "SAMPLE NORTHFIELD HOME FURNISHINGS INC",
"role": "importer",
"country": "US",
"shipments": 1840,
"recorded_value_usd": 21480350.4,
"website": "northfield-home.example",
"sample_product": "UPHOLSTERED SOFA WITH WOODEN FRAME, FABRIC COVER"
}
],
"total": 4087,
"has_more": true,
"next_cursor": "cur_Zx81kQp4b2JtMW0uMXJ6ZzQ",
"query": {
"role": "importer",
"hs_code": "940161",
"importer_country": "US",
"exclude_forwarders": true,
"sort": "shipments",
"since": "2025-11-01",
"until": "2026-11-20",
"data_through": "2026-11-11"
},
"notice": null,
"usage": {
"unit": "trade_company",
"records": 1,
"already_paid": 0,
"cost": 0.01,
"balance": 48.09,
"replayed": false
}
},
"isError": false
}usageends every result: what the call cost, and the balance left.- The fields are those of the API, in the same order: see Responses.
total,has_moreandnext_cursorsay how much more there is. Passnext_cursorback ascursorfor the next page, see Pagination.noticeis a plain sentence when there is something to know: why a part is missing, or which tool to try next.- A call that fails is a result with
isError: true. Its text is the error body of the API, with the same codes as on Errors, so an agent can readhintand correct itself.
Spending
The tools bill like the API: for the results a call returns. An empty result, an error and the same call repeated within 24 hours are free, and a result your organization paid for in the last 30 days is not charged again. Every tool's description states its price.
- A call costs at most $1 unless it sets
max_cost. That covers every call with the default parameters, and also 50 companies fromtrade_search_companiesor 10 leads fromtrade_find_leads. A call that could cost more fails withbudget_exceededbefore anything is charged: its hint gives the price and tells the agent to ask you before it calls again with a highermax_cost. A task of 100 email lookups (up to $3.00) and a dedicated sending plan cost more, so they need your yes.?max_cost=5in the URL makes the default $5. A test key has no default cap, since it costs nothing. - A key's budget caps everything the key spends, whatever the agent asks for.
- A campaign is not paid for when it is launched. It is charged $0.03 for each email as it goes out, over days, and the
max_costofemail_launch_campaigncaps what the campaign may spend in its whole life. The call withdry_run: trueshows the most it can cost. email_manage_capacitywithaction: "request"only quotes a dedicated plan. Withconfirm: trueit starts it, charged $25.00 per domain at once and every 30 days, untilaction: "stop".account_get_usagereturns the balance, what is left of the key's budget and the latest charges.
The trade data, enrichment and signals tools, and the cold email tools that only read your account, are marked read-only, because they change nothing outside your account. Some clients therefore call them without asking you first. What stops an agent from overspending is the key's budget and the cap on one call, not a confirmation dialog. The cold email tools that write are not marked read-only, since they end in emails to real people or in a paid plan, and email_control_campaign is marked destructive because cancel cannot be undone. A client that asks before such calls will ask.
Differences from the REST API
- A company by name.
trade_get_companyandtrade_find_contactstakecompany: an ID, a name or a website. A name that matches one company goes on, and the lookup is not charged. When several match, the result iscandidatesinstead, billed as one lookup ($0.02): the agent picks one and calls again with itsid. - At most 50 results per call, so a result fits in what clients accept from a tool. Page with
cursorfor more. - No
Idempotency-Key, anddry_runonly as a preview. The price is in each description, and a call withoutmax_costis capped at $1, which REST is not. A repeat within 24 hours is free without a key.email_launch_campaignandemail_add_recipientskeepdry_run, because there it shows the emails and the list as they would go out. Launching the same list twice writes to nobody twice: people who are already in a campaign of yours that has not ended are left out. - Eight tools for eleven trade data endpoints. A company's partners are
trade_search_companieswithtrading_with, its shipments aretrade_search_shipmentswithimporterorexporter, and the lookup by name is part of the two company tools. - One tool for each enrichment and signals endpoint, with the same parameters.
- Two tools for four task endpoints.
task_createandtask_getstart a task and follow it; listing the tasks and canceling one are REST only:GET /tasks,POST /tasks/{id}/cancel.task_createkeepsdry_run, which says the most the task can cost. - Thirteen tools for 31 cold email endpoints.
email_get_senderandemail_get_campaigneach stand for the list and for the single read,email_control_campaignfor the four actions, andemail_manage_capacityfor the three capacity calls. What only a program needs is REST only:PATCH /email/campaigns/{id},GET /email/campaigns/{id}/recipients,POST /email/recipients/{id}/stop,GET /email/messages,GET /email/replies/{id},GET /email/suppressions,DELETE /email/suppressions/{id},POST /webhooks,GET /webhooks,GET /webhooks/{id}/deliveries,DELETE /webhooks/{id}. - At most 100 recipients per call in
email_launch_campaignandemail_add_recipients, against 1,000 over REST, so the call fits in what a model writes. Add more with further calls ofemail_add_recipients.
Protocol
- Streamable HTTP. Each request is one POST with one JSON-RPC message and gets one JSON response. The server keeps no session and opens no stream, so
GETreturns405. - Protocol version
2026-07-28, where every request stands alone, and2025-11-25,2025-06-18,2025-03-26for clients that open withinitialize. - Authentication is by API key or by OAuth 2.1. A 401 points to the server's metadata at
/.well-known/oauth-protected-resource/mcp(RFC 9728), the authorization server's is at/.well-known/oauth-authorization-server, and a client registers itself (RFC 7591) or publishes its metadata at the URL that is its client ID. - A key can send 20 requests back to back, then has to pause for a second, counted together with its REST requests. Every response carries the
RateLimit-*headers, see Rate limits.