Skip to content
unblockingapiPublic

About

Official MCP server for UnblockingAPI — read any web page (bot-protected, JavaScript-heavy, geo-blocked) and parse it to JSON with templates. Hosted at mcp.unblockingapi.com or run locally with npx.

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

@unblockingapi/mcp

Official Model Context Protocol server and Claude Code plugin for UnblockingAPI. Gives AI apps (Claude, Cursor, VS Code, Lovable, Replit, …) a real browser behind rotating residential proxies: fetch bot-protected and JavaScript-heavy pages and get them back as clean Markdown or HTML.

Hosted at https://mcp.unblockingapi.com/mcp — add it as a connector and sign in, no install. Or run it locally with npx -y @unblockingapi/mcp.

Tools

Tool What it does Cost
unblock_fetch Fetch public web pages that block simple requests, and get clean Markdown or HTML back. Picks plain HTTP or a real browser per site by itself. Optionally narrowed with a CSS select. 1 credit when no browser was needed (non-rendered), 25 when a browser ran (rendered) (Credits); re-reading the same fetch is free
get_build_guide Guides for building apps on the REST API with plain HTTP: API reference, extracting data from pages, getting complete pages, and recipes (rank tracker, listings aggregator, price monitor). free

Failed requests are free. The server's instructions, tool descriptions and the notes in each response steer the agent: let the API choose plain fetch or browser, read the data it needs from the page, scroll or wait when content is missing, and read the build guide before writing code that calls the API.

Getting data out of a page

A fetch returns the page; the agent (or your app) reads the fields it needs. Markdown is enough for most pages. For a long list, ask for format: "html" with select on the repeating item, so only those elements come back:

unblock_fetch(url: "https://www.google.com/search?q=…")                         → the results as Markdown
unblock_fetch(url: "https://shop.example/c/shoes", format: "html", select: ".product-card") → only the product cards

Re-reading the same fetch with another select or format within 10 minutes is free.

API endpoints behind the tools

Tool Calls Key
unblock_fetch POST https://api.unblockingapi.com/unblock (JSON body) X-Api-Key
(first tool call per key) GET https://api.unblockingapi.com/me (free): warns when the account has no active plan X-Api-Key
get_build_guide nothing: the guides ship in the package (guides/) none

Removed tools

Older versions, and listings copied from them, mention tools that no longer exist. Installs of those versions keep working.

Old tool Removed in Use instead
find_templates (and unblock_fetch's template argument) 0.10.0 unblock_fetch(url), and read the data from the page
google_search 0.4.0 unblock_fetch(url: "https://www.google.com/search?q=…")
list_templates 0.4.0 unblock_fetch(url)
idealista_property 0.3.0 unblock_fetch(url)
ahrefs_website_authority before 0.2.0 (never on npm) unblock_fetch(url)

Setup

You need an UnblockingAPI account with a monthly plan — sign up at https://unblockingapi.com and subscribe at https://app.unblockingapi.com/billing (from $19 for 82,500 credits). Then pick one:

  1. Hosted server — paste one URL into your app and sign in. Nothing to install, no key to copy. Recommended for most apps.
  2. Claude Code plugin — the hosted server plus a skill and a setup command, signed in with your account.
  3. Run it locally — the same server over stdio with npx, for those who prefer to run it themselves.

Hosted server

https://mcp.unblockingapi.com/mcp

Streamable HTTP. Apps that support MCP sign-in (OAuth) only need the URL: they open an UnblockingAPI page where you sign in and click Allow. The app never sees your key, and you can disconnect it any time under Settings → Connected apps at app.unblockingapi.com. Apps without sign-in send your key as Authorization: Bearer <key> (or X-Api-Key: <key>).

App How Guide
Claude.ai, Claude Desktop Customize → Connectors → + Add → Add custom connector, paste the URL, Connect unblockingapi.com/tools/claude
Cursor One-click link, or "url" in ~/.cursor/mcp.json, then Login under Settings → MCP docs/cursor-setup.md · site
VS Code (Copilot) code --add-mcp '{"name":"unblockingapi","type":"http","url":"https://mcp.unblockingapi.com/mcp"}', sign in on first use site
Windsurf "serverUrl" in the MCP config (Cascade → MCPs → Open MCP config file) site
Lovable Connectors → + → MCP server, OAuth site
Replit Integrations → MCP Servers → + Add MCP server, Test & save site
Bolt Connectors → Manage connectors → Custom MCP server, transport HTTP, MCP OAuth site
Zed "url" (+ "headers") under context_servers site
Cline Remote Servers tab, "type": "streamableHttp" + key header site
Gemini CLI / Antigravity gemini mcp add --transport http … / "serverUrl" + key header site
Claude API mcp_servers entry, your key as authorization_token site
n8n MCP Client Tool, HTTP Streamable, Bearer Auth site

With a key instead of signing in:

# Claude Code
claude mcp add --transport http unblockingapi https://mcp.unblockingapi.com/mcp \
  --header "Authorization: Bearer your_api_key_here"
{
  "mcpServers": {
    "unblockingapi": {
      "url": "https://mcp.unblockingapi.com/mcp",
      "headers": { "Authorization": "Bearer your_api_key_here" }
    }
  }
}

(Some apps name the URL key serverUrl or httpUrl; VS Code uses servers with "type": "http".) Agent frameworks: see Vercel AI SDK and LangChain.

Claude Code plugin

The plugin connects Claude Code to the hosted server, signed in with your account, and adds skills for reading pages and building on the API. In Claude Code:

/plugin marketplace add unblockingapi/mcp
/plugin install unblockingapi@unblockingapi-plugins

Then run /mcp, pick unblockingapi and choose Authenticate to sign in. New to this? Run /unblockingapi:setup and Claude walks you through it, then checks that it works. Full walkthrough: docs/claude-setup.md.

Run it locally (non-Claude MCP clients)

The same server over stdio for Cursor, VS Code, Claude Desktop's local config, and other MCP hosts. Needs Node.js 18+ and your key in UNBLOCKINGAPI_KEY. Claude Code should use the plugin (hosted OAuth) instead of this env-var path.

No key yet? Leave UNBLOCKINGAPI_KEY out. The server then offers a sign_in tool: the agent gives you a link and a code, you sign in or create an account and approve, and the key is saved to ~/.config/unblockingapi/credentials for next time (it never passes through the chat). Or run npx @unblockingapi/mcp login in a terminal first.

# VS Code
code --add-mcp '{"name":"unblockingapi","command":"npx","args":["-y","@unblockingapi/mcp"],"env":{"UNBLOCKINGAPI_KEY":"your_api_key_here"}}'

Cursor (~/.cursor/mcp.json), Claude Desktop (claude_desktop_config.json; restart after editing) and most other apps take this block:

{
  "mcpServers": {
    "unblockingapi": {
      "command": "npx",
      "args": ["-y", "@unblockingapi/mcp"],
      "env": { "UNBLOCKINGAPI_KEY": "your_api_key_here" }
    }
  }
}

Agentic clients that edit their own config will also set it up if you ask: "Install the @unblockingapi/mcp MCP server. My API key is sk_xxx. It runs over stdio via npx -y @unblockingapi/mcp and needs the env var UNBLOCKINGAPI_KEY."

Environment variables (local server)

Var Required Default Purpose
UNBLOCKINGAPI_KEY no — Your API key. Optional for stdio: without it, use the sign_in tool or npx @unblockingapi/mcp login.
UNBLOCKINGAPI_BASE_URL no https://api.unblockingapi.com Override the API base URL.
UNBLOCKINGAPI_TIMEOUT_MS no 180000 Per-request timeout. A plain fetch that falls back to a browser can take ~170 s.

Usage

Once connected, ask your agent things like:

  • "Read https://example.com/pricing and summarise the plans." → unblock_fetch(url) — the API renders it in a browser if the site needs one
  • "What are the top Google results for 'wikipedia'?" → unblock_fetch(url: "https://www.google.com/search?q=wikipedia")
  • "Pull the price, title and stock from this listing." → unblock_fetch(url), then the agent reads the fields

unblock_fetch parameters

Param Type Notes
url string, required http(s) only; media/binary files are rejected.
render boolean Omit to let the API decide (plain first, browser when blocked or a JS shell; learned per site). true always uses a browser; false never does, which caps the cost.
location string 2-letter country code for the proxy (us, gb, de, …). An unsupported one is refused with the list.
wait_for string Implies a browser. stable (default), domcontentloaded, networkidle, or a CSS selector to wait for.
wait_state enum With a selector wait_for: visible (default), nonempty, hidden, stable.
scroll_steps 0–10 Implies a browser. Scroll this many times before the readiness check (lazy content).
wait_min_ms 0–10000 Implies a browser. Minimum delay after navigation.
settle_ms 0–25000 Implies a browser. Ceiling on the settle wait (default 5000) — capture happens as soon as the DOM is quiet for 500 ms.
wait_rules array Implies a browser. [{if: "#consent", then: "#results"}] — first visible if wins and its then replaces wait_for.
detect_ms 0–25000 Implies a browser. How long to probe wait_rules (default 800).
max_age 0–300 Accept a cached copy this many seconds old. Hits return in ms and carry cached: true.
format markdown | html How the page comes back (default markdown: a fraction of the size).
select string CSS selector: return only the matching elements, in format.
fresh boolean Fetch again even if this exact fetch was made in the last 10 minutes. By default that copy is reused — so re-reading it with another select or format costs nothing.
max_chars integer Cap on returned body (default 80000, max 140000), after format/select. Longer bodies are cut with a note.

Responses start with a JSON metadata block (job_id, status, http_response_code, response_time_ms, render, render_reason, readiness, location, cached, credits_used, truncated, …), then notes on what to try next (scroll for more, a narrower select, …), then --- and the Markdown or HTML body. API errors (bad key, no active plan or out of credits, invalid params, concurrency limit) come back as clear tool errors. When the account has no active plan, the first tool call says so before its result (checked once an hour per API key).

Credits

A successful fetch costs 1 credit when no browser was needed (non-rendered) and 25 when a browser ran (rendered). Every request includes stealth and premium proxies; location never changes the price, and failures are free. A max_age cache hit costs 1; re-reading the same fetch within 10 minutes (the server's own copy) is free.

render: true and any wait or scroll option always use a browser. Leave render unset; set render: false only to cap the cost, since it never opens a browser (a page that needs one then fails, free, or comes back without its JavaScript content).

Full API reference: https://unblockingapi.com/docs.

Development

npm install
npm run dev        # tsx watch
npm run typecheck  # tsc --noEmit
npm run build      # compile to dist/
npm run smoke      # drive the built server over stdio (add UNBLOCKINGAPI_KEY for live fetches)
npm run smoke:http # the same over HTTP against dist/http.js (or MCP_URL=https://mcp.unblockingapi.com/mcp)
npm run start:http # the hosted server on :8080 (PORT)

Repository layout: src/ (server.ts tools, index.ts stdio entry, http.ts hosted entry, client.ts API client), Dockerfile (the hosted image, deployed to mcp.unblockingapi.com by .github/workflows/deploy.yml), .claude-plugin/ (Claude Code marketplace manifest), plugins/claude/ (the Claude Code plugin: hosted server, skill, setup command), .cursor-plugin/ and plugins/cursor/ (the Cursor plugin), docs/ (setup guides).

License

MIT

@unblockingapi/mcp MCP server – quality and maintenance score on Glama

@unblockingapi/mcp MCP server – quality and maintenance score on Glama

About

Official MCP server for UnblockingAPI — read any web page (bot-protected, JavaScript-heavy, geo-blocked) and parse it to JSON with templates. Hosted at mcp.unblockingapi.com or run locally with npx.

Topics

Resources

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages