Skip to Content
Won.dev

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

URLhttps://won.dev/mcp
TransportStreamable HTTP
AuthenticationAuthorization: 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.

ParameterValuesWhat it does
toolstrade, enrich, signals, emailThe 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_schematrue, falseWhether 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_costUS dollars, 1 by defaultThe 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,email

A value the server does not know fails with HTTP 400. A tool the URL leaves out is unknown to tools/call as well.

Tools

ToolUse it toCostStands for
trade_lookup_hs_codeFind the HS code of a product from its name.FreeGET /trade/hs-codes
trade_check_coverageSee what data a country has, before spending anything.FreeGET /trade/coverage
trade_search_companiesRank the buyers or suppliers of a product, or the companies one company trades with.$0.01 per companyPOST /trade/companies/search
GET /trade/companies/{id}/partners
trade_search_shipmentsRead the shipment records themselves.$0.005 per recordPOST /trade/shipments/search
GET /trade/companies/{id}/shipments
trade_get_companyGet one company's profile. include adds its partners, latest shipments, contacts and public channels.$0.04 per profile; each included part at its own priceGET /trade/companies/{id}
GET /trade/companies/lookup
trade_find_contactsFind the people to approach at a company, each with a verified work email.$0.03 per contactGET /trade/companies/{id}/contacts
trade_find_leadsGet 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 websitePOST /trade/leads/find
trade_query_statsSize a market: totals, country shares and a month-by-month series.$0.10 per query; $0.02 for official statistics alonePOST /trade/stats/query
enrich_search_companiesList the companies of an industry, a headquarters country, a headcount range or a technology, with their websites.$0.002 per companyPOST /enrich/companies/search
enrich_find_companyFill 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 pricePOST /enrich/companies/find
enrich_search_jobsList a company's open job postings, newest first, with how many are open.$0.003 per postingPOST /enrich/companies/jobs/search
enrich_read_websiteRead 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 freePOST /enrich/companies/website/read
enrich_search_peopleList the people who work at a company, by its website, without contact details.$0.005 per personPOST /enrich/people/search
enrich_find_personFill 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 phonePOST /enrich/people/find
enrich_find_emailFind a person's work email on their employer's domain, checked before it is returned.$0.03 per email foundPOST /enrich/people/email/find
enrich_find_phoneFind a person's phone number, with a WhatsApp link for a mobile.$0.10 per number foundPOST /enrich/people/phone/find
enrich_verify_emailCheck whether an address from elsewhere can receive mail.$0.003 per verdictPOST /enrich/email/verify
signals_search_hiringFind the companies that just posted jobs, for the team that buys what you sell.$0.03 per companyPOST /signals/hiring/search
signals_search_fundingFind the companies that just announced a funding round.$0.20 per companyPOST /signals/funding/search
signals_search_import_surgeFind the importers of a product who import more than before.$0.05 per companyPOST /signals/import-surge/search
signals_check_companyCheck 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 surgePOST /signals/find
email_create_senderRegister a company the emails are sent for: once per company, before its first campaign.FreePOST /email/senders
email_get_senderList the senders of the account, or see one of them.FreeGET /email/senders
GET /email/senders/{id}
email_launch_campaignCreate 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 outPOST /email/campaigns
email_add_recipientsAdd people to a campaign that exists.FreePOST /email/campaigns/{id}/recipients
email_get_campaignSee where one campaign stands, or all of them.FreeGET /email/campaigns
GET /email/campaigns/{id}
email_control_campaignStart, pause, resume or cancel a campaign.FreePOST /email/campaigns/{id}/start
POST /email/campaigns/{id}/pause
POST /email/campaigns/{id}/resume
POST /email/campaigns/{id}/cancel
email_list_repliesRead what recipients answered, what each answer means, and the files it came with.FreeGET /email/replies
email_get_conversationRead everything written with one person, oldest first.FreeGET /email/recipients/{id}/conversation
email_send_replyAnswer a reply in the same thread, with files if needed.$0.03 per answerPOST /email/replies/{id}/reply
email_send_messageWrite again to someone a campaign wrote to, or to a colleague a reply named.$0.03 per emailPOST /email/messages
email_add_suppressionPut addresses or company domains on the do-not-contact list.FreePOST /email/suppressions
email_manage_capacitySee 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 daysGET /email/capacity
POST /email/capacity
DELETE /email/capacity
email_list_eventsGet what happened since the last call: replies, bounces, unsubscribes and changes of status.FreeGET /events
task_createRun 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 ownPOST /tasks
task_getSee how far a task got, what it cost, and its results.FreeGET /tasks/{id}
account_get_usageCheck 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
}
  • usage ends 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_more and next_cursor say how much more there is. Pass next_cursor back as cursor for the next page, see Pagination.
  • notice is 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 read hint and 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 from trade_search_companies or 10 leads from trade_find_leads. A call that could cost more fails with budget_exceeded before anything is charged: its hint gives the price and tells the agent to ask you before it calls again with a higher max_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=5 in 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_cost of email_launch_campaign caps what the campaign may spend in its whole life. The call with dry_run: true shows the most it can cost.
  • email_manage_capacity with action: "request" only quotes a dedicated plan. With confirm: true it starts it, charged $25.00 per domain at once and every 30 days, until action: "stop".
  • account_get_usage returns 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_company and trade_find_contacts take company: 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 is candidates instead, billed as one lookup ($0.02): the agent picks one and calls again with its id.
  • At most 50 results per call, so a result fits in what clients accept from a tool. Page with cursor for more.
  • No Idempotency-Key, and dry_run only as a preview. The price is in each description, and a call without max_cost is capped at $1, which REST is not. A repeat within 24 hours is free without a key. email_launch_campaign and email_add_recipients keep dry_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_companies with trading_with, its shipments are trade_search_shipments with importer or exporter, 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_create and task_get start a task and follow it; listing the tasks and canceling one are REST only: GET /tasks, POST /tasks/{id}/cancel. task_create keeps dry_run, which says the most the task can cost.
  • Thirteen tools for 31 cold email endpoints. email_get_sender and email_get_campaign each stand for the list and for the single read, email_control_campaign for the four actions, and email_manage_capacity for 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_campaign and email_add_recipients, against 1,000 over REST, so the call fits in what a model writes. Add more with further calls of email_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 GET returns 405.
  • Protocol version 2026-07-28, where every request stands alone, and 2025-11-25, 2025-06-18, 2025-03-26 for clients that open with initialize.
  • 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.

On this page