ddg_mcp_server

ddg_mcp_server

A web-based search interface using DuckDuckGo's search API, built with Python and Gradio, providing real-time search results and optional AI-powered summarization.

Category
Visit Server

README

DuckDuckGo MCP Server

A web-based search interface using DuckDuckGo's search API, built with Python and Gradio.

Docker Setup

Prerequisites

  • Docker installed on your system
  • Git (optional, for cloning the repository)

Building the Docker Image

  1. Clone the repository (if you haven't already):
git clone <repository-url>
cd ddg_mcp_server
  1. Build the Docker image:
docker build -t ddg-mcp-server .

Running the Container

Run the container with port 7860 mapped to your host:

docker run -p 7860:7860 ddg-mcp-server

The application will be available at:

Troubleshooting

If you cannot connect to the application:

  1. Verify the container is running:
docker ps
  1. Check the container logs:
docker logs $(docker ps -q)
  1. Try stopping any existing containers and starting fresh:
docker stop $(docker ps -q)
docker run -p 7860:7860 ddg-mcp-server

Features

  • Web-based search interface using DuckDuckGo
  • Real-time search results with full content
  • Markdown-formatted output
  • Configurable number of results
  • AI-powered content summarization (see SUMMARIZATION.md for details)

Development

The application is built with:

  • Python 3.10
  • Gradio for the web interface
  • DuckDuckGo Search API
  • BeautifulSoup4 for web scraping
  • Markdownify for content conversion

API Configuration for Summarization

This application supports content summarization using OpenAI's API or any compatible API service. To enable this feature:

  1. Copy the .env.example file to .env:
cp .env.example .env
  1. Edit the .env file and set your API credentials:
OPENAI_API_URL=https://api.openai.com/v1
ACCESS_TOKEN=your_api_key_here

Notes:

  • OPENAI_API_URL defaults to the official OpenAI API server if not specified
  • ACCESS_TOKEN is required for the summarization feature to work
  • You can use any OpenAI-compatible API by changing the OPENAI_API_URL

Running with Docker and API Credentials

To run the Docker container with your API credentials:

docker run -p 7860:7860 \
  -e OPENAI_API_URL="https://api.openai.com/v1" \
  -e ACCESS_TOKEN="your_api_key_here" \
  ddg-mcp-server

Testing the API Connection

After configuring your API credentials, you can test if the connection works correctly:

python main.py --test-api

This will validate your API credentials without starting the full server.

Model Configuration

The AI model used for summarization can be configured in the config.py file:

# Default model to use for summarization
DEFAULT_MODEL = "gpt-4.1-turbo"

For detailed instructions on model configuration, see SUMMARIZATION.md.

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