Duckduckgo MCP server
{
"mcpServers": {
"hasdata-duckduckgo": {
"command": "npx",
"args": [
"-y",
"@hasdata/duckduckgo-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}{
"mcpServers": {
"hasdata-duckduckgo": {
"command": "npx",
"args": [
"-y",
"@hasdata/duckduckgo-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}{
"mcpServers": {
"hasdata-duckduckgo": {
"command": "npx",
"args": [
"-y",
"@hasdata/duckduckgo-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}{
"servers": {
"hasdata-duckduckgo": {
"command": "npx",
"args": [
"-y",
"@hasdata/duckduckgo-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "${input:hasdata_api_key}",
"YOUR_KEY": "${input:your_key}"
}
}
},
"inputs": [
{
"id": "hasdata_api_key",
"type": "promptString",
"description": "Hasdata api key",
"password": true
},
{
"id": "your_key",
"type": "promptString",
"description": "Your key",
"password": true
}
]
}{
"mcpServers": {
"hasdata-duckduckgo": {
"command": "npx",
"args": [
"-y",
"@hasdata/duckduckgo-mcp@latest"
],
"env": {
"HASDATA_API_KEY": "<hasdata_api_key>",
"YOUR_KEY": "<your_key>"
}
}
}
}file .mcp.json (in your project root)file claude_desktop_config.jsonfile ~/.cursor/mcp.jsonfile .vscode/mcp.jsonfile ~/.codeium/windsurf/mcp_config.jsoninstall npx -y @hasdata/duckduckgo-mcpversion 1.0.6
What it does
This server provides DuckDuckGo search results in structured JSON format, including ranked organic results, ads, and DuckDuckGo's AI answer. It supports 37 regions and is designed for use with Claude, Cursor, Windsurf, and other MCP clients.
- Retrieve search results from specific regions and parse them programmatically for research or data analysis.
- Get ranked search results with ads separated into their own array for building search-integrated features.
- Access DuckDuckGo's AI answer along with organic results in a single structured response.
Tools this server exposes
| Tool | Does |
|---|---|
| duckduckgo_search | Search DuckDuckGo and return structured results including ranked organic results, ads, and AI answer from one of 37 supported regions. |
Before you enable it
An MCP server runs with whatever access you give it. Start with a development account rather than production, and check which tools the server exposes before you let an agent call them unattended.