Skip to main content
Glama

DuckDuckGo MCP Server

by zhsama

duckduckgo-search MCP 服务器

English |中文

DuckDuckGo 搜索的模型上下文协议服务器

这是一个基于 TypeScript 的 MCP 服务器,提供 DuckDuckGo 搜索功能。它通过以下方式演示 MCP 的核心概念:

  • 与 DuckDuckGo 搜索集成
  • 易于使用的搜索工具界面
  • 速率限制和错误处理支持

特征

搜索工具

  • duckduckgo_search - 使用 DuckDuckGo API 执行网络搜索
    • 必需参数: query (搜索查询,最多 400 个字符)
    • 可选参数: count (结果数量,1-20,默认10)
    • 可选参数: safeSearch (安全级别:严格/中等/关闭,默认中等)
    • 返回格式化的 Markdown 搜索结果

速率限制

  • 每秒最多 1 个请求
  • 每月最多 15000 个请求

发展

先决条件

  • 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 来访问浏览器中的调试工具。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

模型上下文协议服务器为 Claude 提供 DuckDuckGo 搜索功能,通过支持速率限制的干净工具界面实现网络搜索功能。

  1. 特征
    1. 搜索工具
    2. 速率限制
  2. 发展
    1. 先决条件
    2. 安装
    3. 构建并运行
  3. 在 Claude Desktop 中设置
    1. 调试

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.
    Last updated -
    2
    26
    Python
    MIT License
    • Apple
  • -
    security
    F
    license
    -
    quality
    A Model Context Protocol server that enables Claude to perform Google Custom Search operations by connecting to Google's search API.
    Last updated -
    Python
    • Linux
  • -
    security
    F
    license
    -
    quality
    A server that provides DuckDuckGo search capabilities (text, image, news, video search and AI chat) through the Model Context Protocol.
    Last updated -
    Python
    • Apple
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that enables Claude to perform web research by integrating Google search, extracting webpage content, and capturing screenshots.
    Last updated -
    854
    4
    MIT License
    • Apple

View all related MCP servers

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zhsama/duckduckgo-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server