HasData DuckDuckGo
MCP server by HasData Verified · hasdata.com
Gives AI assistants DuckDuckGo search results as structured JSON, with ranked organic results, paid ads in a separate array and region targeting. Built for developers and teams who need search data inside MCP clients.
Install HasData DuckDuckGo
Built from the published package, never by AI.
claude mcp add hasdata-duckduckgo -e HASDATA_API_KEY=YOUR_HASDATA_API_KEY -- npx -y @hasdata/duckduckgo-mcpRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"hasdata-duckduckgo": {
"env": {
"HASDATA_API_KEY": "YOUR_HASDATA_API_KEY"
},
"args": [
"-y",
"@hasdata/duckduckgo-mcp"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"hasdata-duckduckgo": {
"env": {
"HASDATA_API_KEY": "YOUR_HASDATA_API_KEY"
},
"args": [
"-y",
"@hasdata/duckduckgo-mcp"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"hasdata-duckduckgo": {
"env": {
"HASDATA_API_KEY": "YOUR_HASDATA_API_KEY"
},
"args": [
"-y",
"@hasdata/duckduckgo-mcp"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add hasdata-duckduckgo --env HASDATA_API_KEY=YOUR_HASDATA_API_KEY -- npx -y @hasdata/duckduckgo-mcp{
"mcpServers": {
"hasdata-duckduckgo": {
"env": {
"HASDATA_API_KEY": "YOUR_HASDATA_API_KEY"
},
"args": [
"-y",
"@hasdata/duckduckgo-mcp"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add hasdata-duckduckgo npx -y @hasdata/duckduckgo-mcpGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the hasdata-duckduckgo block.
About
HasData DuckDuckGo is a hosted MCP server that gives AI assistants DuckDuckGo search results as structured JSON. It returns ranked organic results with positions, paid ads in a separate array, and DuckDuckGo's own AI answer when one is shown. Users can target any of 37 regions.
The server runs remotely, so there is no local browser to install. An MCP client connects by URL with an x-api-key header. It is built for high volume and for parsing, such as rank tracking and comparing queries across countries. Each successful call costs 10 credits. Paging uses a cursor from the previous response, and each page is a separate call.
Written from the project's README and checked against it.
Tools it gives your assistant
hasdata_duckduckgo_serp_getSearchResultsReturns organic results, ads, the Search Assist AI answer and pagination for a DuckDuckGo query. 10 credits a call.Parameter value resourcesLists accepted values for region, country, language, safe search and device type. Reading them costs no credits.
What you need
- A HasData API key, free to create
- An MCP client that supports streamable HTTP with custom headers
- Node.js, if using the npm launcher with a stdio-only client
- Python with uvx, if using the PyPI launcher
| Setting | Needed | What it is |
|---|---|---|
HASDATA_Environment variable, secret | Required | HasData API key, created at app.hasdata.com. 1,000 free credits every month, no card. |
x-api-keyHeader, secret | Required | HasData API key, created at app.hasdata.com. 1,000 free credits every month, no card. |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Search DuckDuckGo for model context protocol and list the top ten results.
- Compare results for vpn review in the German and US regions.
- Search best crm software and list only the paid ads with advertiser domains.
Good to know
- Each successful tool call costs 10 credits. The free tier is 1,000 credits a month, about 100 searches.
- Send either q or nextPageToken. If both are sent, the cursor wins and q is ignored without a warning.
- Position counts within each page, so absolute rank must be calculated across pages.
- The ads and searchAssist keys can be absent, and organicResults can be missing too.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to HasData DuckDuckGo
All alternatives →Searches and discovers Agent Skills from the skills.sh registry, according to its listing description. The source file itself documents the Agent Skills format rather than this server.
Connects AI agents to Exa for web search, content fetching, and multi-step research. It is aimed at developers and AI assistant users who want web results and page content inside their assistant.
Apify MCP server gives AI agents web scraping, data extraction, and browser automation through thousands of ready-made Actors from Apify Store. It suits developers and teams who want agents to pull data from websites without installing a separate MCP server for each site.
Official MCP server for changedetection.io that connects AI assistants such as Claude.AI and OpenAI tools to a changedetection.io dashboard. It lets users ask about tracked web page changes, including price and back-in-stock alerts.
Brave Search MCP Server gives AI assistants web, local, place, image, video and news search through the Brave Search API. It also offers grounded Answers for developers and teams that want cited results.
Scrapling is a Python web scraping framework with an MCP server for AI agents. It offers stealth HTTP requests, browser rendering, Cloudflare Turnstile handling, and CSS selector extraction for developers and scrapers.
Compare with Agent Skills Search Server, Exa or Apify
HasData DuckDuckGo: common questions
Does it need an API key?
Yes. It needs a HasData API key sent in the x-api-key header. The source says the key is free to create and the free tier has 1,000 credits a month with no card required.
Where do paid ads appear in the results?
Paid placements come back in their own ads array, separate from organic results, so no filtering is needed to tell them apart.
How do I get the next page of results?
Send the nextPageToken from the pagination field of the previous response. Do not send q with it, because the cursor takes precedence.
How do I install HasData DuckDuckGo?
In Claude Code run claude mcp add hasdata-duckduckgo -e HASDATA_API_KEY=YOUR_HASDATA_API_KEY -- npx -y @hasdata/duckduckgo-mcp. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is HasData DuckDuckGo the official server?
HasData DuckDuckGo is published by hasdata.com from its verified domain in the official MCP Registry.
Is HasData DuckDuckGo free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is HasData DuckDuckGo safe to use?
It scores 66 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to HasData DuckDuckGo?
Similar MCP servers: Agent Skills Search Server, Exa, Apify, changedetection.io (official).
Does HasData DuckDuckGo work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
