mcp-web-search
MCP Web Search
一个使用 DuckDuckGo 进行网络搜索的模型上下文协议(MCP)服务器。无需 API 密钥。
功能特性
网络搜索 - 通过 DuckDuckGo 的静态 HTML 界面进行网络搜索
内容提取 - 使用 Mozilla 的 Readability 从任意网页获取并提取可读内容
零配置 - 无需 API 密钥,无需注册,开箱即用
轻量级 - 使用 Node.js 原生
fetch,无需重型浏览器自动化
Related MCP server: Web Scout MCP Server
工具
工具 | 描述 |
| 使用 DuckDuckGo 搜索网络。返回每条结果的标题、URL 和摘要。 |
| 从网页 URL 提取主要文本内容。去除广告、导航和噪音。 |
使用方法
本地安装
git clone https://github.com/doranobik/mcp-web-search.git
cd mcp-web-search
npm install
npm run build
node dist/index.js注意: 此包未发布到 npm。npm 上的
mcp-web-search名称属于一个无关项目,请从本仓库安装。
Docker
docker build -t mcp-web-search .
docker run -i mcp-web-searchMCP 客户端配置
Claude Desktop(claude_desktop_config.json):
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/mcp-web-search/dist/index.js"]
}
}
}LM Studio(mcp.json):
{
"mcpServers": {
"web-search": {
"command": "node",
"args": ["/path/to/mcp-web-search/dist/index.js"]
}
}
}工具参数
webSearch
参数 | 类型 | 必填 | 默认值 | 描述 |
| string | 是 | - | 搜索查询 |
| number | 否 | 10 | 最大结果数(1-20) |
| string | 否 | - | 区域代码(例如 |
fetchWebContent
参数 | 类型 | 必填 | 默认值 | 描述 |
| string | 是 | - | 要获取的 URL |
| number | 否 | 5000 | 返回的最大字符数(100-200000) |
免责声明
此服务器通过解析 DuckDuckGo 的 HTML 界面(而非官方 API)来搜索网络。如果 DuckDuckGo 更改其标记,它可能会失效,并且大量自动化使用可能违反 DuckDuckGo 的服务条款或导致速率限制。请负责任地使用,风险自负。
许可证
MIT — 详情请参阅 LICENSE。
Available Tools
2 toolsfetchWebContentFetch Web ContentA
<use_case>Fetch and extract the main text content from a webpage. Use this tool after webSearch to read the full content of a specific URL, or when given a direct URL to analyze.</use_case> <important_notes>
Extracts readable article text, removing ads, navigation, and other non-content elements
Works best with article pages, blog posts, and documentation
May not work well with heavily JavaScript-rendered pages or pages requiring login
Use maxChars to limit returned content length for large pages </important_notes>
Inputs: url (required), maxChars.
webSearchWeb SearchA
<use_case>Search the web using DuckDuckGo. Use this tool when you need to find current information, news, documentation, or answers to questions from the internet.</use_case> <important_notes>
No API key required
Results include title, URL, and snippet for each result
Use the region parameter to get localized results (e.g., 'jp-ja' for Japanese)
After getting search results, use fetchWebContent to read full page content from any URL </important_notes>
Inputs: query (required), region, maxResults.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: webSearch for querying the web and fetchWebContent for retrieving page content. There is no overlap or ambiguity between them.
Both tool names follow a consistent camelCase verb-noun pattern (webSearch, fetchWebContent), making them predictable and easy to understand.
With only 2 tools, the server is minimal but well-scoped for its stated purpose of web search and content fetching. While the typical range is 3-15, this lean set is appropriate for the narrow domain.
The server covers the essential workflow of searching the web and then fetching full content from selected URLs. No critical operations are missing for its intended use case.
Maintenance
Related MCP Connectors
Web search, URL content extraction to Markdown, site mapping, and recursive web crawler.
Web search and page reading for AI agents, including JSON APIs, RSS feeds and YouTube.
Web search and any page as LLM-ready Markdown for AI agents. Free keyless tier, no signup.
Search the open web and Extract Raw Content for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables web searching through DuckDuckGo and fetching content from webpages. Provides search capabilities with configurable result limits and webpage content extraction for AI assistants.-
- AlicenseBqualityCmaintenanceEnables privacy-focused web searches using DuckDuckGo and extraction of clean, readable content from web pages with support for parallel processing of multiple URLs.230 npm153Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables web search and content fetching via DuckDuckGo without requiring an API key.422 npm3MIT
- AlicenseAqualityCmaintenanceEnables web search using Bing and DuckDuckGo combined, and fetching readable content from web pages, with no API key required.22MIT