DuckDuckGo MCP Server
duckduckgo-search MCP 服务器
English |中文
DuckDuckGo 搜索的模型上下文协议服务器
这是一个基于 TypeScript 的 MCP 服务器,提供 DuckDuckGo 搜索功能。它通过以下方式演示 MCP 的核心概念:
与 DuckDuckGo 搜索集成
易于使用的搜索工具界面
速率限制和错误处理支持
特征
搜索工具
duckduckgo_search- 使用 DuckDuckGo API 执行网络搜索必需参数:
query(搜索查询,最多 400 个字符)可选参数:
count(结果数量,1-20,默认10)可选参数:
safeSearch(安全级别:严格/中等/关闭,默认中等)返回格式化的 Markdown 搜索结果
速率限制
每秒最多 1 个请求
每月最多 15000 个请求
Related MCP server: DuckDuckGo MCP Server
发展
先决条件
Node.js >= 18
pnpm >= 8.0.0
安装
# Install pnpm if not already installed
npm install -g pnpm
# Install project dependencies
pnpm install构建并运行
构建服务器:
pnpm run build对于使用自动重建的开发:
pnpm run watch在 Claude Desktop 中设置
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
# online
{
"mcpServers": {
"duckduckgo-search": {
"command": "npx",
"args": [
"-y",
"duckduckgo-mpc-server"
]
}
}
}
# local
{
"mcpServers": {
"duckduckgo-search": {
"command": "node",
"args": [
"/path/to/duckduckgo-search/build/index.js"
]
}
}
}调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
pnpm run inspector检查器将提供一个 URL 来访问浏览器中的调试工具。
Available Tools
1 toolduckduckgo_web_searchB
Performs a web search using the DuckDuckGo, ideal for general queries, news, articles, and online content. Use this for broad information gathering, recent events, or when you need diverse web sources. Supports content filtering and region-specific searches. Maximum 20 results per request.
Inputs: query (required), count, safeSearch.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as performing web searches using DuckDuckGo.
Since there is only one tool, naming consistency is inherently perfect. The tool name 'duckduckgo_web_search' follows a clear verb_noun pattern that would be appropriate if more tools were added.
A single tool for a web search server is too minimal for the apparent scope. While the tool covers basic search functionality, a more complete surface would likely include additional tools such as for image search, news search, or advanced query options, making this feel thin and incomplete.
The tool surface is severely incomplete for a DuckDuckGo server. It only provides general web search, missing obvious functionalities like image search, video search, instant answers, or autocomplete, which are core features of DuckDuckGo. This will limit agents to basic queries without specialized capabilities.
Maintenance
Related MCP Connectors
Web search API and MCP server for developers building AI agents.
Hosted Web Crawler MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
DuckDuckGo web search results, news and related searches. Paid, on Apify's hosted MCP.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseAqualityBmaintenanceA Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.320,901 PyPI1,584MIT
- FlicenseBqualityDmaintenanceA server that provides DuckDuckGo search capabilities (text, image, news, video search and AI chat) through the Model Context Protocol.516-
- AlicenseCqualityCmaintenanceA Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.1329 npm170MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI applications like Claude Desktop and Cursor IDE to perform web searches via DuckDuckGo's search engine.-