Skip to main content
Glama
Clearfront MCP Server

Clearfront MCP Server

Python License MIT MCP Version

clearfront.sh · Disclaimer

  • 30 modular tools, email, username (sherlock + WhatsMyName), broad username discovery across 3,400+ sites (maigret), search-based footprint discovery, IP, IP self-exposure report, domain, WHOIS, breach, Gravatar profile, EmailRep reputation, phone, paste, EXIF/GPS metadata, Shodan, VirusTotal, Censys, IP2Location, AbuseIPDB, GitHub (profile + public code/secret exposure), DNS, subdomain discovery via certificate transparency (crt.sh), historical URL recovery via the Wayback Machine (Internet Archive), mass-scan visibility (GreyNoise Community), infostealer-exposure check (Hudson Rock, free tier, no plaintext credentials), dork generation, live dork search, URL scraping, BTC/ETH address lookup, and passive domain recon (theHarvester)

  • MCP server built in, expose all 30 tools natively to Claude Code, Claude Desktop, and any MCP-compatible client

  • Three AI backends, Anthropic Claude (default), local Ollama, or any OpenAI-compatible endpoint; tool results come from real subprocess calls, never hallucinated

  • Fully async, parallel tool execution via asyncio.gather() with hard subprocess timeouts

  • MIT licensed, no embedded LLM; bring your own API key or run fully offline


Legal Disclaimer: Clearfront is intended for legal and authorized use only. Users are solely responsible for ensuring their use complies with all applicable laws and regulations. The authors accept no liability for misuse. See DISCLAIMER.md.

What is Clearfront?

Clearfront is an AI agent for Open Source Intelligence with five interfaces: an interactive terminal REPL, a direct CLI, a browser-based web console, an MCP server exposable to Claude Code, Claude Desktop or any MCP-compatible client, and an agent skill for any client following the Agent Skills standard. The AI layer uses Anthropic's native tool use API (or a local Ollama model, or any OpenAI-compatible endpoint): the model issues hard stops when it needs a tool, your code executes the real binary, the actual output goes back, hallucination in tool results is structurally impossible.

Related MCP server: osint-mcp-server

Installation

pip install clearfront

Or from source, if you want to modify it:

git clone https://github.com/scottmartinanderson/clearfront
cd clearfront
pip install -e .

External binaries (must be in PATH):

Binary

Purpose

Install

holehe

Email account enumeration

pip install holehe

sherlock

Username enumeration (300+ platforms)

pip install sherlock-project

sublist3r

Subdomain enumeration

pip install sublist3r

phoneinfoga

Phone number intelligence

Download binary

theHarvester

Passive domain recon (emails/subdomains)

pip install git+https://github.com/laramies/theHarvester.git

If a binary is absent, the corresponding tool returns a descriptive error string. All other tools remain operational.

Quick Start

# Interactive AI REPL (default)
clearfront

# Web interface
clearfront web

# Direct tool (no AI)
clearfront email target@example.com

Configuration

Store all keys in a .env file at the project root (copy .env.example). python-dotenv loads it automatically at startup.

Variable

Tool

Required

Purpose

ANTHROPIC_API_KEY

AI agent

Yes (or use Ollama / OpenAI)

Anthropic API key

OPENAI_BASE_URL

AI agent

Optional

Base URL of an OpenAI-compatible endpoint (e.g. http://localhost:4000/v1). When set and ANTHROPIC_API_KEY is absent, it is used as the AI backend (takes precedence over Ollama). The model must support tool/function calling.

OPENAI_API_KEY

AI agent

Optional

API key for the OpenAI-compatible endpoint (local servers may ignore it)

OPENAI_MODEL

AI agent

Optional

Model name to request from the endpoint (default: gpt-4o-mini)

HIBP_API_KEY

search_breach

Optional

HaveIBeenPwned v3, get one

IPINFO_TOKEN

search_ip

Optional

ipinfo.io higher rate limits

SHODAN_API_KEY

search_shodan

Optional

Shodan API, get one

VIRUSTOTAL_API_KEY

search_virustotal

Optional

VirusTotal API v3, get one

IP2LOCATION_API_KEY

search_ip2location

Optional

IP2Location.io enhanced IP intelligence, get one

CENSYS_PAT + CENSYS_ORG_ID

search_censys

Optional

Censys Platform API: Personal Access Token + Organization ID, get one

ABUSEIPDB_API_KEY

search_abuseipdb

Optional

AbuseIPDB v2, get one

GITHUB_TOKEN

search_github

Optional

GitHub API, raises rate limit from 60 to 5000 req/h, get one

SERPER_API_KEY

search_dorks_live, search_footprint

Optional

Serper.dev Google SERP API, the preferred SERP backend (~$1/1k, 2,500 free), get one.

BRIGHTDATA_API_KEY

search_dorks_live, scrape_url

Optional

Bright Data API key, get one (free tier: 5,000 req/month).

BRIGHTDATA_SERP_ZONE

search_dorks_live

Optional

Your Bright Data SERP API zone name (e.g. serp_api1).

BRIGHTDATA_UNLOCKER_ZONE

scrape_url

Optional

Your Bright Data Web Unlocker zone name (e.g. web_unlocker1).

The Bright Data link above is a referral link; signing up through it supports Clearfront at no extra cost to you.

Optional Python packages:

Package

Purpose

Install

ollama

Local LLM backend (no API key)

pip install ollama (also install the Ollama runtime)

openai

OpenAI-compatible backend for the REPL/CLI (--provider openai)

pip install "clearfront[openai]"

shodan

Shodan API client

pip install shodan

reportlab

PDF report export

pip install reportlab

censys

Censys API client

pip install censys

Tools

Tool

Powered by

What it investigates

search_email

holehe

Social accounts linked to an email address

search_username

sherlock

Username presence across 300+ platforms

search_breach

HaveIBeenPwned v3 API

Data breach exposure

search_whois

python-whois

Domain registrant and DNS info

search_ip

ipinfo.io

Geolocation, ASN, hostname

search_domain

sublist3r

Subdomain enumeration

search_crt

crt.sh

Subdomains from certificate transparency (keyless, passive)

search_wayback

Internet Archive

Historical/deleted URLs archived under a domain (keyless, passive)

search_greynoise

GreyNoise Community

Mass-scanner noise vs. targeted actor for an IP (free, 50/week)

generate_dorks

built-in

12 targeted Google dork URLs (no network calls)

search_paste

psbdmp.ws

Pastebin dump mentions

search_phone

phoneinfoga

Carrier, country, line type

search_shodan

Shodan API

Open ports, banners, CVEs

search_virustotal

VirusTotal API v3

Verdict from 70+ antivirus engines

search_ip2location

IP2Location.io API

Enhanced IP intel: VPN/Proxy/Tor/datacenter flags

search_censys

Censys Search API

Internet-facing infrastructure, certificates

search_abuseipdb

AbuseIPDB v2 API

IP abuse reputation: confidence score, reports, country, ISP

search_github

GitHub REST API

Profile, repos, commit-discovered emails, username/keyword search

search_dns

dnspython (built-in)

A/AAAA/MX/NS/TXT/CNAME/SOA records; SPF, DMARC, DKIM analysis

search_dorks_live

Bright Data SERP API

Live Google search results for dork queries (title, URL, snippet)

scrape_url

Bright Data Web Unlocker

Fetch any URL bypassing Cloudflare/CAPTCHA, returns clean Markdown

search_maigret

maigret

Username presence across 3,400+ sites

search_footprint

SERP (Serper / Bright Data / DuckDuckGo)

Search-based footprint discovery for a name or handle

search_gravatar

Gravatar API

Public Gravatar profile for an email: avatar, display name, linked accounts

search_emailrep

EmailRep.io

Email reputation and footprint summary

search_hudsonrock

Hudson Rock Cavalier (free)

Infostealer-exposure check for an email or username (no plaintext credentials)

search_exif

exiftool

EXIF / IPTC / XMP metadata and embedded GPS from a local file

search_crypto

public chain APIs

Bitcoin / Ethereum address summary: balance, transaction count

search_harvester

theHarvester

Passive domain recon: emails, subdomains, hosts

search_exposure

built-in (composite)

Self-exposure report for an IP across the infrastructure tools

Interfaces

Interactive REPL

Run clearfront with no arguments to start the AI-powered REPL. Type a target (email, username, domain, IP, name) or a question; the agent decides which tools to run, chains them on findings, and compiles a report.

REPL commands: <target>, clear, save, tools, config, history, help, exit / Ctrl-D.

All sessions are auto-saved to ~/.clearfront/history/. Browse with clearfront history.

Web UI

pip install "clearfront[web]"
clearfront web
# Opens http://localhost:8080 automatically

Browser-based AI chat with streaming tool output, inline result cards, and a light/dark theme toggle. Supports fully local inference via Ollama or any OpenAI-compatible endpoint (no Anthropic API key required when using a local backend).

The console runs entirely locally and binds to 127.0.0.1 by default. Choose your backend and paste your own key in Settings; your keys and the targets you investigate never touch our servers. Screenshots are in media/.

MCP Server

Expose all 30 tools to any MCP-compatible AI client.

Claude Code:

claude mcp add clearfront python /absolute/path/to/clearfront/mcp_server.py
claude mcp list

Claude Desktop, add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "clearfront": {
      "command": "python",
      "args": ["/absolute/path/to/clearfront/mcp_server.py"]
    }
  }
}

Agent Skill

skills/clearfront-osint teaches an agent how to drive Clearfront: which approach fits a given request, the direct subcommands, how to read the confidence ratings, and the authorized-use rules. It follows the Agent Skills open standard, so it works in Claude Code, Cursor, Codex, Copilot, VS Code, Gemini, Windsurf, Zed and the other skills-compatible clients.

npx skills add scottmartinanderson/clearfront

Install Clearfront itself as well (pip install clearfront); the skill is the instructions, not the tool. Use the skill when you want the agent to decide how to run a sweep, and the MCP server above when you want it calling the 30 tools directly.

Docker

docker compose up --build
docker compose run --rm clearfront email target@example.com --json

Set ANTHROPIC_API_KEY (and optionally HIBP_API_KEY, IPINFO_TOKEN) in a .env file or export them before running. Reports persist to ./reports/ via a volume mount.

CLI Reference

Flag / Subcommand

Description

clearfront

Interactive AI REPL (default)

clearfront web [--port N] [--no-browser]

Launch browser UI

clearfront email ADDRESS [-t N]

Direct email scan

clearfront username HANDLE [-t N]

Direct username scan

clearfront shodan QUERY [-t N]

Shodan lookup

clearfront virustotal TARGET [-t N]

VirusTotal lookup

clearfront censys TARGET [-t N]

Censys lookup

clearfront ip2location IP [-t N]

IP2Location lookup

clearfront abuseipdb IP [-t N]

AbuseIPDB reputation check

clearfront github QUERY [-t N]

GitHub profile/repo/email discovery

clearfront dns DOMAIN [-t N]

DNS records + email security analysis

clearfront multi TARGETS

Parallel multi-target investigation (max 10)

clearfront graph TARGET [-o PATH] [--format graphml|json|mermaid|all]

Auto-pivot and export the entity correlation graph (GraphML/JSON/Mermaid)

clearfront history [--all] [open N] [clear]

View/manage REPL session history

-v, --verbose

Enable debug logging to stderr

-t, --timeout N

Override subprocess timeout (seconds)

--api-key KEY

Anthropic API key (overrides env var)

--parallel

Run complementary tools concurrently

--json

Output results as structured JSON

-o, --output FILE

Write results to FILE instead of stdout (raw; combine with --json for a JSON file)

--provider {anthropic,ollama,openai}

AI provider (default: anthropic)

--ollama-model MODEL

Ollama model name (default: llama3.2)

--ollama-host URL

Ollama server URL (default: http://localhost:11434)

--openai-base-url URL

OpenAI-compatible endpoint base URL (env: OPENAI_BASE_URL)

--openai-model MODEL

Model to request from the endpoint (env: OPENAI_MODEL)

--openai-api-key KEY

API key for the endpoint (env: OPENAI_API_KEY)

--no-pdf

Disable automatic PDF generation

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md for the development workflow and coding conventions. Please read DISCLAIMER.md before contributing.

License

Clearfront is open source under the MIT License.

The bundled username dataset clearfront/tools/data/wmn-data-unique.json is a filtered adaptation of the WhatsMyName project by Micah Hoffman, used under the CC BY-SA 4.0 license; that file (and adaptations of it) remains under CC BY-SA 4.0. See clearfront/tools/data/NOTICE.


For authorized security research only. See DISCLAIMER.md.

Available Tools

31 tools
generate_dorksA

Generate targeted Google dork URLs for any target (name, email, username, domain). Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: target (required), json_output.

investigate_multiA

Investigate multiple targets in parallel using the full OSINT tool chain. Each target gets its own report file. A summary report is also generated. Maximum 10 targets. Requires ANTHROPIC_API_KEY env var. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: targets (required).

scrape_urlA

Fetch any public URL through the Bright Data Web Unlocker API, bypassing Cloudflare, CAPTCHA, and bot-protection. Returns the page as clean Markdown. Requires BRIGHTDATA_API_KEY and BRIGHTDATA_UNLOCKER_ZONE env vars. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: url (required), json_output.

search_abuseipdbA

Check an IP address against the AbuseIPDB v2 API for abuse reputation. Returns abuse confidence score (0–100%), total reports, country, ISP, domain, and last reported timestamp. Shows a warning when score exceeds 50%. Requires ABUSEIPDB_API_KEY env var. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: ip (required), json_output.

search_breachA

Check if an email appears in data breaches via HaveIBeenPwned. Requires HIBP_API_KEY env var. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: email (required), json_output.

search_censysA

Search Censys for internet-facing infrastructure data. IP address → open ports, services, ASN, country. Domain → certificate history, SANs, issuer, first/last seen. Requires CENSYS_PAT (free plan = IP lookups; domain search is paid). Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: target (required), json_output.

search_crtA

Enumerate subdomains from certificate transparency logs via crt.sh. Keyless and purely passive (public CA logs), surfaces internal/staging hosts that never resolve publicly. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: domain (required), json_output.

search_cryptoA

Validate a Bitcoin or Ethereum address and return a keyless on-chain summary (balance, transactions, total received). Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: address (required), json_output.

search_dnsA

Comprehensive DNS record enumeration (A, AAAA, MX, NS, TXT, CNAME, SOA). Highlights email security misconfigurations: missing SPF, weak SPF policy, missing or unenforced DMARC, and absent DKIM across common selectors. No external API or credentials required. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: domain (required), json_output.

search_domainB

Enumerate subdomains of a target domain using sublist3r. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: domain (required), json_output.

search_dorks_liveA

Execute Google dork queries for a target via the Bright Data SERP API, returning live structured results (title, URL, snippet). Runs up to 5 dorks by default, each is a billable API call. Requires BRIGHTDATA_API_KEY and BRIGHTDATA_SERP_ZONE env vars. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: target (required), json_output.

search_emailA

Enumerate accounts linked to an email using holehe. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: email (required), json_output.

search_emailrepA

Email reputation and footprint summary via EmailRep.io (profiles seen, breach/abuse flags). Requires EMAILREP_API_KEY. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: email (required), json_output.

search_exifA

Extract embedded metadata (EXIF/IPTC/XMP) from a local file via exiftool, camera make/model, software, timestamps, author, and GPS coordinates. Flags embedded GPS location. Input is a local file path. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: file (required), json_output.

search_exposureA

Risk-ranked IP exposure report (geolocation, ASN, reverse-DNS, DNS blocklists, VPN/Tor flags). Omit 'ip' (or pass 'me') to check the caller's own public IP. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: ip, json_output.

search_footprintA

Find a target's real public profiles by searching the web (entity-type-aware: email, username, domain, phone, full name). Returns structured results and Entity Correlation Graph nodes/edges. Works free via DuckDuckGo; uses Bright Data SERP (Google) automatically if configured. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: target (required), json_output, max_queries.

search_githubA

Search GitHub for a username, email, or keyword. For exact username matches: returns full profile, recent repos, and emails discovered from commit history. For other queries: top 5 matching accounts. With a GITHUB_TOKEN it also searches public code for secrets/keys tied to the target, reported as exposure (location and type only, never the value). Optional GITHUB_TOKEN env var raises rate limit from 60 to 5000 req/h. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: query (required), json_output.

search_gravatarA

Look up an email's public Gravatar profile: avatar, display name, bio, location, and linked/verified accounts. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: email (required), json_output.

search_greynoiseA

Check an IP against the GreyNoise Community API: internet background noise (mass scanner) vs. potentially targeted actor. Returns classification, noise/RIOT flags, org, and last-seen. Community tier is 50 lookups/week, so use selectively. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: ip (required), json_output.

search_harvesterA

Passive organisation/domain recon via theHarvester: emails, people, and subdomains from public sources (passive only, no active probing). Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: domain (required), json_output.

search_hudsonrockA

Check whether an email or username appears in Hudson Rock's free Cavalier infostealer index (malware-stolen credentials). Reports exposure yes/no plus infection metadata (count, dates, OS, antivirus, malware file, affected-service counts). AUTHORIZED-USE ONLY: for your own or an authorized identifier's exposure so credentials can be rotated. Uses only the free masked tier; never returns passwords or login URLs. Keyless. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: target (required), json_output.

search_ipA

Retrieve geolocation and ASN data for an IP address via ipinfo.io. Omit 'ip' (or pass 'me') to auto-detect the caller's own public IP. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: ip, json_output.

search_ip2locationA

Enhanced IP intelligence using IP2Location Security Plan. Returns geolocation, ISP, ASN, and detects VPN, proxy, Tor exit nodes, and datacenter hosting. Sponsored integration. Requires IP2LOCATION_API_KEY env var. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: ip (required), json_output.

search_maigretA

Broad username/identity discovery across 3,400+ sites via maigret (also extracts profile details). Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: username (required), json_output.

search_pasteA

Search public paste sites for an email or username (HIBP paste index + search-engine dorking). Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: query (required), json_output.

search_phoneA

Gather carrier and geolocation data for a phone number using phoneinfoga. Use E.164 format. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: phone (required), json_output.

search_shodanA

Query Shodan for host intelligence or banner search. IP address → host lookup (open ports, org, CVEs). Any other string → keyword/service search. Requires SHODAN_API_KEY env var. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: query (required), json_output.

search_usernameA

Enumerate and verify platforms where a username is registered, using sherlock plus a WhatsMyName subset of modern/niche sites. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: username (required), json_output.

search_virustotalA

Check IP, domain, URL, or file hash against VirusTotal's 70+ antivirus engines and threat intelligence. Auto-detects input type. Requires VIRUSTOTAL_API_KEY env var. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: target (required), json_output.

search_waybackA

List URLs archived under a domain in the Internet Archive (Wayback Machine) via the keyless CDX API. Passive; recovers deleted, forgotten, or historical pages. Pairs with scrape_url to fetch a recovered page. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: target (required), json_output.

search_whoisA

Retrieve WHOIS registration data for a domain. Authorized use only: your own assets or a target you are authorized to assess. Passive, public-source collection.

Inputs: domain (required), json_output.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 31 tools

    Disambiguation4/5

    Most tools target distinct data sources (email, username, domain, IP, etc.), but there is some overlap: e.g., search_email and search_emailrep both address email reputation; search_username and search_maigret both enumerate usernames; several IP-focused tools have overlapping purposes. Descriptions help differentiate, but ambiguity remains.

    Naming Consistency4/5

    Nearly all tools use the consistent 'search_<noun>' pattern, making the set predictable. However, there are a few outliers: 'generate_dorks', 'scrape_url', and 'investigate_multi' break the pattern, reducing consistency slightly.

    Tool Count3/5

    With 31 tools, the server is on the high side of appropriate for an OSINT toolkit. While each tool serves a specific data source, the count feels slightly bloated, especially considering overlapping IP and email tools. Fewer, more consolidated tools would improve coherence.

    Completeness4/5

    The tool set covers a wide range of OSINT areas: email, username, domain, IP, phone, crypto, breaches, DNS, file metadata, and web scraping. Minor gaps exist (e.g., no direct social media profile scraping), but overall it is comprehensive for passive reconnaissance.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Exposes popular OSINT and reconnaissance tools like Sherlock, SpiderFoot, and Holehe through MCP and HTTP APIs for AI assistants. Runs security research tools in sandboxed environments and returns normalized JSON results for investigation and analysis.
      1
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides AI agents with 37 OSINT tools and 12 data sources to perform unified reconnaissance, domain analysis, and attack surface mapping. It enables agents to query, correlate, and reason across platforms like Shodan, VirusTotal, and Censys in parallel.
      37
      379 npm
      65
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to run classic OSINT tools locally without API keys, including username, email, domain, phone, and metadata searches.
      16
      118 PyPI
      3
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to investigate domains, emails, IPs, hashes, URLs, onion addresses, Bitcoin addresses and CVEs across 68 tools spanning 19 threat-intelligence and dark-web source categories, returning bounded evidence with provenance, coverage and explicit skipped, errored or inconclusive checks. It also ships a local investigation dashboard for running combined lookups, reviewing source readiness and downloading JSON reports.
      68
      3
      MIT