Open-WebSearch MCP Server
Provides web search through Baidu, returning structured titles, URLs, and descriptions alongside results from other engines.
Provides web search through Brave Search, returnable together with other engines' results in a single multi-engine query.
Provides CSDN blog search plus a fetchCsdnArticle tool that retrieves the full text content of a CSDN article from its URL.
Provides DuckDuckGo web search, usable as the default search engine or combined with other engines.
Provides a fetchGithubReadme tool that retrieves README content from a GitHub repository given its URL (HTTPS or SSH form).
Provides Juejin search plus a fetchJuejinArticle tool that retrieves the full content of a Juejin article from its URL.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Open-WebSearch MCP Server search DuckDuckGo for the latest AI news"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Open-WebSearch MCP Server
🇨🇳 中文 | 🇺🇸 English
A Model Context Protocol (MCP) server based on multi-engine search results, supporting free web search without API keys.
Features
Web search using multi-engine results
bing
baidu
linux.dotemporarily unsupportedcsdn
duckduckgo
exa
brave
juejin
HTTP proxy configuration support for accessing restricted resources
No API keys or authentication required
Returns structured results with titles, URLs, and descriptions
Configurable number of results per search
Customizable default search engine
Support for fetching individual article content
csdn
github (README files)
generic HTTP(S) page / Markdown content
Related MCP server: Heventure Search MCP
TODO
Support for
Bing(already supported),DuckDuckGo(already supported),Exa(already supported),Brave(already supported), Google and other search enginesSupport for more blogs, forums, and social platforms
Optimize article content extraction, add support for more sites
Support for GitHub README fetching(already supported)
Installation Guide
NPX Quick Start (Recommended)
The fastest way to get started:
# Basic usage
npx open-websearch@latest
# With environment variables (Linux/macOS)
DEFAULT_SEARCH_ENGINE=duckduckgo ENABLE_CORS=true npx open-websearch@latest
# Windows PowerShell
$env:DEFAULT_SEARCH_ENGINE="duckduckgo"; $env:ENABLE_CORS="true"; npx open-websearch@latest
# Windows CMD
set MODE=stdio && set DEFAULT_SEARCH_ENGINE=duckduckgo && npx open-websearch@latest
# Cross-platform (requires cross-env, Used for local development)
npm install -g open-websearch
npx cross-env DEFAULT_SEARCH_ENGINE=duckduckgo ENABLE_CORS=true open-websearchEnvironment Variables:
Variable | Default | Options | Description |
|
|
| Enable CORS |
|
| Any valid origin | CORS origin configuration |
|
|
| Default search engine |
|
|
| Enable HTTP proxy |
|
| Any valid URL | Proxy server URL |
|
|
| Server mode: both HTTP+STDIO, HTTP only, or STDIO only |
|
| 1-65535 | Server port |
| empty (all available) | Comma-separated engine names | Limit which search engines can be used; if the default engine is not in this list, the first allowed engine becomes the default |
|
| Valid MCP tool name | Custom name for the search tool |
|
| Valid MCP tool name | Custom name for the Linux.do article fetch tool |
|
| Valid MCP tool name | Custom name for the CSDN article fetch tool |
|
| Valid MCP tool name | Custom name for the GitHub README fetch tool |
|
| Valid MCP tool name | Custom name for the Juejin article fetch tool |
|
| Valid MCP tool name | Custom name for generic web/Markdown fetch tool |
Common configurations:
# Enable proxy for restricted regions
USE_PROXY=true PROXY_URL=http://127.0.0.1:7890 npx open-websearch@latest
# Full configuration
DEFAULT_SEARCH_ENGINE=duckduckgo ENABLE_CORS=true USE_PROXY=true PROXY_URL=http://127.0.0.1:7890 PORT=8080 npx open-websearch@latestLocal Installation
Clone or download this repository
Install dependencies:
npm installBuild the server:
npm run buildAdd the server to your MCP configuration:
Cherry Studio:
{
"mcpServers": {
"web-search": {
"name": "Web Search MCP",
"type": "streamableHttp",
"description": "Multi-engine web search with article fetching",
"isActive": true,
"baseUrl": "http://localhost:3000/mcp"
}
}
}VSCode (Claude Dev Extension):
{
"mcpServers": {
"web-search": {
"transport": {
"type": "streamableHttp",
"url": "http://localhost:3000/mcp"
}
},
"web-search-sse": {
"transport": {
"type": "sse",
"url": "http://localhost:3000/sse"
}
}
}
}Claude Desktop:
{
"mcpServers": {
"web-search": {
"type": "http",
"url": "http://localhost:3000/mcp"
},
"web-search-sse": {
"type": "sse",
"url": "http://localhost:3000/sse"
}
}
}NPX Command Line Configuration:
{
"mcpServers": {
"web-search": {
"args": [
"open-websearch@latest"
],
"command": "npx",
"env": {
"MODE": "stdio",
"DEFAULT_SEARCH_ENGINE": "duckduckgo",
"ALLOWED_SEARCH_ENGINES": "duckduckgo,bing,exa"
}
}
}
}Local STDIO Configuration for Cherry Studio (Windows):
{
"mcpServers": {
"open-websearch-local": {
"command": "node",
"args": ["C:/path/to/your/project/build/index.js"],
"env": {
"MODE": "stdio",
"DEFAULT_SEARCH_ENGINE": "duckduckgo",
"ALLOWED_SEARCH_ENGINES": "duckduckgo,bing,exa"
}
}
}
}Docker Deployment
Quick deployment using Docker Compose:
docker-compose up -dOr use Docker directly:
docker run -d --name web-search -p 3000:3000 -e ENABLE_CORS=true -e CORS_ORIGIN=* ghcr.io/aas-ee/open-web-search:latestEnvironment variable configuration:
Variable | Default | Options | Description |
|
|
| Enable CORS |
|
| Any valid origin | CORS origin configuration |
|
|
| Default search engine |
|
|
| Enable HTTP proxy |
|
| Any valid URL | Proxy server URL |
|
| 1-65535 | Server port |
Then configure in your MCP client:
{
"mcpServers": {
"web-search": {
"name": "Web Search MCP",
"type": "streamableHttp",
"description": "Multi-engine web search with article fetching",
"isActive": true,
"baseUrl": "http://localhost:3000/mcp"
},
"web-search-sse": {
"transport": {
"name": "Web Search MCP",
"type": "sse",
"description": "Multi-engine web search with article fetching",
"isActive": true,
"url": "http://localhost:3000/sse"
}
}
}
}Usage Guide
The server provides six tools: search, fetchLinuxDoArticle, fetchCsdnArticle, fetchGithubReadme, fetchJuejinArticle, and fetchWebContent.
search Tool Usage
{
"query": string, // Search query
"limit": number, // Optional: Number of results to return (default: 10)
"engines": string[] // Optional: Engines to use (bing,baidu,linuxdo,csdn,duckduckgo,exa,brave,juejin) default bing
}Usage example:
use_mcp_tool({
server_name: "web-search",
tool_name: "search",
arguments: {
query: "search content",
limit: 3, // Optional parameter
engines: ["bing", "csdn", "duckduckgo", "exa", "brave", "juejin"] // Optional parameter, supports multi-engine combined search
}
})Response example:
[
{
"title": "Example Search Result",
"url": "https://example.com",
"description": "Description text of the search result...",
"source": "Source",
"engine": "Engine used"
}
]fetchCsdnArticle Tool Usage
Used to fetch complete content of CSDN blog articles.
{
"url": string // URL from CSDN search results using the search tool
}Usage example:
use_mcp_tool({
server_name: "web-search",
tool_name: "fetchCsdnArticle",
arguments: {
url: "https://blog.csdn.net/xxx/article/details/xxx"
}
})Response example:
[
{
"content": "Example search result"
}
]fetchLinuxDoArticle Tool Usage
Used to fetch complete content of Linux.do forum articles.
{
"url": string // URL from linuxdo search results using the search tool
}Usage example:
use_mcp_tool({
server_name: "web-search",
tool_name: "fetchLinuxDoArticle",
arguments: {
url: "https://xxxx.json"
}
})Response example:
[
{
"content": "Example search result"
}
]fetchGithubReadme Tool Usage
Used to fetch README content from GitHub repositories.
{
"url": string // GitHub repository URL (supports HTTPS, SSH formats)
}Usage example:
use_mcp_tool({
server_name: "web-search",
tool_name: "fetchGithubReadme",
arguments: {
url: "https://github.com/Aas-ee/open-webSearch"
}
})Supported URL formats:
HTTPS:
https://github.com/owner/repoHTTPS with .git:
https://github.com/owner/repo.gitSSH:
git@github.com:owner/repo.gitURLs with parameters:
https://github.com/owner/repo?tab=readme
Response example:
[
{
"content": "<div align=\"center\">\n\n# Open-WebSearch MCP Server..."
}
]fetchWebContent Tool Usage
Fetch content directly from public HTTP(S) links, including Markdown files (.md) and ordinary web pages.
{
"url": string, // Public HTTP(S) URL
"maxChars": number // Optional: max returned content length (1000-200000, default 30000)
}Usage example:
use_mcp_tool({
server_name: "web-search",
tool_name: "fetchWebContent",
arguments: {
url: "https://raw.githubusercontent.com/Aas-ee/open-webSearch/main/README.md",
maxChars: 12000
}
})Response example:
{
"url": "https://raw.githubusercontent.com/Aas-ee/open-webSearch/main/README.md",
"finalUrl": "https://raw.githubusercontent.com/Aas-ee/open-webSearch/main/README.md",
"contentType": "text/plain; charset=utf-8",
"title": "",
"truncated": false,
"content": "# Open-WebSearch MCP Server ..."
}fetchJuejinArticle Tool Usage
Used to fetch complete content of Juejin articles.
{
"url": string // Juejin article URL from search results
}Usage example:
use_mcp_tool({
server_name: "web-search",
tool_name: "fetchJuejinArticle",
arguments: {
url: "https://juejin.cn/post/7520959840199360563"
}
})Supported URL format:
https://juejin.cn/post/{article_id}
Response example:
[
{
"content": "🚀 开源 AI 联网搜索工具:Open-WebSearch MCP 全新升级,支持多引擎 + 流式响应..."
}
]Usage Limitations
Since this tool works by scraping multi-engine search results, please note the following important limitations:
Rate Limiting:
Too many searches in a short time may cause the used engines to temporarily block requests
Recommendations:
Maintain reasonable search frequency
Use the limit parameter judiciously
Add delays between searches when necessary
Result Accuracy:
Depends on the HTML structure of corresponding engines, may fail when engines update
Some results may lack metadata like descriptions
Complex search operators may not work as expected
Legal Terms:
This tool is for personal use only
Please comply with the terms of service of corresponding engines
Implement appropriate rate limiting based on your actual use case
Search Engine Configuration:
Default search engine can be set via the
DEFAULT_SEARCH_ENGINEenvironment variableSupported engines: bing, duckduckgo, exa, brave
The default engine is used when searching specific websites
Proxy Configuration:
HTTP proxy can be configured when certain search engines are unavailable in specific regions
Enable proxy with environment variable
USE_PROXY=trueConfigure proxy server address with
PROXY_URL
Contributing
Welcome to submit issue reports and feature improvement suggestions!
Contributor Guide
If you want to fork this repository and publish your own Docker image, you need to make the following configurations:
GitHub Secrets Configuration
To enable automatic Docker image building and publishing, please add the following secrets in your GitHub repository settings (Settings → Secrets and variables → Actions):
Required Secrets:
GITHUB_TOKEN: Automatically provided by GitHub (no setup needed)
Optional Secrets (for Alibaba Cloud ACR):
ACR_REGISTRY: Your Alibaba Cloud Container Registry URL (e.g.,registry.cn-hangzhou.aliyuncs.com)ACR_USERNAME: Your Alibaba Cloud ACR usernameACR_PASSWORD: Your Alibaba Cloud ACR passwordACR_IMAGE_NAME: Your image name in ACR (e.g.,your-namespace/open-web-search)
CI/CD Workflow
The repository includes a GitHub Actions workflow (.github/workflows/docker.yml) that automatically:
Trigger Conditions:
Push to
mainbranchPush version tags (
v*)Manual workflow trigger
Build and Push to:
GitHub Container Registry (ghcr.io) - always enabled
Alibaba Cloud Container Registry - only enabled when ACR secrets are configured
Image Tags:
ghcr.io/your-username/open-web-search:latestyour-acr-address/your-image-name:latest(if ACR is configured)
Fork and Publish Steps:
Fork the repository to your GitHub account
Configure secrets (if you need ACR publishing):
Go to Settings → Secrets and variables → Actions in your forked repository
Add the ACR-related secrets listed above
Push changes to the
mainbranch or create version tagsGitHub Actions will automatically build and push your Docker image
Use your image, update the Docker command:
docker run -d --name web-search -p 3000:3000 -e ENABLE_CORS=true -e CORS_ORIGIN=* ghcr.io/your-username/open-web-search:latest
Notes:
If you don't configure ACR secrets, the workflow will only publish to GitHub Container Registry
Make sure your GitHub repository has Actions enabled
The workflow will use your GitHub username (converted to lowercase) as the GHCR image name
Star History
If you find this project helpful, please consider giving it a ⭐ Star!
Available Tools
8 toolsfetchCsdnArticleB
Fetch full article content from a csdn post URL
Inputs: url (required).
fetchGithubReadmeC
Fetch README content from a GitHub repository URL
Inputs: url (required).
fetchJuejinArticleA
Fetch full article content from a Juejin(掘金) post URL
Inputs: url (required).
fetchLinuxDoArticleC
Fetch full article content from a linux.do post URL
Inputs: url (required).
fetchWebContentC
Fetch content from a public HTTP(S) URL (supports Markdown files and normal web pages)
Inputs: url (required), maxChars.
fetch_webpageA
Retrieve the content and headings of a webpage. Use this tool after identifying relevant URLs from web search results to extract page structure for SEO analysis.
Inputs: url (required).
searchB
Search the web using multiple engines (e.g., Baidu, Bing, DuckDuckGo, CSDN, Exa, Brave, Juejin(掘金)) with no API key required
Inputs: query (required), limit, engines.
web_searchB
Search the web to retrieve relevant pages for a given query. Use this tool when performing SERP research or when real web information is required.
Inputs: query (required), num_results.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
There are two nearly identical search tools (`search` and `web_search`) and two nearly identical page-fetch tools (`fetchWebContent` and `fetch_webpage`); an agent cannot reliably choose between them from names alone. The platform-specific fetchers (linux.do, CSDN, Juejin, GitHub README) are distinct, but they also overlap with the generic `fetchWebContent`, creating multiple ambiguous boundaries.
The set mixes snake_case (`web_search`, `fetch_webpage`), bare verbs (`search`), and camelCase with platform names (`fetchCsdnArticle`, `fetchGithubReadme`). The pattern is only half-readable: the `fetch*Article` group is coherent, but it clashes with the snake_case group introduced alongside it.
Eight tools is a well-sized surface for a search-and-fetch server. The only weakness is that two of those eight are redundant duplicates, so not every slot strictly earns its place.
The domain of web search plus content extraction is broadly covered: multi-engine search, a generic fetcher, and specialized extractors for common sources. Minor gaps remain (no way to select engine or result count, no batch fetch, and only four hardcoded platforms get dedicated handling), but the generic fetcher lets agents work around these.
Maintenance
Related MCP Connectors
Fetch any URL as markdown, text, HTML or selector-built JSON; search Google, Bing, Yahoo and Brave.
Live web search and fetch plus Twitter, Reddit, GitHub, Amazon, YouTube, Telegram data. No API keys.
Web search and page reading for AI agents, including JSON APIs, RSS feeds and YouTube.
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Related MCP Servers
- AlicenseAqualityBmaintenanceWeb search using free multi-engine search (NO API KEYS REQUIRED) — Supports Bing, Baidu, DuckDuckGo, Brave, Exa, and CSDN.51,915Apache 2.0
- AlicenseAqualityCmaintenanceEnables web search without API keys using DuckDuckGo and Bing search engines, and retrieves webpage content. Supports multiple search engines simultaneously with privacy protection and asynchronous processing.281 PyPI10MIT
- AlicenseNot gradedqualityDmaintenanceEnables web searches across multiple engines (DuckDuckGo, Bing, Google, SerpAPI, Google CSE, Tavily) with no API key required for the free engines, plus automatic fallback, caching, and webpage content fetching.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI clients to run keyless web searches by aggregating nine domestic Chinese engines directly plus foreign engines through a self-maintained free node pool, with authority-weighted fusion, deduplication, and content fetching. Also provides deep research, engine health, proxy status, node pool management, and cache tools, all configurable from a built-in web panel.MIT