DuckDuckGo MCP Server

DuckDuckGo MCP Server

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

Category
Visit Server

README

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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured