io.github.yokingma/one-search-mcp

Registre officiel Recherche et web

Web search, URL discovery, scraping & extraction with agent-browser and search providers

Que pouvez-vous faire avec io.github.yokingma/one-search-mcp ?

  • 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.
  • Enabled tools: one_search, one_scrape, one_map, one_extract

Installation

Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).

NPM package one-search-mcp
Claude Code
claude mcp add one-search-mcp -e 'SEARCH_PROVIDER=<SEARCH_PROVIDER>' -e 'SEARCH_API_URL=<SEARCH_API_URL>' -e 'SEARCH_API_KEY=<your search_api_key>' -e 'YDC_API_KEY=<your ydc_api_key>' -e 'ALLOW_PRIVATE_NETWORK=<ALLOW_PRIVATE_NETWORK>' -- npx -y one-search-mcp@1.2.4
Configuration JSON (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "one-search-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "one-search-mcp@1.2.4"
            ],
            "env": {
                "SEARCH_PROVIDER": "<SEARCH_PROVIDER>",
                "SEARCH_API_URL": "<SEARCH_API_URL>",
                "SEARCH_API_KEY": "<your search_api_key>",
                "YDC_API_KEY": "<your ydc_api_key>",
                "ALLOW_PRIVATE_NETWORK": "<ALLOW_PRIVATE_NETWORK>"
            }
        }
    }
}

Variables d'environnement

  • SEARCH_PROVIDER Search provider to use (searxng, duckduckgo, bing, tavily, google, zhipu, exa, bocha, ydc, local)
  • SEARCH_API_URL API URL for SearXNG (required if using searxng provider), or Google Custom Search Engine ID for google
  • SEARCH_API_KEY secret API key for search provider (required for tavily, bing, google, zhipu, exa, bocha)
  • YDC_API_KEY secret You.com API key for ydc provider
  • ALLOW_PRIVATE_NETWORK Allow browser-backed tools to access private, loopback, and link-local network targets when set to true

Documentation

Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.

Sommaire
  1. 🚀 OneSearch MCP Server: Web Search, URL Discovery, Scraper & Content Prep
  2. Features
  3. Current Tool Surface
  4. Migration from v1.1.0 and Earlier
  5. Prerequisites
  6. Installation
  7. Environment Variables
  8. Configuration for Other MCP Clients
  9. Self-hosting SearXNG (Optional)
  10. Troubleshooting
  11. License

🚀 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-browser for browser automation.
    • Free, no API keys required.
  • 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 ignoreSitemap and sitemapOnly are 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. If actions contains executeJavascript, you must set allowExecuteJavascript: true.
    • actions run serially before content capture and fail fast on the first action error.
    • Removed fields such as onlyMainContent, extract, and location are rejected at the schema boundary.
  • one_extract
    • Accepts only urls and returns preprocessed text blocks for downstream tools or models.

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_URL and FIRECRAWL_API_KEY are no longer used.

What Changed:

  • one_scrape and one_map now use agent-browser instead of Firecrawl
  • one_extract now 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:

  1. Install Chromium browser (see Prerequisites)
  2. Remove FIRECRAWL_API_URL and FIRECRAWL_API_KEY from your environment variables
  3. 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

# 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 is local.
  • 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 true to allow browser-backed tools (one_scrape, one_map, one_extract) to access private, loopback, and link-local network targets. Defaults to false.

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
ProviderAPI Key RequiredAPI URL RequiredNotes
localNoNoFree, uses browser automation
duckduckgoNoNoFree, no API key needed
searxngOptionalYesSelf-hosted meta search engine
bingYesNoBing Search API
tavilyYesNoTavily API
googleYesYes (Search Engine ID)Google Custom Search
zhipuYesNo智谱 AI
exaYesNoExa AI
bochaYesNo博查 AI
ydcYesNoYou.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:

Or install via agent-browser:

npx agent-browser install

License

MIT License - see LICENSE file for details.

Questions fréquentes

Qu'est-ce que io.github.yokingma/one-search-mcp ?

Web search, URL discovery, scraping & extraction with agent-browser and search providers

Comment installer io.github.yokingma/one-search-mcp ?

Il s'exécute sur votre machine. Dans Claude Code : claude mcp add one-search-mcp -e 'SEARCH_PROVIDER=<SEARCH_PROVIDER>' -e 'SEARCH_API_URL=<SEARCH_API_URL>' -e 'SEARCH_API_KEY=<your search_api_key>' -e 'YDC_API_KEY=<your ydc_api_key>' -e 'ALLOW_PRIVATE_NETWORK=<ALLOW_PRIVATE_NETWORK>' -- npx -y one-search-mcp@1.2.4. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.

Faut-il une clé API pour io.github.yokingma/one-search-mcp ?

Oui. Il attend SEARCH_API_KEY, YDC_API_KEY, à renseigner dans sa configuration.

io.github.yokingma/one-search-mcp est-il open source ?

Oui. Son code est sur GitHub sous licence MIT.

Qui maintient io.github.yokingma/one-search-mcp ?

Il est publié par yokingma. AI.tn le référence sans le maintenir ni le recommander.

Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.