★ 1172 Python MIT sse 更新 3小时前

Duckduckgo

A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing.

安装配置

{
    "mcpServers": {
        "ddg-search": {
            "command": "uvx",
            "args": [
                "duckduckgo-mcp-server"
            ]
        }
    }
}

README 摘要

# DuckDuckGo Search MCP Server [![PyPI version](https://img.shields.io/pypi/v/duckduckgo-mcp-server)](https://pypi.org/project/duckduckgo-mcp-server/) [![PyPI downloads](https://img.shields.io/pypi/dm/duckduckgo-mcp-server)](https://pypi.org/project/duckduckgo-mcp-server/) [![Python versions](https://img.shields.io/pypi/pyversions/duckduckgo-mcp-server)](https://pypi.org/project/duckduckgo-mcp-server/) A Model Context Protocol (MCP) server that provides web search capabilities through DuckDuckGo, with additional features for content fetching and parsing. ## Quick Start ```bash uvx duckduckgo-mcp-server ``` ## Features - **Web Search**: Search DuckDuckGo with advanced rate limiting and result formatting - **Content Fetching**: Retrieve and parse webpage content with intelligent text extraction - **Rate Limiting**: Built-in protection against rate limits for both search and content fetching - **Error Handling**: Comprehensive error handling and logging - **LLM-Friendly Output**: Results formatted specifically for large language model consumption ## Installation Install from PyPI using `uv`: ```bash uv pip install duckduckgo-mcp-server ``` ## Usage ### Running with Claude Desktop 1. Download [Claude Desktop](https://claude.ai/download) 2. Create or edit your Claude Desktop configuration: - On macOS: `~/Library/Application Support/Claude/claude_desktop_config.json` - On Windows: `%APPDATA%\Claude\claude_desktop_config.json` Add the following configuration: **Basic Configuration (No SafeSearch, No Default Region):** ```json { "mcpServers": { "ddg-search": { "command": "uvx", "args": ["duckduckgo-mcp-server"] } } } ``` **With SafeSearch and Region Configuration:** ```json { "mcpServers": { "ddg-search": { "command": "uvx", "args": ["duckduckgo-mcp-server"], "env": { "DDG_SAFE_SEARCH": "STRICT", "DDG_REGION": "cn-zh" } } } } ``` **Configuration Options:** - `DDG_SAFE_SEARCH`: SafeSearch filtering level (optional) - `STRICT`: Maximum content filtering (kp=1) - `MODERATE`: Balanced filtering (kp=-1, default if not specified) - `OFF`: No content filtering (kp=-2) - `DDG_REGION`: Default region/language code (optional, examples below) - `us-en`: United States (English) - `cn-zh`: China (Chinese) - `jp-ja`: Japan (Japanese) - `wt-wt`: No specific region - Leave empty for DuckDuckGo's default behavior 3. Restart Claude Desktop ### Running with Claude Code 1. Download [Claude Code](https://github.com/anthropics/claude-code) 2. Ensure [`uvenv`](https://github.com/robinvandernoord/uvenv) is installed and the `uvx` command is available 3. Add the MCP server: `claude mcp add ddg-search uvx duckduckgo-mcp-server` ### Running with SSE or Streamable HTTP The server supports alternative transports for use with other MCP clients: ```bash # SSE transport uvx duckduckgo-mcp-server --transport sse # Streamable HTTP transport uvx duckduckgo-mcp-server --transport streamable-http ``` The default transport is `stdio`, which is used by Claude Desktop and Claude Code. When running with `sse` or `streamable-http`, override the default bind address (`127.0.0.1:8000`) with the `--host` and `--port` flags: ```bash uvx duckduckgo-mcp-server --transport streamable-http --host 0.0.0.0 --port 7070 ``` ### Fetch Backend (bypassing bot detection) Some sites block the default `ht...

相关 MCP

Fastapi

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

★ 11874 Python sse 待补充
mcp Python sse

Chrome

Chrome MCP Server is a Chrome extension-based Model Context Protocol (MCP) server that exposes your Chrome browser funct...

★ 11693 TypeScript sse 有配置
mcp sse TypeScript

Unity

Unity MCP acts as a bridge, allowing AI assistants (like Claude, Cursor) to interact directly with your Unity Editor via...

★ 9890 C# sse 有配置
mcp sse C#

Go

A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and exte...

★ 8737 Go sse 待补充
mcp sse Go

Agent

Build effective agents using Model Context Protocol and simple workflow patterns

★ 8335 Python sse 待补充
mcp Python sse