OneSearch MCP Server
🚀 OneSearch MCP 服务器:网页搜索、爬取、抓取与内容预处理
一个模型上下文协议 (MCP) 服务器实现,集成了多个搜索提供商,用于网页搜索、本地浏览器搜索,并利用 agent-browser 提供抓取功能。
功能特性
网页搜索、抓取、爬取并预处理来自网站的内容。
支持多种搜索引擎和网页抓取工具:SearXNG、Tavily、DuckDuckGo、Bing、Google、Zhipu (智谱)、Exa、Bocha (博查) 等。
本地网页搜索(浏览器搜索),支持多种搜索引擎:Bing、Google、Baidu、Sogou 等。
使用
agent-browser进行浏览器自动化。免费,无需 API 密钥。
已启用工具:
one_search、one_scrape、one_map、one_extract
Related MCP server: Firecrawl MCP Server
从 v1.1.0 及更早版本迁移
v1.1.0 中的重大变更:
移除 Firecrawl:Firecrawl 集成已被移除,转而使用
agent-browser,它提供了类似的功能且无需外部 API 服务。新的浏览器要求:必须安装 Chromium 浏览器(请参阅“先决条件”部分)。
环境变量:不再使用
FIRECRAWL_API_URL和FIRECRAWL_API_KEY。
变更内容:
one_scrape和one_map现在使用agent-browser而非 Firecrawlone_extract现在预处理多 URL 页面内容以供下游分析,而不是执行内置的 LLM 提取所有基于浏览器的操作现在都在本地处理,提供更好的隐私保护且无 API 成本
迁移步骤:
安装 Chromium 浏览器(请参阅“先决条件”)
从环境变量中移除
FIRECRAWL_API_URL和FIRECRAWL_API_KEY更新至最新版本:
npm install -g one-search-mcp@latest
先决条件
浏览器要求:此服务器使用 agent-browser 进行网页抓取和本地搜索,需要基于 Chromium 的浏览器。
好消息:服务器将自动检测并使用您系统中已安装的浏览器:
✅ Google Chrome
✅ Microsoft Edge
✅ Chromium
✅ Google Chrome Canary
如果您没有安装上述任何浏览器,您可以:
# Option 1: Install Google Chrome (Recommended)
# Download from: https://www.google.com/chrome/
# Option 2: Install Microsoft Edge
# Download from: https://www.microsoft.com/edge
# Option 3: Install Chromium via agent-browser
npx agent-browser install
# Option 4: Install Chromium directly
# Download from: https://www.chromium.org/getting-involved/download-chromium/安装
使用 Claude Code CLI(推荐)
# Add to Claude Code with default settings (local search)
claude mcp add one-search-mcp -- npx -y one-search-mcp
# Add with custom search provider (e.g., SearXNG)
claude mcp add one-search-mcp -e SEARCH_PROVIDER=searxng -e SEARCH_API_URL=http://127.0.0.1:8080 -- npx -y one-search-mcp
# Add with Tavily API
claude mcp add one-search-mcp -e SEARCH_PROVIDER=tavily -e SEARCH_API_KEY=your_api_key -- npx -y one-search-mcp手动安装
# Install globally (Optional)
npm install -g one-search-mcp
# Or run directly with npx
npx -y one-search-mcp使用 Docker
Docker 镜像已预装所有依赖项(Chromium 浏览器),无需额外设置。
拉取镜像:
# From GitHub Container Registry
docker pull ghcr.io/yokingma/one-search-mcp:latest
# Or from Docker Hub
docker pull zacma/one-search-mcp:latest配置 Claude Desktop:
{
"mcpServers": {
"one-search-mcp": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/yokingma/one-search-mcp:latest"],
"env": {
"SEARCH_PROVIDER": "local"
}
}
}
}使用自定义搜索提供商:
{
"mcpServers": {
"one-search-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "SEARCH_PROVIDER=tavily",
"-e", "SEARCH_API_KEY=your_api_key",
"ghcr.io/yokingma/one-search-mcp:latest"
]
}
}
}环境变量
搜索引擎:
SEARCH_PROVIDER(可选):要使用的搜索提供商,支持
searxng、duckduckgo、bing、tavily、google、zhipu、exa、bocha、local,默认为local。SEARCH_API_URL(可选):SearxNG API 的 URL,或
google的 Google 自定义搜索引擎 ID。SEARCH_API_KEY(可选):搜索提供商的 API 密钥,
tavily、bing、google、zhipu、exa、bocha需要此项。
// supported search providers
export type SearchProvider = 'searxng' | 'duckduckgo' | 'bing' | 'tavily' | 'google' | 'zhipu' | 'exa' | 'bocha' | 'local';搜索提供商配置
提供商 | 是否需要 API 密钥 | 是否需要 API URL | 备注 |
| 否 | 否 | 免费,使用浏览器自动化 |
| 否 | 否 | 免费,无需 API 密钥 |
| 可选 | 是 | 自托管元搜索引擎 |
| 是 | 否 | |
| 是 | 否 | |
| 是 | 是(搜索引擎 ID) | |
| 是 | 否 | |
| 是 | 否 | |
| 是 | 否 |
其他 MCP 客户端的配置
Claude Desktop
添加到您的 Claude Desktop 配置文件中:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"one-search-mcp": {
"command": "npx",
"args": ["-y", "one-search-mcp"],
"env": {
"SEARCH_PROVIDER": "local"
}
}
}
}Cursor
添加到您的 mcp.json 文件中:
{
"mcpServers": {
"one-search-mcp": {
"command": "npx",
"args": ["-y", "one-search-mcp"],
"env": {
"SEARCH_PROVIDER": "local"
}
}
}
}Windsurf
添加到您的 ./codeium/windsurf/model_config.json 文件中:
{
"mcpServers": {
"one-search-mcp": {
"command": "npx",
"args": ["-y", "one-search-mcp"],
"env": {
"SEARCH_PROVIDER": "local"
}
}
}
}自托管 SearXNG(可选)
如果您想使用 SearXNG 作为搜索提供商,可以通过 Docker 在本地部署:
先决条件:
已安装并运行 Docker(版本 20.10.0 或更高)
至少 4GB 可用内存
快速开始:
# Clone SearXNG Docker repository
git clone https://github.com/searxng/searxng-docker.git
cd searxng-docker
# Start SearXNG
docker compose up -d部署后,SearXNG 默认将在 http://127.0.0.1:8080 可用。
配置 OneSearch 使用 SearXNG:
# Set environment variables
export SEARCH_PROVIDER=searxng
export SEARCH_API_URL=http://127.0.0.1:8080有关更多详细信息,请参阅 官方 SearXNG Docker 文档。
故障排除
找不到浏览器错误
如果您看到类似“Browser not found”的错误,说明服务器无法检测到任何已安装的基于 Chromium 的浏览器。请安装以下其中之一:
Google Chrome: https://www.google.com/chrome/
Microsoft Edge: https://www.microsoft.com/edge
Chromium: https://www.chromium.org/getting-involved/download-chromium/
或者通过 agent-browser 安装:
npx agent-browser install许可证
MIT 许可证 - 详情请参阅 LICENSE 文件。
Available Tools
4 toolsone_extractA
Fetch and preprocess page content from one or more URLs. Returns cleaned text blocks that can be passed to downstream tools or models.
Inputs: urls (required).
one_mapA
Discover URLs from a starting point by loading a page in the browser and extracting links from its HTML.
Inputs: url (required), limit, search, includeSubdomains.
one_scrapeA
Scrape a single webpage and return markdown, HTML, links, or a screenshot. Supports navigation timeout, TLS verification control, full-page screenshots, bounded pre-scrape actions, and advanced executeJavascript only when allowExecuteJavascript is true.
Inputs: url (required), actions, formats, timeout, +3 more.
one_searchB
Search and retrieve content from web pages. Returns SERP results by default (url, title, description).
Inputs: query (required), limit, language, timeRange, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a distinct core function: search returns SERP results, extract preprocesses multiple URLs, scrape handles single-page advanced operations, and map discovers links. There is minor overlap between extract and scrape for fetching page content, but their descriptions make the intended use cases clear.
All tool names follow the consistent pattern 'one_' prefix followed by a lowercase action verb (search, extract, scrape, map), with underscores between words. No mixed conventions or camelCase.
Four tools is well within the ideal range for a focused search/scraping server. Each tool covers a distinct aspect of web research, making the set feel appropriately scoped without being bloated.
The tool set covers the primary workflows: searching, extracting content, single-page scraping with advanced options, and link discovery. Minor gaps exist, such as no dedicated batch scraping tool, but the combined functionality handles most common use cases.
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Free web search for AI agents. No API key required. Hosted MCP in active development.
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
Related MCP Servers
- FlicenseCqualityCmaintenanceBuilt as a Model Context Protocol (MCP) server that provides advanced web search, content extraction, web crawling, and scraping capabilities using the Firecrawl API.41-
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to perform advanced web scraping, crawling, searching, and data extraction through the Firecrawl API.9MIT
- AlicenseAqualityBmaintenanceA Model Context Protocol server that provides real-time web search capabilities to AI assistants through pluggable search providers, currently integrated with the Brave Search API.534 npm16MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables web scraping, crawling, and content extraction capabilities through integration with Firecrawl.82MIT