Skip to content

T1ckbase/duckduckgo-mcp

Repository files navigation

DuckDuckGo MCP

NPM Version

A MCP server for DuckDuckGo HTML search.

Features

  • Search DuckDuckGo HTML results
  • Returns title, URL, and snippet for each result
  • Caches results
  • Retries on bot detection

Usage

bunx --silent duckduckgo-mcp@latest
OpenCode
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "duckduckgo": {
      "enabled": true,
      "type": "local",
      "command": ["bunx", "--silent", "duckduckgo-mcp@latest"]
    }
  }
}

Development

# Install dependencies
bun install --frozen-lockfile

# Type check
bun run typecheck

# Lint
bun run lint

# Format
bun run format

# Test
bun test

# Start MCP server
bun ./index.ts

# Build
bun run build