# theHarvester MCP

> theHarvester MCP is an open-source MCP server for security. Docker-run MCP server for finding public emails and subdomains of a domain. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Linux, macOS, Windows, CLI
- **Website:** https://devkind.com.au/services
- **Repository:** https://github.com/devkindhq/theharvester-mcp
- **MCP Registry name:** io.github.devkindhq/theharvester-mcp
- **Categories:** security, web search and scraping
- **Listing updated:** 2026-11-14

## About

The server wraps the theHarvester OSINT tool. An agent asks for a harvest on a domain and the server fans out to public sources, returning structured JSON of emails, subdomains, hostnames, IPs and LinkedIn profiles. Harvests run asynchronously, so a result can be fetched later by its harvest ID.

Seven sources need no API key: crtsh, hackertarget, dnsdumpster, rapiddns, urlscan, otx and duckduckgo. Sources such as shodan, censys and virustotal need keys configured in theHarvester. Two environment variables set limits: THEHARVESTER_TIMEOUT, default 120 seconds per harvest, and THEHARVESTER_MAX_CONCURRENT, default 2.

It runs locally over stdio from a multi-arch Docker image, and the README positions it for lead generation and prospecting.

## Features

- **Domain harvesting:** Collects public emails, subdomains, hostnames and IPs.
- **Async results:** Fetch earlier harvests later by ID.
- **Free sources:** Seven sources work without any API key.
- **Source listing:** Shows which sources need keys.
- **Tunable limits:** Set per-harvest timeout and concurrency with environment variables.
- **Multi-arch image:** One Docker image for amd64 and arm64 hosts.

## Good for

- Finding public contacts for a prospect domain
- Mapping subdomains of a company's site
- Checking which sources are available before a scan
- Running recon on a domain from a coding assistant

## Install

### Claude Code (Terminal)

```sh
claude mcp add theharvester-mcp -- docker run -i --rm docker.io/devkind/theharvester-mcp:1.0.0
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "theharvester-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/devkind/theharvester-mcp:1.0.0"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "theharvester-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/devkind/theharvester-mcp:1.0.0"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "theharvester-mcp": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/devkind/theharvester-mcp:1.0.0"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "theharvester-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/devkind/theharvester-mcp:1.0.0"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "theharvester-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "docker.io/devkind/theharvester-mcp:1.0.0"
      ]
    }
  }
}
```

## Tools

- `harvest`: Run an OSINT harvest on a domain with free, all or chosen sources
- `get_harvest_results`: Fetch a previous harvest by ID
- `list_active_harvests`: Show currently running harvests
- `list_sources`: List sources and which need API keys

## FAQ

### Do I need API keys?

Not for the seven default free sources.

### How do I run it?

Pull the Docker image and register it as a stdio command in your MCP client.

### What are the defaults for timeout and concurrency?

120 seconds and 2 concurrent harvests.

### Can I retrieve an earlier run?

Yes, with get_harvest_results and its ID.

### Is theHarvester MCP free?

Yes. theHarvester MCP is open source, so you can use and self-host it for free.

### How do I add theHarvester MCP to Claude Code?

Run this command in your terminal: claude mcp add theharvester-mcp -- docker run -i --rm docker.io/devkind/theharvester-mcp:1.0.0

### What are the best alternatives to theHarvester MCP?

The closest alternatives to theHarvester MCP are REA, Scrapling MCP Server, Firecrawl MCP Server, SearXNG Search and Agent Roast.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Firecrawl MCP Server](https://ai-powered.com/mcp/firecrawl-mcp-server): Firecrawl MCP Server is a freemium MCP server for web search and scraping.
- [SearXNG Search](https://ai-powered.com/mcp/searxng-search): SearXNG Search is an open-source MCP server for web search and scraping.
- [Agent Roast](https://ai-powered.com/mcp/agent-roast): Agent Roast is an open-source MCP server for developer tools.
- [Midplane](https://ai-powered.com/mcp/midplane): Midplane is an open-source MCP server for databases.
- [Leash](https://ai-powered.com/mcp/leash): Leash is a free MCP server for security.
- [NeuralVerge](https://ai-powered.com/mcp/neuralverge): NeuralVerge is an MCP server for web search and scraping.

---
Source: https://ai-powered.com/mcp/theharvester-mcp
