Sponsored by Deepsite.site

DuckDuckGo MCP Server

Created By
rsimd6 months ago
DuckDuckGo MCP Server for Claude Desktop and Cursor
Content

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

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Tavily Mcp
Serper MCP ServerA Serper MCP Server
CursorThe AI Code Editor
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
WindsurfThe new purpose-built IDE to harness magic
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Playwright McpPlaywright MCP server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.