Skip to main content
Glama

DuckDuckGo MCP Server

by rsimd

This project was created by the AI code editor "Cursor". The large language model (LLM) used by Cursor is "GPT-4.1". Detailed specifications are documented in specifications.md.

DuckDuckGo MCP Server

DuckDuckGoの検索機能を提供するModel Context Protocol (MCP) サーバーです。

対応アプリケーション

  • Claude Desktop - Mac/Windows/Linux
  • Cursor IDE - AI搭載コードエディター
  • その他のMCP対応アプリケーション

機能

  • DuckDuckGoでのWebページ検索
  • 検索結果の要約と詳細情報の取得
  • 非同期処理による高速な検索
  • フォールバック機能による安定性確保

前提条件

  • Python 3.11以降 (推奨: Python 3.13)
  • uv パッケージマネージャー (推奨) または pip

セットアップ

uv を使用する場合(推奨)

  1. uv をインストールします:
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. プロジェクトの依存関係をインストールします:
uv sync
  1. サーバーの起動:
uv run duckduckgo-mcp-server # または python run.py

従来の方法(pip)

  1. 依存関係のインストール:
pip install -r requirements.txt
  1. サーバーの起動:
python server.py

使用方法

このMCPサーバーは以下のツールを提供します:

  • search_duckduckgo: DuckDuckGoで検索を実行

設定

特別な設定は不要です。DuckDuckGoのAPIは無料で利用可能です。

テスト

uv を使用する場合

uv run test-search # または python run.py test

従来の方法

python test_search.py

Docker での実行

Docker環境でも実行可能です(Python 3.13 + uvとpipの両方をサポート):

# ビルドと起動 docker compose up --build -d # テスト実行 docker compose --profile testing up test-runner # 停止 docker compose down

MCP クライアントでの使用

Claude Desktop

詳細は CLAUDE_DESKTOP_SETUP.md を参照してください。

ローカル環境(uv)
{ "mcpServers": { "duckduckgo-search": { "command": "uv", "args": ["run", "duckduckgo-mcp-server"], "cwd": "/path/to/duckduckgo-mcp-server", "env": {} } } }

Cursor IDE

詳細は CURSOR_SETUP.md を参照してください。

プロジェクト設定(.cursor/mcp.json
{ "mcpServers": { "duckduckgo-search": { "command": "uv", "args": ["run", "duckduckgo-mcp-server"], "env": {} } } }
グローバル設定(~/.cursor/mcp.json
{ "mcpServers": { "duckduckgo-search": { "command": "uv", "args": ["run", "duckduckgo-mcp-server"], "env": {} } } }

リモート環境での使用

SSH経由でリモートサーバー上のMCP Serverを利用する場合は CONNECTION_SOLUTION.md を参照してください。

トラブルシューティング

問題が発生した場合は以下を参照してください:

ライセンス

MIT License

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

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

A Model Context Protocol server that enables AI applications like Claude Desktop and Cursor IDE to perform web searches via DuckDuckGo's search engine.

  1. 対応アプリケーション
    1. 機能
      1. 前提条件
        1. セットアップ
          1. uv を使用する場合(推奨)
          2. 従来の方法(pip)
        2. 使用方法
          1. 設定
            1. テスト
              1. uv を使用する場合
              2. 従来の方法
            2. Docker での実行
              1. MCP クライアントでの使用
                1. Claude Desktop
                2. Cursor IDE
                3. リモート環境での使用
              2. トラブルシューティング
                1. ライセンス

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server that provides DuckDuckGo search functionality for Claude, enabling web search capabilities through a clean tool interface with rate limiting support.
                    Last updated -
                    1
                    60
                    15
                    TypeScript
                    MIT License
                    • Apple
                  • -
                    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
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server implementation that enables AI assistants like Claude to perform Google searches and retrieve web data directly through natural language requests.
                    Last updated -
                    1
                    75
                    3
                    TypeScript
                    MIT License
                  • A
                    security
                    A
                    license
                    A
                    quality
                    A Model Context Protocol server that enables Claude Desktop to browse the web, likely allowing the AI to access and interact with web content.
                    Last updated -
                    2
                    52
                    2
                    JavaScript
                    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/rsimd/duckduckgo-mcp-server'

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