obscura-mcp
Officialobscura-mcp
一个用于 Obscura 的 MCP 服务器适配器,Obscura 是一个用于网页抓取和 AI 智能体自动化的轻量级 Rust 无头浏览器。
通过简洁的 MCP 接口公开 Obscura 原生的 CDP 功能 —— 无需 Chrome 依赖,无需重量级的浏览器自动化。
安装
npm install -g obscura-mcp安装是即时的 —— 浏览器二进制文件(约 80 MB)会在首次使用时延迟下载。
安装后,您可以:
运行
obscura-mcp install以可见的进度下载二进制文件,或者直接运行
obscura-mcp—— 它会自动下载二进制文件并启动服务器
二进制文件缓存于 ~/.obscura/bin/,在 npm 升级后依然保留。
要使用自定义二进制路径:
export OBSCURA_PATH=/path/to/obscuraRelated MCP server: Algonius Browser
快速开始
# Install
npm install -g obscura-mcp
# Verify
obscura-mcp --version
# Download browser binary
obscura-mcp install
# Start MCP server
obscura-mcp --transport stdio工具
browse_url
使用 Obscura 的 CDP 引擎获取 URL。返回页面内容。
参数:
url(string, 必填): 要访问的 HTTP 或 HTTPS URL。dump(string, 可选):html、text或links。默认为html。cookies(array, 可选): 导航前注入的 Cookie。接受与browse_cookies返回格式相同的格式 —— 传入从真实浏览器导出的 Cookie 以访问已认证的页面。stealth(boolean, 可选): 为兼容性而接受。隐身行为由 Obscura 服务器控制。
browse_evaluate
导航到 URL 并在页面上下文中执行 JavaScript。返回评估结果。
参数:
url(string, 必填): 要访问的 URL。expression(string, 必填): 要评估的 JavaScript 表达式。示例:document.title、navigator.userAgent、document.querySelector('h1').textContent。stealth(boolean, 可选): 为兼容性而接受。
browse_cookies
导航到 URL 并检索页面设置的所有 Cookie。返回每个 Cookie 的名称、值、域、路径和过期时间。
参数:
url(string, 必填): 要访问的 URL。stealth(boolean, 可选): 为兼容性而接受。
配置
Claude Desktop / Cline / Continue / 任何 MCP 客户端
{
"mcpServers": {
"obscura-mcp": {
"command": "obscura-mcp",
"args": ["--transport", "stdio"]
}
}
}VS Code (Cline 扩展)
{
"servers": {
"obscura-mcp": {
"command": "obscura-mcp",
"args": ["--transport", "stdio"]
}
}
}全局 npm 安装后,obscura-mcp 就在您的 PATH 中 —— 无需绝对路径。
环境变量
变量 | 默认值 | 描述 |
| — | 自定义 Obscura 二进制文件的路径 |
|
| HTTP 传输主机 |
|
| HTTP 传输端口 |
|
| 传输模式: |
|
| 等待 Obscura CDP 启动的毫秒数 |
|
| 页面导航后等待的毫秒数 |
|
| 等待 CDP 响应的毫秒数 |
为什么选择 Obscura?
无 Chrome —— 纯 Rust,没有 200 MB 的浏览器包
CDP 原生 —— 直接公开 Chrome DevTools Protocol
反检测 —— 内置针对反爬虫网站的隐身功能
极小占用 —— 约 15 MB 的二进制文件,毫秒级启动
许可证
MIT
Available Tools
3 toolsbrowse_cookiesA
Navigate to a URL and retrieve all cookies set by the page. Returns cookie name, value, domain, path, and expiry for each cookie.
Inputs: url (required), stealth.
browse_evaluateA
Navigate to a URL and execute JavaScript in the page context. Returns the evaluated result as a string. Supports extracting data, clicking elements, filling forms, and reading page state.
Inputs: url (required), expression (required), stealth.
browse_urlA
Fetch a URL using Obscura's lightweight CDP engine. To access authenticated pages, pass cookies previously exported from browse_cookies.
Inputs: url (required), dump, cookies, stealth.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool serves a distinct purpose: retrieving cookies, executing JavaScript, and fetching a URL. There is no ambiguity between the three operations.
All tool names follow the consistent pattern 'browse_<operation>', using snake_case and a common prefix, ensuring predictability.
With only 3 tools, the surface is thin for a browser automation server. It covers basic actions but feels minimal, so it is borderline appropriate.
The set covers URL fetching, cookie extraction, and JS execution, but lacks direct interaction tools (e.g., clicking, form filling, waiting). Workarounds are possible via JS, but gaps exist.
Related MCP Connectors
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Web scraping MCP server — scrape, extract structured data, screenshot any site with anti-bot bypass.
Official Browserless MCP server: browser automation, scraping, screenshots and PDFs for AI agents.
An MCP server that provides agents access to the KeldynAI platform
Related MCP Servers
AlicenseAqualityCmaintenanceA local MCP server that lets AI agents bypass bot detection, geo-restrictions, and JavaScript rendering challenges when scraping the web, backed by ScraperAPI's services285MIT
Algonius Browserofficial
AlicenseNot gradedqualityDmaintenanceAn open-source MCP server that provides browser automation capabilities to external AI systems, enabling navigation, DOM interaction, and web content extraction.20Apache 2.0- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that enables AI agents to automate browser interactions using Playwright and Cloudflare Workers, supporting tasks like navigation, clicking, typing, and screenshots.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for web scraping and browser automation, enabling AI agents to extract clean, token-efficient content from web pages.1MIT