io.github.yokingma/one-search-mcp MCP Server
io.github.yokingma/one-search-mcp
Web search, URL discovery, scraping & content extraction with multiple search providers and local browser automation.
What is the io.github.yokingma/one-search-mcp MCP server?
The OneSearch MCP server integrates web search, URL discovery, scraping, and content extraction capabilities through multiple search providers (SearXNG, Tavily, DuckDuckGo, Bing, Google, etc.) and local browser automation via agent-browser. It provides four core tools—one_search, one_scrape, one_map, and one_extract—enabling AI agents to find, retrieve, and preprocess web content without external API dependencies for local search.
OneSearch gives Claude and other AI agents the ability to search the web, discover links from pages, scrape content, and extract text from multiple URLs. It supports both free local browser-based search (no API keys required) and integration with commercial search APIs. The server handles browser automation locally using Chromium, offering privacy and cost savings compared to external scraping services.
How to install io.github.yokingma/one-search-mcp
Copy-paste configuration for popular MCP clients.
SEARCH_PROVIDERSearch provider to use (searxng, duckduckgo, bing, tavily, google, zhipu, exa, bocha, ydc, local)
SEARCH_API_URLAPI URL for SearXNG (required if using searxng provider), or Google Custom Search Engine ID for google
SEARCH_API_KEYsecretAPI key for search provider (required for tavily, bing, google, zhipu, exa, bocha)
YDC_API_KEYsecretYou.com API key for ydc provider
ALLOW_PRIVATE_NETWORKAllow browser-backed tools to access private, loopback, and link-local network targets when set to true
Tools & capabilities
Tools this server exposes to the agent.
one_search— Returns search results from the configured search provider (local browser, SearXNG, Tavily, DuckDuckGo, Bing, Google, Zhipu, Exa, Bocha, You.com, etc.).one_map— Discovers links from a starting URL by loading the page in a browser and extracting links from its HTML. Supports url, search, includeSubdomains, and limit parameters.one_scrape— Scrapes a single page and returns content in selected formats (markdown, html, rawHtml, links, screenshot, screenshot@fullPage). Supports pre-scrape actions like wait, click, write, press, scroll, and executeJavascript.one_extract— Accepts multiple URLs and returns preprocessed text blocks for downstream tools or models.
Use cases
- Search the web using local browser automation or commercial search APIs without API keys (for local mode)
- Discover all links on a webpage to map site structure or find related content
- Scrape and extract specific content from web pages in multiple formats including markdown, HTML, and screenshots
- Preprocess and extract text from multiple URLs for analysis by downstream AI models
- Automate browser interactions like clicking, typing, and scrolling before capturing page content
io.github.yokingma/one-search-mcp MCP server FAQ
OneSearch is an MCP server that provides web search, URL discovery, web scraping, and content extraction. It supports multiple search providers and uses local browser automation (agent-browser) for privacy and cost-effectiveness.
The local search provider is completely free and requires no API keys—it uses your installed Chromium browser. Commercial search providers (Tavily, Bing, Google, etc.) require API keys but are optional.
For Claude: Use `claude mcp add one-search-mcp -- npx -y one-search-mcp`. For Cursor: Add to mcp.json with command `npx` and args `["-y", "one-search-mcp"]`. Both require a Chromium-based browser (Chrome, Edge, or Chromium) installed on your system.
OneSearch automatically detects and uses Google Chrome, Microsoft Edge, Chromium, or Google Chrome Canary if installed. You can also install Chromium via `npx agent-browser install`.
Supported providers include local (free, no API key), DuckDuckGo (free), SearXNG (self-hosted), Tavily, Bing, Google, Zhipu, Exa, Bocha, and You.com. Default is local browser search.
By default, browser tools cannot access private or loopback networks for security. Set `ALLOW_PRIVATE_NETWORK=true` to enable access, but only in trusted deployments.
README (reference)
Source of truth, from the repository.
🚀 OneSearch MCP Server: Web Search, URL Discovery, Scraper & Content Prep
A Model Context Protocol (MCP) server implementation that integrates with multiple search providers for web search, local browser search, URL discovery, and scraping capabilities with agent-browser.
Features
- Web search, scrape, discover URLs, and preprocess content from websites.
- Support multiple search engines and web scrapers: SearXNG, Tavily, DuckDuckGo, Bing, Google, Zhipu (智谱), Exa, Bocha (博查), You.com, etc.
- Local web search (browser search), support multiple search engines: Bing, Google, Baidu, Sogou, etc.
- Use
agent-browserfor browser automation. - Free, no API keys required.
- Use
- Enabled tools:
one_search,one_scrape,one_map,one_extract
Current Tool Surface
one_search- Returns search results from the configured provider.
one_map- Discovers links from a starting URL by loading the page in the browser and extracting links from its HTML.
- Supported input fields:
url,search,includeSubdomains,limit. - This is not a sitemap crawler; removed fields such as
ignoreSitemapandsitemapOnlyare rejected at the schema boundary.
one_scrape- Scrapes one page and returns content selected by
formats. - Supported input fields:
url,formats,waitFor,timeout,skipTlsVerification,allowExecuteJavascript,actions. - Supported formats:
markdown,html,rawHtml,links,screenshot,screenshot@fullPage. - Supported bounded pre-scrape actions:
wait,click,write,press,scroll. - Advanced pre-scrape action:
executeJavascript. IfactionscontainsexecuteJavascript, you must setallowExecuteJavascript: true. actionsrun serially before content capture and fail fast on the first action error.- Removed fields such as
onlyMainContent,extract, andlocationare rejected at the schema boundary.
- Scrapes one page and returns content selected by
one_extract- Accepts only
urlsand returns preprocessed text blocks for downstream tools or models.
- Accepts only
Migration from v1.1.0 and Earlier
Breaking Changes in v1.1.0:
- Firecrawl Removed: The Firecrawl integration has been removed in favor of
agent-browser, which provides similar functionality without requiring external API services. - New Browser Requirement: You must install Chromium browser (see Prerequisites section).
- Environment Variables:
FIRECRAWL_API_URLandFIRECRAWL_API_KEYare no longer used.
What Changed:
one_scrapeandone_mapnow useagent-browserinstead of Firecrawlone_extractnow preprocesses multi-URL page content for downstream analysis instead of performing built-in LLM extraction- All browser-based operations are now handled locally, providing better privacy and no API costs
Migration Steps:
- Install Chromium browser (see Prerequisites)
- Remove
FIRECRAWL_API_URLandFIRECRAWL_API_KEYfrom your environment variables - Update to the latest version:
npm install -g one-search-mcp@latest
Prerequisites
Browser Requirement: This server uses agent-browser for web scraping and local search, which requires a Chromium-based browser.
Good News: The server will automatically detect and use browsers already installed on your system:
- ✅ Google Chrome
- ✅ Microsoft Edge
- ✅ Chromium
- ✅ Google Chrome Canary
If you don't have any of these browsers installed, you can:
# 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/
Installation
Using Claude Code CLI (Recommended)
# 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
Manual Installation
# Install globally (Optional)
npm install -g one-search-mcp
# Or run directly with npx
npx -y one-search-mcp
Local Debugging with MCP Inspector
Use the official MCP Inspector to interactively test tools, resources, and prompts against this server during local development.
# Inspect the TypeScript source entrypoint
npm run inspector
# Inspect the built server entrypoint
npm run inspector:build
# Example with explicit environment variables
ALLOW_PRIVATE_NETWORK=true SEARCH_PROVIDER=local npm run inspector
Using Docker
Docker image includes all dependencies (Chromium browser) pre-installed, no additional setup required.
Pull the image:
# From GitHub Container Registry
docker pull ghcr.io/yokingma/one-search-mcp:latest
# Or from Docker Hub
docker pull zacma/one-search-mcp:latest
Configure with Claude Desktop:
{
"mcpServers": {
"one-search-mcp": {
"command": "docker",
"args": ["run", "-i", "--rm", "ghcr.io/yokingma/one-search-mcp:latest"],
"env": {
"SEARCH_PROVIDER": "local"
}
}
}
}
With custom search provider:
{
"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"
]
}
}
}
Environment Variables
Search Provider
- SEARCH_PROVIDER (Optional): The search provider to use, supports
searxng,duckduckgo,bing,tavily,google,zhipu,exa,bocha,ydc,local, default islocal. - SEARCH_API_URL (Optional): The URL of the SearxNG API, or Google Custom Search Engine ID for
google. - SEARCH_API_KEY (Optional): The API key for the search provider, required for
tavily,bing,google,zhipu,exa,bocha. - YDC_API_KEY (Optional): You.com API key for
SEARCH_PROVIDER=ydc.
// supported search providers
export type SearchProvider = 'searxng' | 'duckduckgo' | 'bing' | 'tavily' | 'google' | 'zhipu' | 'exa' | 'bocha' | 'ydc' | 'local';
Browser Network Security
- ALLOW_PRIVATE_NETWORK (Optional): Set to
trueto allow browser-backed tools (one_scrape,one_map,one_extract) to access private, loopback, and link-local network targets. Defaults tofalse.
Use ALLOW_PRIVATE_NETWORK=true only in trusted deployments. When enabled, prompt injection or untrusted tool inputs can make the MCP process fetch internal services that are otherwise blocked by default.
Search Provider Configuration
| Provider | API Key Required | API URL Required | Notes |
|---|---|---|---|
local | No | No | Free, uses browser automation |
duckduckgo | No | No | Free, no API key needed |
searxng | Optional | Yes | Self-hosted meta search engine |
bing | Yes | No | Bing Search API |
tavily | Yes | No | Tavily API |
google | Yes | Yes (Search Engine ID) | Google Custom Search |
zhipu | Yes | No | 智谱 AI |
exa | Yes | No | Exa AI |
bocha | Yes | No | 博查 AI |
ydc | Yes | No | You.com Search |
Configuration for Other MCP Clients
Claude Desktop
Add to your Claude Desktop configuration file:
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
Add to your mcp.json file:
{
"mcpServers": {
"one-search-mcp": {
"command": "npx",
"args": ["-y", "one-search-mcp"],
"env": {
"SEARCH_PROVIDER": "local"
}
}
}
}
Windsurf
Add to your ./codeium/windsurf/model_config.json file:
{
"mcpServers": {
"one-search-mcp": {
"command": "npx",
"args": ["-y", "one-search-mcp"],
"env": {
"SEARCH_PROVIDER": "local"
}
}
}
}
Self-hosting SearXNG (Optional)
If you want to use SearXNG as your search provider, you can deploy it locally using Docker:
Prerequisites:
- Docker installed and running (version 20.10.0 or higher)
- At least 4GB of RAM available
Quick Start:
# Clone SearXNG Docker repository
git clone https://github.com/searxng/searxng-docker.git
cd searxng-docker
# Start SearXNG
docker compose up -d
After deployment, SearXNG will be available at http://127.0.0.1:8080 by default.
Configure OneSearch to use SearXNG:
# Set environment variables
export SEARCH_PROVIDER=searxng
export SEARCH_API_URL=http://127.0.0.1:8080
For more details, see the official SearXNG Docker documentation.
Troubleshooting
Browser not found error
If you see an error like "Browser not found", the server couldn't detect any installed Chromium-based browser. Please install one of the following:
- Google Chrome: https://www.google.com/chrome/
- Microsoft Edge: https://www.microsoft.com/edge
- Chromium: https://www.chromium.org/getting-involved/download-chromium/
Or install via agent-browser:
npx agent-browser install
License
MIT License - see LICENSE file for details.
Related MCP servers

Give LLMs time awareness with timezone conversion, timestamps, and calendar utilities.

Yolfi Payments MCP
AI agent crypto payment integration for checkout, paylinks, webhooks, and status checks.

Safety-first WhatsApp tools: draft-gated sends, enforced rate limits, append-only audit.

Korean Saju (사주) Four Pillars calculation + 80+ myeongni-hak (命理學) glossary terms.

OrchestKit Docs MCP
Read-only MCP server for OrchestKit documentation with full-text search and Markdown fetch.
Plan your perfect day out anywhere: itineraries and neighbourhood guides, tuned to mood and weather.