UnblockingAPI

Fetch bot-protected and JavaScript-heavy pages for AI agents, or parse them to JSON with templates.

我該用這個嗎

品質與安全性

A
說明品質
100%
結構描述完整度
97%
命名品質
93%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,930Token(工具定義)
~6.1 KB典型回應大小
中等的注意力影響(128k 上下文的 1.51%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "@unblockingapi/mcp"
      ]
    }
  }
}

可執行的套件

npm@unblockingapi/mcp0.8.4stdio

遠端端點

https://mcp.unblockingapi.com/mcpstreamable-http

它能做什麼

工具清單

工具(3)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
🟢unblock_fetch(url, render, location, wait_for, settle_ms, ...)

Fetch a web page through UnblockingAPI's rotating residential proxies and a real browser. Useful for pages a plain HTTP fetch can't read: pages that need JavaScript, refuse automated requests, or show different content by country. Returns the page as Markdown (or cleaned HTML with format: 'html'); select narrows it to the part you need. If content is missing, fetch again with scroll_steps or wait_for. Picks the mode itself by default: a plain HTTP fetch first, and a real browser when the site blocks it or needs JavaScript. Pass a template reference to get structured JSON instead of HTML — call find_templates with the url first to see whether one exists. Costs 1 credit per successful fetch; failures are free.

輸入結構描述

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The HTTP/HTTPS URL to fetch. Media and binary files are rejected."
    },
    "render": {
      "type": "boolean",
      "description": "Omit to let the API decide (plain fetch first, a browser when blocked or when the page is an empty JavaScript shell; learned per site). true always renders with a real browser (slower, up to ~2 min worst case); false never does. Any wait option implies true."
    },
    "location": {
      "type": "string",
      "pattern": "^[a-zA-Z]{2}$",
      "description": "2-letter country code to proxy through (e.g. 'us', 'gb', 'de'). Most countries are supported; an unsupported one is refused with the list."
    },
    "wait_for": {
      "type": "string",
      "maxLength": 500,
      "description": "Implies a browser. When to capture: 'stable' (default — once the DOM stops changing), 'domcontentloaded' (immediately), 'networkidle', or any CSS selector (wait until it is visible, then settle). Prefer a selector or 'stable' on pages that never go quiet."
    },
    "settle_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 25000,
      "description": "Implies a browser. Ceiling (not a delay) on the settle wait, default 5000. Capture happens as soon as the DOM has been quiet for 500ms. Use wait_min_ms for a minimum delay; lower this to cap the worst case."
    },
    "wait_rules": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "if": {
            "type": "string",
            "description": "CSS selector to probe for visibility."
          },
          "then": {
            "type": "string",
            "description": "Replacement wait_for when the guard is visible: a mode or a CSS selector. Empty = capture as-is."
          }
        },
        "required": [
          "if"
        ],
        "additionalProperties": false
      },
      "maxItems": 10,
      "description": "Implies a browser. Conditional waits for pages with several possible layouts (consent gate, interstitial, A/B variant). Each 'if' selector is probed in order for detect_ms; the first visible one wins and its 'then' replaces wait_for. Example: [{if: '#consent', then: '#results'}]."
    },
    "detect_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 25000,
      "description": "Implies a browser. How long to probe wait_rules guards before falling back to wait_for. Default 800."
    },
    "wait_state": {
      "type": "string",
      "enum": [
        "visible",
        "nonempty",
        "hidden",
        "stable"
      ],
      "description": "Condition for a CSS selector in wait_for (requires one): 'visible' (default), 'nonempty' (visible text, ignoring loading placeholders), 'hidden' (all matches hidden or gone — e.g. a spinner), 'stable' (text and match count unchanged for 750ms)."
    },
    "scroll_steps": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10,
      "description": "Implies a browser. Scroll down this many times before the readiness check, to trigger lazy-loaded sections. Bounded discovery, not a way to collect an infinite list."
    },
    "wait_min_ms": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10000,
      "description": "Implies a browser. Minimum delay after navigation before scrolling or checking readiness, for content that is absent from the first capture."
    },
    "max_age": {
      "type": "integer",
      "minimum": 0,
      "maximum": 300,
      "description": "Accept a cached copy of the same request up to this many seconds old (0–300). Cache hits return in milliseconds and still cost 1 credit. Default 0 = always fetch fresh."
    },
    "template": {
      "type": "string",
      "pattern": "^(?:[a-z0-9][a-z0-9-]{1,48}[a-z0-9]\\/)?[a-z0-9][a-z0-9-]{1,48}[a-z0-9](?:@[1-9]\\d{0,8})?$",
      "description": "Parse the page with a published template and return JSON instead of HTML. Takes a template reference like 'handle/name' — call find_templates with this url first to see whether one covers the site. Append '@<version>' to pin a version (the response's template_version is the one that answered). The template forces its own render and wait settings."
    },
    "format": {
      "type": "string",
      "enum": [
        "markdown",
        "html"
      ],
      "description": "How the page comes back (template results are always JSON). \"markdown\" (default): text, headings, links and lists, a fraction of the size. \"html\": the cleaned markup, for attributes, custom elements and choosing a select."
    },
    "select": {
      "type": "string",
      "maxLength": 500,
      "description": "CSS selector: return only the matching elements (e.g. 'article', 'table tr', 'shreddit-post'), in the chosen format. Re-reading a fetch with another select or format reuses the page already fetched - no credit."
    },
    "fresh": {
      "type": "boolean",
      "description": "Fetch again even if this exact fetch was made in the last 10 minutes (by default that copy is reused for free)."
    },
    "max_chars": {
      "type": "integer",
      "minimum": 1000,
      "maximum": 140000,
      "description": "Cap on returned body characters (default 80000, max 140000). Longer bodies are cut with a note; select narrows a page to the part you need instead."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢find_templates(url, search, category, limit, page)

Find published templates that parse a site into structured JSON instead of HTML. Pass the url you are about to fetch to see whether one already covers it — do this before writing your own extraction for a well-known site. Also searches by keyword or category. Each result shows the fields it returns and an example call; pass its reference as unblock_fetch's template argument. Free — no credit is charged.

輸入結構描述

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "A URL you intend to fetch. Returns the templates built for that site, if any."
    },
    "search": {
      "type": "string",
      "description": "Keyword matched against a template's name, reference, host and description (e.g. 'property', 'company')."
    },
    "category": {
      "type": "string",
      "description": "Category slug, e.g. 'search-results', 'real-estate', 'business-directories'. Omit all filters to see the categories."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "description": "Maximum templates to return (default 25)."
    },
    "page": {
      "type": "integer",
      "minimum": 1,
      "description": "Which page of `limit` results to return, from 1, when more templates match than fit."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢get_build_guide(topic)

Read this before writing code that uses UnblockingAPI - an app, script, scheduled job or backend that fetches web pages (a rank tracker, a listings aggregator, a price monitor, …). Returns the REST API reference for calling it with plain HTTP (no SDK), how to keep the key server-side on platforms like Lovable, Replit and Next.js, how to use templates, and complete recipes. Free. Start with topic 'api', then the recipe that fits.

輸入結構描述

{
  "type": "object",
  "properties": {
    "topic": {
      "type": "string",
      "enum": [
        "api",
        "fetch-tuning",
        "templates",
        "rank-tracker",
        "listings-aggregator",
        "price-monitor"
      ],
      "description": "'api': the REST API for apps: request, response, errors, timeouts, keeping the key server-side. 'fetch-tuning': getting complete pages: scrolling, waiting for content, consent walls, locations. 'templates': finding and calling templates for JSON, their output shapes, building your own. 'rank-tracker': recipe: a Google rank tracker for keywords and domains. 'listings-aggregator': recipe: one page that aggregates listings (e.g. properties) from several sites. 'price-monitor': recipe: watch product prices and alert on changes."
    }
  },
  "required": [
    "topic"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#"
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本3 個工具
已驗證未記錄版本3 個工具
已驗證未記錄版本3 個工具
需要驗證未記錄版本—