MCP
Give your AI agents the live, anti-detect web through a standard remote MCP connection: search across Google, Bing and DuckDuckGo, then scrape, crawl, map, extract, screenshot and profile any site. Sign in with OAuth or send an API token.
Give your client the endpoint URL and nothing else. On first use it opens a Wayfern sign-in page in your browser. Sign in, check the app name and where it returns to, and select Allow. There is no token to copy.
/mcp OAuth sign-in or Bearer wf_ token · mcp scopehttps://api.wayfern.com/mcp
Claude Code
claude mcp add --transport http wayfern https://api.wayfern.com/mcpMCP client configuration (OAuth)
{
"mcpServers": {
"wayfern": {
"type": "http",
"url": "https://api.wayfern.com/mcp"
}
}
}Chat apps such as Claude and ChatGPT take the same URL as a custom connector or remote MCP server and show the same sign-in.
Streamable HTTP. Stateless requests, and sessions for older clients.
Active plan or positive credit balance required.
Origin checks, one-hour access tokens, and connections you can revoke.
An OAuth connection has the same tool access as an API token with the mcp scope, never admin tools. Its access token lasts one hour. The client gets a new one with its refresh token, which expires after 60 days without use. Revoke a connection under Connected apps on the API tokens page, and its next MCP call fails.
For client developers: a call without a token gets 401 with WWW-Authenticate: Bearer resource_metadata="https://api.wayfern.com/.well-known/oauth-protected-resource/mcp", scope="mcp".
The authorization server metadata is at https://api.wayfern.com/.well-known/oauth-authorization-server. It supports
Dynamic Client Registration, Client ID Metadata Documents, the authorization code grant with PKCE
(S256 only), refresh token rotation, revocation, and the resource parameter.
Use this when the client cannot open a browser, or for CI and scripts. Create an API token with the mcp scope in the dashboard, and send it in the Authorization header. Put the token in your client's secret
storage; never commit it.
MCP client configuration (API token)
{
"mcpServers": {
"wayfern": {
"type": "http",
"url": "https://api.wayfern.com/mcp",
"headers": {
"Authorization": "Bearer ${WAYFERN_API_TOKEN}"
}
}
}
}Your MCP client handles initialization, the Mcp-Session-Id header, protocol-version headers, and session deletion automatically.
Tokens created before MCP support do not automatically gain the new scope.
Create a new dashboard token, or explicitly mint one with "scopes": ["mcp"].
| Tool | Cost | Description |
|---|---|---|
| search_web | 2 credits / provider page | Search Google, Bing, and DuckDuckGo. Returns ranked results, ads, provider failures, pagination, and related queries. |
| list_search_engines | Free | List live provider ids and labels. |
| Input | Type | Default | Description |
|---|---|---|---|
| query | string | required | Search phrase (1-512 characters). |
| engines | string[] | ["google"] | Any of google, bing, duckduckgo. |
| language | string | - | Language hint such as en or en-US. |
| region | string | - | Market hint such as US. |
| date | string | - | Date range in YYYYMMDD..YYYYMMDD form. |
| filetype | string | - | Restrict results to a file type such as pdf. |
| site | string | - | Restrict results to a domain. |
| limit | integer | 50 | Results per provider, from 1 to 200. |
| start | integer | 0 | Pagination offset. |
| filter_duplicates | boolean | true | Hide near-duplicate results. |
| include_related | boolean | true | Return people-also-search features. |
Nine tools that turn a URL into data, so an agent can read a page, crawl a site or pull
structured records without leaving the conversation. Each one calls the same service as its
REST endpoint, so results and billing are identical — and each tool's description carries its
credit cost, because an agent choosing between scrape_page and crawl_site is making a spend decision on your behalf.
| Tool | Cost | Description |
|---|---|---|
| scrape_page | 1 credit / page | Fetch one page through an anti-detect browser and return clean markdown, HTML, links and metadata. The screenshot, pdf and json formats add +4 credits (once); summary adds +2. |
| extract_data | 1 credit / uncached source page | Extract structured data from one or more pages with a prompt and an optional JSON Schema. Re-running over pages already fetched is free. |
| map_site | 2 credits / 10 URLs | List a site's URLs from its sitemaps and page links. |
| capture_screenshot | 5 credits / capture | Capture a clean image of a page: cookie banners and ads removed, lazy images loaded, tall pages captured end to end. Returns a short-lived download URL and an artifact key, not image bytes. Slices of a full page cost nothing extra; a fail_if_contains match is not charged. |
| brand_profile | 10 credits / profile | Identity, colours, logos, social links and company metadata for a domain. |
| site_styleguide | 10 credits / site | Colours, typography, spacing, radii, shadows and the design tokens a site declares. |
| site_fonts | 5 credits / site | Font families, where each is served from, available weights, file formats and where they are used. |
| crawl_site | 1 credit / successful page | Start a bounded multi-page crawl. Returns a job id immediately and charges nothing up front; pages are billed as the crawl runs. |
| crawl_status | Free | Poll a crawl started with crawl_site and read a page of its results. The pages were billed as they were crawled. |
The tools expose less than the REST endpoints.
crawl_site takes no webhook (poll it with crawl_status), always loads the site's robots.txt and honours
the crawl-delay it declares, stays on the starting site, and runs 3 pages in parallel with no extra delay. For custom headers,
per-page cache control, PDF paper sizes, path-pattern crawls with signed webhooks, or a
custom timeout, call the REST Web Data API.
| Input | Type | Default | Description |
|---|---|---|---|
| url | string | required | The page to scrape (1-2048 characters). |
| formats | string[] | ["markdown"] | 1-8 of markdown, html, rawHtml, links, screenshot, pdf, json, summary. |
| only_main_content | boolean | true | Strip navigation, headers and footers. |
| wait_for_ms | integer | 0 | Milliseconds to wait after load, 0-30000. |
| proxy | string | "auto" | auto, datacenter, or residential. |
| country | string | - | ISO-3166 alpha-2 exit country, exactly two characters. |
| summary_prompt | string | - | Instruction for the summary format. Max 2000 characters. |
| json_prompt | string | - | What the json format should extract. Max 2000 characters. |
| Input | Type | Default | Description |
|---|---|---|---|
| urls | string[] | required | 1-100 URLs. A trailing /* expands to that path's discovered URLs, billed as a map call. |
| prompt | string | required | What to extract, 1-4000 characters. |
| schema | object | - | JSON Schema the result must conform to. |
| max_pages | integer | 10 | Ceiling on source pages fetched, 1-100. |
| proxy | string | "auto" | auto, datacenter, or residential. |
| Input | Type | Default | Description |
|---|---|---|---|
| url | string | required | The site to map. |
| search | string | - | Keep only URLs matching this term. Max 256 characters. |
| limit | integer | 100 | Maximum URLs to return, 1-5000. Billed per block of 10. |
| include_subdomains | boolean | false | Include URLs on subdomains. |
| Input | Type | Default | Description |
|---|---|---|---|
| url | string | required | The page to capture. |
| full_page | boolean | true | Capture the whole scrollable page. |
| format | string | "png" | png or jpeg. |
| dark_mode | boolean | false | Render in dark mode. |
| width | integer | 1440 | Viewport width in CSS pixels, 320-3840. |
| height | integer | 900 | Viewport height in CSS pixels, 320-3840. |
| block_ads | boolean | true | Block ad and tracker requests and hide ad slots. |
| block_cookie_banners | boolean | true | Dismiss and hide cookie banners. |
| selector | string | - | Capture only the element matching this CSS selector. Max 512 characters. |
| hide_selectors | string[] | - | CSS selectors to hide before capturing. Up to 50, each max 512 characters. |
| click | string | - | CSS selector to click before capturing. No visible match within 5 seconds fails the call. |
| wait_for_selector | string | - | CSS selector to wait for after load. Max 512 characters. |
| wait_for_ms | integer | 0 | Milliseconds to wait after load, 0-30000. |
| full_page_slices | boolean | false | Also return the full page cut into images, top to bottom, in slices. Needs full_page; not with selector. |
| slice_height | integer | viewport height | Height of one slice in CSS pixels, 400-10000. Needs full_page_slices. |
| fail_if_contains | string[] | - | Fail without a charge when the page text contains any of these, ignoring case. Up to 20, each 1-256 characters. |
| proxy | string | "auto" | auto, datacenter, or residential. |
| Input | Type | Default | Description |
|---|---|---|---|
| url | string | required | The site to analyse. |
| proxy | string | "auto" | auto, datacenter, or residential. |
| Input | Type | Default | Description |
|---|---|---|---|
| url | string | required | The URL the crawl starts from. |
| limit | integer | 50 | Maximum pages to scrape, 1-5000. Each success is 1 credit. |
| max_depth | integer | 3 | Link hops to follow from the start URL, 0-10. |
| include_paths | string[] | - | Regular expressions a path must match. Up to 50, each max 512 characters. |
| exclude_paths | string[] | - | Regular expressions that exclude a path. Up to 50. |
| allow_subdomains | boolean | false | Follow links onto subdomains. |
| formats | string[] | ["markdown"] | Per-page output formats, as for scrape_page. |
| Input | Type | Default | Description |
|---|---|---|---|
| crawl_id | string | required | The id crawl_site returned, 1-64 characters. |
| skip | integer | 0 | Documents to skip. |
| limit | integer | 25 | Documents to return, 1-100. |
Every tool that fetches from the live web spends credits, at exactly the rates the REST API charges: search_web meters each provider page it fetches (a large limit can fetch several per provider), and the Web Data tools bill per page, per capture, per site or per block of 10 URLs as listed above. list_search_engines, crawl_status, get_usage, resources, and prompts are free. Every paid tool result reports what it actually cost in credits_charged, and credits come from one shared account balance that browser sessions, captcha solves, and residential egress draw on too.
Free. An agent can check the balance before a large batch of paid calls.
| Tool | Cost | Description |
|---|---|---|
| get_usage | Free | The credit balance, plan, usage in the current billing period, and open browser pages against the plan limit. No input. |
wayfern://search-engines — live provider catalog as JSON.
wayfern://mcp/help — concise MCP and billing notes.
research_with_wayfern — multi-source research prompt.
You normally do not need to send this yourself. It is useful for connectivity checks and custom MCP clients.
Initialize
curl -X POST https://api.wayfern.com/mcp \
-H "Authorization: Bearer wf_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-11-25",
"capabilities": {},
"clientInfo": { "name": "my-agent", "version": "1.0.0" }
}
}'