Appearance
Costs and limits
The MCP server bills the same credits as the API, at the same prices. Every result tells the agent what it cost, and the agent can cap any call or browser with max_credits.
scrape
A scrape call costs what the same Scraping API request costs: rendering, a residential proxy, AI extraction and a screenshot each add to the price, and traffic over 2 MB is charged as bandwidth.
With proxy: auto (the default), the call tries a datacenter proxy first. If the site blocks it (a 401, 403 or 429, or a bot-protection page), it tries once more on a residential proxy. Only the try that works is charged, and a call where every try fails costs nothing. A 404 or 5xx from the site isn't retried. See Automatic proxy.
max_credits caps the call, bandwidth included:
- A residential retry that would go over it is skipped: the agent gets the blocked datacenter answer, free, with
stop_reason: max_credits. - If the first try already costs more, or the page's bandwidth takes it over, the call fails with
max_creditsand costs nothing.
Browsers Beta
A browser is billed like an API browser session: 2 credits a minute plus its traffic at the proxy's rate, charged when it closes. browser_create returns the prices, and browser_close reports the seconds, MB, credits and balance.
| Limit | Value |
|---|---|
| Browsers at once | 5 per connection, and your plan's limit per account (1 on Free, 2 on pay as you go, 5 on Developer and up; see Limits), counted with browsers you start through the API. Above either: too_many_browsers. |
| Idle time | A browser closes after 10 minutes without a tool call on it. The MCP server keeps it alive in between, so the agent can think for several minutes between steps. |
| Session length | 1 hour at most. |
| Traffic | 500 MB per browser by default; max_credits sets its own cap. |
| Balance | Creating a browser needs a balance that covers 10 minutes and 50 MB at its proxy's rate (payment_required otherwise). |
When a browser closes
A browser closes, and is billed, when the first of these happens:
- the agent calls
browser_close, - 10 minutes pass without a tool call on it,
- it reaches its length, traffic or
max_creditslimit, - the agent's connection ends: when the agent disconnects (for example when you quit it), or after 30 minutes without any request from it, all the browsers it opened close,
- our MCP service restarts: the browsers end and are billed as usual.
A tool call on a closed browser fails with session_not_found (or max_credits if its cap stopped it): the agent creates a new one.
Spending cap
max_credits on browser_create caps what the browser can cost. Half of it goes to traffic and the rest to time, at the browser's proxy rates: the browser gets a traffic cap (max_mb) and a length (max_seconds), and closes at whichever comes first. With max_credits: 100 on datacenter, that's 25 MB and just under 25 minutes.
The cap must cover at least 1 minute and 1 MB: 4 credits on datacenter, 18 on residential. Below that, browser_create fails with invalid_argument and gives the minimum. When the cap stops a browser, the next tool call on it fails with max_credits, and browser_list shows stop_reason: max_credits.
Residential traffic
Residential browsers and residential scrape tries count toward your plan's monthly residential traffic limit. account_usage shows what's left. Once it's used, residential browsers and scrape with proxy: premium fail with residential_cap_reached; scrape with proxy: auto skips the residential retry and returns the datacenter answer.
Low balance warning
When your balance covers less than 10 minutes of browsing (20 credits), every tool reply ends with an extra block, so the agent can tell you before work stops:
json
{"warning": "low_balance", "credits": 14, "message": "14 credits left, under 10 minutes of browsing: tell the user to top up at https://bitfetcher.io/settings/credits before work stops"}Errors
A failed tool call returns an error code and a message the agent can act on, sometimes with more fields (price, stop_reason):
| Code | When | What to do |
|---|---|---|
payment_required | The balance is too low: for a browser, it doesn't cover 10 minutes and 50 MB. | Buy credits or upgrade. |
max_credits | The call, or the browser, reached the agent's max_credits. | Raise the cap, or stop. |
residential_cap_reached | The month's residential traffic is used. | Use a datacenter proxy, or raise the limit. |
too_many_browsers | 5 browsers already open in this connection, or your plan's limit reached on the account. | Close one with browser_close. |
premium_needs_approval | Policy ask, and a residential browser without user_approved. Comes with price. | The agent shows you the price and asks, then retries with user_approved: true. |
premium_not_allowed | Policy never, and a residential browser. Comes with price. | Stay on datacenter, or change the policy. |
browser_start_failed | The browser didn't start, e.g. its proxy failed. A browser that never started isn't charged. | Retry, or try another country. |
session_not_found | No browser yet, or it closed: by browser_close, idle time, its limits, or a restart of our service. | Create a new browser. |
stale_ref | The ref isn't in the tab's latest snapshot, or its element left the page. | Take a new snapshot. |
not_visible | The element has no box on the page: hidden, or zero size. | Pick another element, or scroll or open what hides it. |
navigation_failed | The page couldn't load: DNS, connection refused, aborted. | Check the URL, or retry. |
timeout | The page, or the text awaited, didn't come in time. | Retry, or wait for something else. |
rate_limited | Too many requests at once for your plan. | Retry when one finishes. |
invalid_argument | An argument is wrong, or browser_evaluate's function threw. The message says why. | Fix the argument. |
upstream_error, internal_error | Something failed on our side. | Retry shortly. |
Problems with the key itself stop the connection before any tool runs, and the agent shows them as a failed connection:
| Status | Code | Meaning |
|---|---|---|
401 | missing_api_key | No Authorization: Bearer header. Check the setup. |
401 | invalid_api_key | The key is wrong. Copy it again from the dashboard. |
403 | email_not_verified | Your email address isn't verified yet. Follow the link in the verification email. |
403 | account_suspended | The account is suspended. Contact support. |
400 | invalid_premium_policy | X-Bitfetcher-Premium isn't ask, auto or never. |
502 | api_unavailable | The MCP server couldn't reach the API to check the key. Retry shortly. |

