DuckDuckGo MCP Server

hybrid server

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

Integrations

  • Allows performing web searches using the DuckDuckGo API, with support for configuring the number of results and SafeSearch settings

duckduckgo-search MCP サーバー

英語 |中国語

DuckDuckGo Search用のモデルコンテキストプロトコルサーバー

これはTypeScriptベースのMCPサーバーで、DuckDuckGoの検索機能を提供します。以下の方法でMCPのコアコンセプトを実証します。

  • DuckDuckGo Searchとの統合
  • 使いやすい検索ツールインターフェース
  • レート制限とエラー処理のサポート

特徴

検索ツール

  • duckduckgo_search - DuckDuckGo API を使用してウェブ検索を実行する
    • 必須パラメータ: query (検索クエリ、最大 400 文字)
    • オプションパラメータ: count (結果数、1~20、デフォルト10)
    • オプションパラメータ: safeSearch (安全レベル: 厳格/中程度/オフ、デフォルト: 中程度)
    • フォーマットされたMarkdown検索結果を返します

レート制限

  • 1秒あたり最大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

Claude に DuckDuckGo 検索機能を提供するモデル コンテキスト プロトコル サーバー。レート制限をサポートするクリーンなツール インターフェイスを通じて Web 検索機能を有効にします。

  1. Features
    1. Search Tool
    2. Rate Limits
  2. Development
    1. Prerequisites
    2. Installation
    3. Build and Run
  3. Setup in Claude Desktop
    1. Debugging
ID: 34fhy9xb9w