原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。使用 Google 登录即可撰写评价。原型 · 每 30 分钟更新
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚 登录

Web API MCP

✓ oxylabs.io

作者:oxylabs版本 0.3.1i★ 61i电脑或云端官方网站 ↗
注册名称io.oxylabs/web-api-mcp

安装方法

能做什么

通过 Oxylabs Web API 搜索实时网页、查询公司信息并读取任意页面内容的 AI 扩展工具。

根据作者的说明自动翻译 · 团队尚未核对

  • 连接方式 电脑或云端
  • 账号或密钥 云端:需要 Authorization · 本地:需要 OXYLABS_WEB_API_KEY
  • 分类 搜索与 AI 记忆
作者的原始说明
Search the live web, look up companies and read any page through the Oxylabs Web API.

可搭配使用

教 AI 做这类工作的 Skill,可与本项一起使用

timesfm

TimesFM (Time Series Foundation Model) is a pretrained time-series foundation model developed by Google Research for time-series forecasting.

作者:google-research★ 35,6421 个 skill

Skill · 操作手册

Shadowbroker

Open-source intelligence for the global theater. Track everything from the corporate/private jets of the wealthy, and spy satellites, to seismic events in one unified interface. Hook an AI agent up to have it parse through data and find previously unseen correlations. The knowledge is available to…

作者:BigBodyCobain★ 11,6081 个 skill

Skill · 操作手册

google-maps-scraper

scrape data from Google Maps. Extracts data such as the name, address, phone number, website URL, rating, reviews number, latitude and longitude, reviews,email and more for each place

作者:gosom★ 8,2561 个 skill

Skill · 操作手册

为什么排在这里

列表按使用分(满分 100)排序,由以下部分组成

热度22/80GitHub 星标或每周下载量:较大的计 60,较小的计 20
新鲜度12/1230 天内有发布或代码更新得满分
仍在响应8/8上次检查时云端端点有响应
使用分42/100

质量: 基础检查通过 5/5 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)

安装

选择你使用的 AI 应用,然后复制设置。

用一句话让 AI 帮你安装

请帮我安装 Web API MCP。按照 https://mcp.popnx.com/i/oxylabs-web-api-mcp.md 操作,先把命令给我看,等我同意后再运行。

粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文

通过 5/5 项检查 · 你的提问会经过开发者的服务器(mcp.oxylabs.io) · ✓ 命令已检查 2026年11月20日

第一步:你用哪个 AI?

选择你用的应用,步骤会显示在下方。

可连接 Claude · 约 5 分钟

需要 Web API MCP 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加

  1. 注册并创建 Web API MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Web API MCP 网站 ↗

  2. 打开 Claude 的 Connectors 页面

    CustomizeConnectors

    CustomizeConnectors1Add2https://…3Add4
  3. 点击“Add” → “Custom” → “Web”,填写这 2 项

    把这里的内容复制到 Claude 中同名的输入框,然后点击 Continue

    Name · 名称Web API MCP
    Remote MCP server URL · 地址https://mcp.oxylabs.io/web-api-mcp

    在 Request headers 下添加这个名称和值

    Header 名称Authorization
    值Bearer <在这里粘贴你的密钥>

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

    在 Claude 检测到的登录设置页点击 Continue · Authentication 按作者说明选择(Sign in now、Sign in when needed 或 No sign in),然后点击 Add

  4. 在聊天中开启

    +ConnectorsWeb API MCP

  5. 试一试

    用 Web API MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude 说正在使用 Web API MCP,或回答中出现 Web API MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

ChatGPT 暂时无法连接 Web API MCP

Web API MCP 连接时需要你自己的密钥,但 OpenAI 帮助页面只说明了 OAuth 登录,没有我们能核实的填密钥方式

你可以改用这些方式

A · 使用能连接 Web API MCP 的应用

  • 需要 Web API MCP 的密钥(在开发者网站创建) · 在 claude.ai 或桌面应用设置一次,即可在聊天中使用 · 免费账户可添加 1 个 · Team/Enterprise 方案由所有者(Owner)添加
  • 需要 Web API MCP 的密钥(在开发者网站创建)
  • 需要 Web API MCP 的密钥(在开发者网站创建)
  • 需要 Web API MCP 的密钥(在开发者网站创建)

B · 搜索与 AI 记忆 类中能连接 ChatGPT 的其他服务器

从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的

可连接 Claude Code · 约 5 分钟

需要 Web API MCP 的密钥(在开发者网站创建)

  1. 注册并创建 Web API MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Web API MCP 网站 ↗

  2. 打开终端

    Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell

  3. 粘贴这条命令并按 Enter

    claude mcp add --transport http --scope user web-api https://mcp.oxylabs.io/web-api-mcp --header 'Authorization: Bearer {api_key}'

    按 Enter 前,把“your-value”改成你的密钥

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Claude Code 中输入 /mcp

    应能看到 Web API MCP 在列表中并显示已连接

  5. 试一试

    用 Web API MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Claude Code 说正在使用 Web API MCP,或回答中出现 Web API MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同

可连接 Cursor · 约 5 分钟

需要 Web API MCP 的密钥(在开发者网站创建)

  1. 注册并创建 Web API MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Web API MCP 网站 ↗

  2. 点击这个按钮打开 Cursor

    在 Cursor 中打开

    Cursor 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Web API MCP 的设置中,Authorization 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 Cursor 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Web API MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 Cursor 说正在使用 Web API MCP,或回答中出现 Web API MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同

可连接 VS Code · 约 5 分钟

需要 Web API MCP 的密钥(在开发者网站创建)

  1. 注册并创建 Web API MCP 的密钥

    打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。

    打开 Web API MCP 网站 ↗

  2. 点击这个按钮打开 VS Code

    在 VS Code 中打开

    VS Code 会请你确认安装,点击 Install

  3. 填写你的密钥

    在 Web API MCP 的设置中,Authorization 还是空的,填入你的密钥并保存

    只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人

  4. 在 VS Code 中以 Agent 模式打开 AI 聊天

  5. 试一试

    用 Web API MCP 告诉我你能帮我做什么,然后做一件给我看

    ✓ 如果 VS Code 说正在使用 Web API MCP,或回答中出现 Web API MCP 的工具名称,就表示连接成功

菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同

其他支持 MCP 的应用(如 Windsurf、Zed、Gemini CLI)添加方式各不相同,请在应用列表中查看

查看所有支持 MCP 的应用 →

通过网页连接的应用使用的地址

地址https://mcp.oxylabs.io/web-api-mcp

JSON 设置在下方“开发者专用”中

卡住了?问问正在用 Web API MCP 的人💬 讨论 →
开发者专用:终端命令和 JSON 设置

通过网页连接

Claude Code

claude mcp add --transport http --scope user web-api https://mcp.oxylabs.io/web-api-mcp --header 'Authorization: Bearer {api_key}'

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "web-api": {
      "url": "https://mcp.oxylabs.io/web-api-mcp",
      "headers": {
        "Authorization": "Bearer {api_key}"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "web-api": {
      "type": "http",
      "url": "https://mcp.oxylabs.io/web-api-mcp",
      "headers": {
        "Authorization": "Bearer {api_key}"
      }
    }
  }
}

安装在电脑上

Claude Code

claude mcp add --scope user web-api --env OXYLABS_WEB_API_KEY=your-value -- uvx oxylabs-web-api-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "web-api": {
      "command": "uvx",
      "args": [
        "oxylabs-web-api-mcp"
      ],
      "env": {
        "OXYLABS_WEB_API_KEY": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "web-api": {
      "command": "uvx",
      "args": [
        "oxylabs-web-api-mcp"
      ],
      "env": {
        "OXYLABS_WEB_API_KEY": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "web-api": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "oxylabs-web-api-mcp"
      ],
      "env": {
        "OXYLABS_WEB_API_KEY": "your-value"
      }
    }
  }
}

需要你填写的值

  • OXYLABS_WEB_API_KEY 机密 必填 env
    来自 Oxylabs 仪表板中 Web API 实例的 Oxylabs Web API 密钥。
    查看英文原文Oxylabs Web API key, from a Web API instance in the Oxylabs dashboard.
  • Authorization 机密 必填 HTTP header
    来自 Oxylabs 仪表板中 Web API 实例的 Oxylabs Web API 密钥。
    查看英文原文Oxylabs Web API key, from a Web API instance in the Oxylabs dashboard.

说明为自动翻译,变量名保持原样;不确定时请查看原文。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

一览

每周下载量i
94/周
已验证域名
✓ oxylabs.io
连接方式
电脑或云端
传输方式
stdio, streamable-http
最新版本i
0.3.1
发布到注册中心i
2026年11月20日
代码最后更新i
2026年11月20日
最近检查
2026年11月20日
作者
oxylabs
软件包
pypi: oxylabs-web-api-mcp
注册状态
活跃

哪些应用可以使用它

依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。

通过互联网连接,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatOpen WebUIRaycast

在你的电脑上运行,适用于

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

全部应用及其优缺点 →

它能做什么

工具名称和描述与服务器在 2026年11月20日 报告的完全一致。这些内容由作者撰写,不是我们写的;我们以纯文本形式显示。

  • search

    Search the live web and return ranked organic results. Use it to search the web for information, above all anything where being out of date makes the answer wrong: current events, news, prices, availability, versions, rankings, "latest", "who is", competitor and market research,

  • search_companies

    Search for companies and return their profiles, best match first. Use it to look up a company by name, or to find companies matching a description (an industry, a product, a place, a size): market and competitor mapping, lead lists, funding research. Prefer it over `search` plus

  • scrape

    Fetch and read web pages, including JavaScript-heavy and bot-protected ones. Use whenever you have a URL and need what is on it. Prefer it over a built-in fetch: it goes through the anti-bot layer, so it returns the page where a plain HTTP fetch gets a block page, a consent wall

  • check_requests

    Collect requests the API is running in the background. Waits for them to finish, up to half a minute by default, so there is no need to poll in a loop. Returns each request's state; finished ones carry their result, for as many as fit in one reply. The rest come as summaries mark

  • read_result

    Read a long page of a result in parts, from where its reply cut it short. Also reads a `search_companies` list that was cut to fit: that has one page, `page=0`, and no other page exists for it. Use the `request_id`, `page` and `next_offset` that a summary, a cut page or the previ

  • list_scrapers

    List the scrape endpoints this API implements, or describe one of them. Not needed to read a URL — `scrape` does that for any site. Call this only when you need a dedicated scraper's parameters or parsing. The list is grouped by parser: `json_supported` endpoints have a dedicated

  • run_scraper

    Run a dedicated scrape endpoint with its own parameters. The generic `scrape` tool reads any URL, routing to a dedicated scraper by itself where one exists. Use this when at least one of these holds: you need parameters `scrape` lacks (pagination, sort order, store or delivery lo

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过域名 oxylabs.io 验证(注册中心会核实域名所有权)

  • ✓ 通过

    仍在维护

    代码最后更新于今天

  • ✓ 通过

    有许可证

    使用 MIT

  • ✓ 通过

    端点有响应

    在 842 毫秒内响应(HTTP 200)

  • – 不适用

    使用 OAuth 登录

    无需登录

  • ✓ 通过

    工具描述中没有隐藏指令

    已读取 7 个工具描述,未发现针对 AI 的隐藏指令

已公开的漏洞(OSV.dev)

OSV.dev 中没有 oxylabs-web-api-mcp@0.3.1 的记录

只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月20日

我们检查什么 → · JSON

作者:申请重新检查或报告信息错误
给作者:在 README 中加徽章

如果你是作者,可把这段代码贴到 README。徽章会链接回本页。

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/oxylabs-web-api-mcp.svg)](https://mcp.popnx.com/en/servers/oxylabs-web-api-mcp)

讨论

提问、分享技巧或报告无法使用。按“有帮助”数量排序。

还没有帖子,欢迎第一个提问或分享。

此处内容由用户撰写,不代表 PopNx 团队。

登录后发帖

用户评价

还没有评价

登录后写评价

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 6508 个服务器的 97%
  • 发布到注册中心的时间比此分类中其他 6508 个服务器的 99% 更新
  • 基础检查结果等于或优于此分类中其他 6508 个服务器的 99%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Web API MCP 安全吗?

它在 5 项适用的基础检查中通过了 5 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:Authorization, OXYLABS_WEB_API_KEY

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于今天,最新版本(0.3.1)于今天进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,因此也能用于接受远程 MCP 的应用,例如网页版 ChatGPT(Business 及以上为完整 MCP;Pro 为只读)。

有什么可以替代它?

同一分类中有:OpenSEO, Exa, Microsoft Learn MCP, Docs, COTAL actions (cotal.ai)

功能相近的其他选择

同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

OpenSEO

Keyword research, site audits, rank tracking and AI visibility for your AI agent.

作者:every-app广泛使用★ 2.8万6天前更新

在云端运行✓ everyapp.com

Exa

Official Exa MCP for web search, content fetching, and multi-step research.

作者:exa-labs广泛使用★ 5245今天更新

在云端运行✓ 服务方 · exa.aiPopNx 团队已实际试用

Microsoft Learn MCP

Official Microsoft Learn MCP Server – real-time, trusted docs & code samples for AI and LLMs.

作者:MicrosoftDocs广泛使用★ 200012个月前更新

在云端运行✓ 服务方 · microsoft.comPopNx 团队已实际试用

Docs

Search and read Empryo's documentation. Read-only, no auth, no local access.

作者:proxysoul正在增长★ 16282个月前更新

在云端运行✓ empryo.com
与相似项目对比
本项
Web API MCP
OpenSEOExaMicrosoft Learn MCPDocsCOTAL actions (cotal.ai)
运行位置云端或安装在电脑上都可以在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装在云端运行,无需安装
需要密钥是否否否否否
可在 Claude 中按 + 添加否是是是否否
基础检查5/55/52/44/44/44/4
许可证MITMITMITCC-BY-4.0NOASSERTIONApache-2.0
价格登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用登记中未列出费用

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Oxylabs Web API — MCP Server

mcp-name: io.oxylabs/web-api-mcp

This repository is a developer-focused, technical reference covering the official Model Context Protocol server for the Oxylabs Web API. It gives any MCP-capable agent live web access – search, scrape pages as Markdown or JSON, and call dedicated scrapers – through one MCP connection.

Remote MCPSelf-hosted MCP
Runs onOxylabs infrastructureYour machine or infrastructure
SetupAdd the server URL and your API key to your clientInstall the server (Python 3.10+ and uv), then configure your client
Updates and maintenanceManaged by OxylabsManaged by you
Best forThe quickest way to give a compatible agent access to Web APIFull control over the environment, or clients that can't connect to remote servers with a custom header

The tools and their behavior are the same on both options, and the sections on self-hosting cover everything you need to run the server yourself.

ToolWhat it does
searchSearch the live web, returns ranked organic results (title, outline snippets, URL)
search_companiesSearch companies by name or free-text description, returns company profiles best match first (industry, size, headquarters, funding, revenue, web traffic)
scrapeRead a URL, or a list of URLs, as Markdown by default, including JS-heavy and bot-protected pages. Ask for a screenshot, or pass json_prompt / json_schema to pull named fields off the page as JSON
list_scrapersList the scrape endpoints the API implements, grouped by parser support, or describe one's parameters
run_scraperRun a dedicated scrape endpoint with its own parameters, as content or as structured JSON; a list of urls or querys runs them all
check_requestsCollect requests the API is running in the background, waiting for them to finish
read_resultRead a page, or a search_companies list, too long for one reply in parts, by its request id

All seven are annotated readOnlyHint — nothing here writes anything, so clients can run them without prompting.

Requirements

  • An Oxylabs Web API key — in the Oxylabs dashboard, create a Web API instance, open it, and copy the API key shown at the top of the instance page.
  • For Remote MCP – an MCP client that supports remote (HTTP) MCP servers with custom headers, such as Claude Code, Codex, or Cursor.
  • For self-hosting – Python 3.10+ (built on FastMCP, installed with the package) and uv.

Connect to the Remote MCP server

The server is hosted and maintained by Oxylabs. There is nothing to install or update.

https://mcp.oxylabs.io/web-api-mcp

The server authenticates each request with your Web API key, sent as an Authorization: Bearer header. Set the key as an environment variable in the terminal where you run your client:

export OXYLABS_WEB_API_KEY="your_api_key_here"

Claude Code:

claude mcp add --transport http --scope user oxylabs-web-api \

https://mcp.oxylabs.io/web-api-mcp \ --header "Authorization: Bearer ${OXYLABS_WEB_API_KEY}"

Codex:

codex mcp add oxylabs-web-api \

--url https://mcp.oxylabs.io/web-api-mcp \ --bearer-token-env-var OXYLABS_WEB_API_KEY

Cursor — one click, then make the key visible to Cursor (below):

Cursor reads ${env:OXYLABS_WEB_API_KEY} from its own environment. On macOS, Cursor opened from the Dock or Spotlight does not see variables exported in your shell profile, so either start it from a terminal where the key is exported, or replace ${env:OXYLABS_WEB_API_KEY} with the key itself in Cursor Settings → Tools & MCP (or in ~/.cursor/mcp.json). If Cursor can't see the variable, it sends an empty key: the server still connects and lists its tools, but every call fails with an error saying the Web API key is missing.

Cursor (manual, ~/.cursor/mcp.json) and other clients supporting custom headers:

{

"mcpServers": { "oxylabs-web-api": { "url": "https://mcp.oxylabs.io/web-api-mcp", "headers": { "Authorization": "Bearer ${env:OXYLABS_WEB_API_KEY}" } } } }

Clients that only support OAuth sign-in for remote servers, such as custom connectors in the claude.ai web interface, can't send custom headers and can't connect to the Remote MCP server — use the self-hosted server with those clients instead.

Self-hosting

Run the server yourself when you want full control over where it runs and how it is configured. You install, host, and update it. The Remote MCP server and a self-hosted server use the same server name (oxylabs-web-api) in the examples, so if you switch from one to the other, remove the existing server from your client first.

Install
uv tool install git+https://github.com/oxylabs/web-api-mcp

That puts oxylabs-web-api-mcp on your PATH in its own environment. pipx install git+https://github.com/oxylabs/web-api-mcp does the same. Installing into a system Python usually fails — most are marked externally managed and refuse. To work on the server itself:

git clone https://github.com/oxylabs/web-api-mcp.git

cd web-api-mcp pip install -e .

server.json is the MCP registry manifest: it lists the PyPI package oxylabs-web-api-mcp and the Remote MCP server. A version tag publishes the package to PyPI and then server.json to the registry as io.oxylabs/web-api-mcp. The publish workflow refuses a release whose server.json versions differ from pyproject.toml, so bump them together. Keep the mcp-name: line at the top of this README: the registry looks for it in the package description on PyPI.

Run it locally (stdio)

Point your client at the installed oxylabs-web-api-mcp command. Keep your API key in an environment variable or a .env file rather than writing it into a client config.

Claude Code:

claude mcp add oxylabs-web-api \

--env OXYLABS_WEB_API_KEY='${OXYLABS_WEB_API_KEY}' \ -- oxylabs-web-api-mcp

Claude Desktop — create a .env file containing OXYLABS_WEB_API_KEY=your_api_key_here, keep it outside any shared or version-controlled folder, and point the server at it:

{

"mcpServers": { "oxylabs-web-api": { "command": "oxylabs-web-api-mcp", "env": { "OXYLABS_ENV_FILE": "/absolute/path/to/.env" } } } }

Cursor:

{

"mcpServers": { "oxylabs-web-api": { "command": "oxylabs-web-api-mcp", "env": { "OXYLABS_WEB_API_KEY": "${env:OXYLABS_WEB_API_KEY}" } } } }

For other clients that read a JSON config, use the same command entry and your client's own way of passing environment variables.

Run it as a shared server (HTTP)

The HTTP transport is for running one shared server for a team or for agents that can't spawn local processes.

export OXYLABS_WEB_API_KEY=your_api_key_here

export MCP_ALLOWED_HOSTS='mcp.internal.example.com,localhost:*' oxylabs-web-api-mcp --transport http --host 0.0.0.0 --port 8080

The endpoint is then http:// :8080/mcp.

Docker
export OXYLABS_WEB_API_KEY=your_api_key_here

docker build -t oxylabs-web-api-mcp . docker run --rm -p 8080:8080 \ -e OXYLABS_WEB_API_KEY \ -e MCP_ALLOWED_HOSTS='localhost:*,mcp.internal.example.com' \ oxylabs-web-api-mcp

Passing -e OXYLABS_WEB_API_KEY with no value makes Docker take the variable from your shell.

`MCP_ALLOWED_HOSTS` is not optional. The HTTP transport turns on DNS-rebinding

protection, so a server that doesn't declare its own hostname rejects every request

with a Host header it doesn't recognise (421 Misdirected Request). List the

hostname clients actually connect to. host:* matches any port on that host.

Configuration

These variables apply to a server you run yourself. The Remote MCP server's settings are managed by Oxylabs.

VariableDefaultPurpose
OXYLABS_WEB_API_KEY*(required on stdio)*Web API key, sent as Authorization: Bearer . Over HTTP a per-request Authorization: Bearer header takes precedence
OXYLABS_BASE_URLhttps://webapi.oxylabs.ioOverride the API base URL, e.g. to go through a proxy
OXYLABS_RETRIES2Retries on transient errors
OXYLABS_RATE_LIMIT*(off)*Cap what each API key spends through this server, e.g. 100/1h, 50/30m. Each item of a batch counts as one scrape
OXYLABS_MAX_INLINE_TOKENS10000Token budget for one reply; content beyond it is offloaded (stdio) or truncated (HTTP); company lists are shrunk and trimmed
OXYLABS_SPILL_DIRa per-user directory in the system temp dirWhere offloaded pages, company lists and screenshots are written (stdio only). Must be a directory you own
OXYLABS_SPILL1Set to 0 to keep everything inline even on stdio
MCP_TRANSPORTstdiostdio or http
HOST / PORT127.0.0.1 / 8080HTTP transport bind address
MCP_ALLOWED_HOSTSlocalhost:*,127.0.0.1:*Comma-separated Host allowlist (HTTP only)
MCP_ALLOWED_ORIGINS*(empty)*Comma-separated Origin allowlist (browser clients)

Copy .env.example to .env for local use. On stdio the server reads that .env from its working directory: any OXYLABS_* name not already set in the environment is filled from there, so a project that keeps its key in .env needs no launcher wrapper. Real environment variables always win, and only OXYLABS_* names are read. Point it elsewhere with OXYLABS_ENV_FILE=/path/to/.env.

The key is read at request time and is never written to disk or logged.

The skill ships with the server

Connecting the server is the whole install. The agent skill is bundled in the package and served as an MCP resource and a prompt, so a client that never adds the web-api-skills repo still gets the judgment for using these tools well — search to find and scrape to read, when JavaScript rendering earns its cost, what to do with an empty page, how to cite.

oxylabs://skill/web-apiThe skill itself, as Markdown
prompt web_researchTakes a question, hands the agent the task plus the skill

scripts/sync-skill.sh refreshes the bundled copy from the skills repo — the canonical copy lives there, and the two must not drift. Edit the skill in web-api-skills, never here: a daily workflow copies web-api-skills main over the bundled copy and opens a PR when that changes anything.

Fitting the client's context

Oversized content is measured in tokens, not characters: 40 000 characters of English is about 10 000 tokens, but 40 000 characters of Chinese is about 40 000, and Claude Code, Claude Desktop and Cursor all reject a tool result over 25 000. The estimate is script-aware for that reason. The budget is OXYLABS_MAX_INLINE_TOKENS (default 10 000), and a client that knows its own limit can override it per request with an X-MCP-Max-Tokens header — 0 opts out entirely. The budget covers the whole reply: every page of a result, every format it came in and parsed JSON all count, so a three-page search result fits as surely as a single page.

Sync first, queued only on a timeout

Every scrape goes to the synchronous endpoint first. If it times out — the API's own timeout, a gateway's 504, or no answer within 200 s — the same request is sent to the corresponding asynchronous endp

只显示了开头部分;其余内容请在仓库中阅读