# HasData DuckDuckGo [Health: Active]

**Category:** 🔎 Search & Data Extraction  
**Repository:** https://github.com/HasData/duckduckgo-mcp  
**GitHub Stars:** 6  
**npm Downloads (last month):** 338  
**Views:** 5  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/hasdata-duckduckgo

## Description
DuckDuckGo search as JSON. Ranked results, ads in their own array, 37 regions.

## Tools
Capabilities this server exposes over MCP:

- **hasdata_duckduckgo_serp_getSearchResults** — Get DuckDuckGo Search Results

Fetches DuckDuckGo SERPs for a query with region targeting (kl, or cc+setLang), safesearch (off/moderate/strict), device type, and token-based pagination. Returns organic results (title, url, snippet, displayed url, position, date, sitelinks, video metadata), ads, and the Search Assist AI answer. Use for SEO rank tracking, SERP feature monitoring, DuckDuckGo-specific visibility audits, and training/eval data for search agents.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "hasdata-duckduckgo": {
    "command": "npx",
    "args": ["-y","@hasdata/duckduckgo-mcp"],
    "env": {
      "HASDATA_API_KEY": ""
    }
  }
}
```

**Requires environment variables:** `HASDATA_API_KEY` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What HasData DuckDuckGo does

HasData DuckDuckGo exposes DuckDuckGo search through the Model Context Protocol. The service is hosted by HasData and returns search-page data in structured JSON rather than requiring an agent to interpret a rendered browser page.

The response can contain organic results with titles, URLs, snippets, displayed URLs, positions, dates, sitelinks, and video metadata. Paid placements are returned separately from organic results, and the response can also include DuckDuckGo's Search Assist AI answer.

The server is suited to applications that need search results as data: comparing the same query across regions, examining ranking positions, identifying advertisers, collecting domains across pages, or presenting an AI answer alongside the results used to produce it.

## How it works

The hosted endpoint uses streamable HTTP:

```text
https://mcp.hasdata.com/mcp?apis=duckduckgo
```

Requests authenticate with the `x-api-key` header. Each successful search call costs 10 credits. HasData advertises 1,000 free credits per month, equivalent to 100 searches, with no payment card required for that free allocation.

The server provides one MCP tool, `hasdata_duckduckgo_serp_getSearchResults`. Supply a query with `q`, or provide a `nextPageToken` returned by an earlier response to retrieve another page. Pagination is charged as a separate call. Region is a request parameter, allowing the same search to be run against different markets without configuring a proxy.

Raw MCP responses contain a text block whose contents are JSON. For direct endpoint clients, the parsed search payload is under the `json` property; chat clients generally unwrap this structure automatically.

## Setup and configuration

Create a HasData API key and configure an MCP client that supports streamable HTTP and custom headers. Add the endpoint and send the key as `x-api-key`.

Claude Code, Cursor, Windsurf, Cline, VS Code, Codex CLI, and Gemini CLI can use the remote endpoint with their respective MCP configuration formats. Claude Desktop can add the endpoint as a custom connector, or use a local stdio launcher instead. The npm package `@hasdata/duckduckgo-mcp` and the PyPI package `hasdata-duckduckgo-mcp` provide launcher options for stdio-only clients; both read `HASDATA_API_KEY` from the environment.

A remote setup does not require a browser package or a locally maintained server process. Clients with OAuth support can connect using the endpoint and sign in instead of placing an API key in a configuration file.

## Tools and capabilities

### `hasdata_duckduckgo_serp_getSearchResults`

Use the search tool to fetch and parse a DuckDuckGo results page. It supports:

- Query searches through the `q` parameter.
- Follow-up pages through `nextPageToken` from the previous response.
- Region-targeted searches across 37 markets.
- Organic result fields including ranking position, title, URL, snippet, displayed URL, date, sitelinks, and video metadata.
- A separate collection of advertisements.
- DuckDuckGo's Search Assist AI answer.

When both `q` and `nextPageToken` are supplied, the cursor takes precedence and the accompanying query is ignored. A new call is required for every additional page.

## Limitations and notes

The server has one search tool rather than separate tools for organic results, ads, and AI answers. All three types of data are returned by the same search operation when available.

Searches and page walks consume credits per call. For example, retrieving three pages requires three calls and costs 30 credits. Results can change as the web changes, so captured examples or prior responses should not be treated as permanent snapshots.

A HasData API key is required for the hosted endpoint. Clients without streamable HTTP support can use the Node.js or Python stdio launcher packages instead.

_Full upstream README: https://allmcps.com/mcp/hasdata-duckduckgo/readme_

