Maltego OSINT for AI agents.
Run transforms and Machines, build and analyse link graphs, and hand the result back to Maltego as a native
.mtgx, from Claude, Gemini, Codex, Copilot, Cursor or any MCP client.
mcp-maltego is a high-performance Model Context Protocol server that turns any AI agent into an expert Maltego operator. It runs real OSINT transforms, chains them into autonomous reconnaissance Machines, maintains an in-memory or graph database investigation state with full provenance, recommends next-best pivots, synchronizes in real time with the local Web Control Center (maltegoctl dashboard), and exchanges graphs seamlessly with Maltego Desktop via native .mtgx and tamper-evident .mcpcase bundles.
Tip
Zero-Cost & No Commercial Maltego License Required: You do not need a paid Maltego Pro/XL plan or commercial API keys to start. mcp-maltego runs completely free out of the box, generating native .mtgx graphs compatible with the free Maltego Community Edition (CE) or Basic tier.
mcp-maltego is built in three decoupled layers so you can start instantly without cloud infrastructure or configuration overhead:
| Layer | Component | Description & Cost |
|---|---|---|
| Layer 0: Zero-Cost Core | mcp-maltego CLI & Server |
Instant execution (npx mcp-maltego). Generates and parses native .mtgx files for Maltego Community Edition (CE) and tamper-evident SHA-256 .mcpcase packages. Includes 51 zero-key built-in transforms (DoH, RDAP/WHOIS, crt.sh, CertSpotter, Anubis-DB, Wayback Machine CDX & snapshots, Arquivo.pt, Common Crawl, BOE/BORME, GLEIF LEI, ASN Cymru, RIPEstat, CISA KEV, URLhaus, AlienVault OTX, URLscan, Hudson Rock, GitHub leaks/commits, Keybase, DeepDarkCTI, Mempool.space Bitcoin UTXO, CIOH wallet clustering, OFAC SDN crypto sanctions, VASP touchpoints) and dynamic community plugins (@custom_transform). 100% Free & Local. |
| Layer 1: Investigation Memory | Graph Memory & Copilot | Local deterministic case storage (~/.maltego-mcp/graph.json), entity fusion, step auditing, 16 autonomous multi-round Machines, plaintext/vague prompt parsing in osint_investigate, 21-typology Multidimensional Pericial Profiling, and P0βP9 ACH / ICD 203 analytical synthesis. |
| Layer 2: Advanced Platform | Web Console & CTI Vault | Interactive Web Dashboard (maltegoctl dashboard) with real-time cross-process (stdio β SSE) synchronization from VS Code / CLI agents, Web Worker acceleration and 4 spatial layouts (Organic, Hierarchical, Radial, Categorized), multi-dimensional filtering (edges, entities, continuous confidence, hops & live search), Impeccable vector rendering (canvas icons, confidence rings, BΓ©zier curves), Universal Table Suite (compact/normal/expanded density toggles, pagination, expandable accordion detail cards), P0βP9 No-Zoom Reconnaissance & ACH/ICD-203 Console, 21-typology Pericial Profiling Radar, Mandatory Mullvad Double-Attestation Egress Ring & PEP 578 Audit Guard, PBKDF2-HMAC-SHA256 dashboard auth, Blockchain AML Ledger with mixer detection, strict multi-case isolation, Categorized Accounts Vault, burner inboxes (Mail.tm + OTP extractor), Tor/Dark Web CTI feeds, optional Rust native core (maltego_core_rs), and optional Azure Cosmos DB Gremlin clustering. |
- 20 tools, portable to every model. Flat JSON schemas validated against Gemini's strict function-calling
subset; variants grouped with an
actionparameter so agents are not flooded with tools. - Plaintext & vague prompt orchestration + Real-Time Web Dashboard sync. Send natural-language or vague requests from VS Code (Claude Code, GitHub Copilot, Cursor) or CLI agents (
"investigate example.com and give me a full report").osint_investigateautomatically extracts the seed, runs non-intrusive active & passive transforms with anti-burst concurrency (CHAIN_CONCURRENCY = 3), streams every discovery live via~/.maltego-mcp/events.jsonland Server-Sent Events (/api/events) tomaltegoctl dashboard, populates all 10 phases of the P0βP9 No-Zoom Dossier and 21-typology Pericial Profiles, auto-exportsreport_htmland.mcpcase, and returns a complete Executive Pericial Report inline. - 63 real transforms out of the box. 51 without API keys (DNS over HTTPS, RDAP/WHOIS, CISA KEV active exploitation, Abuse.ch URLhaus malware, Certificate Transparency via crt.sh and CertSpotter, Anubis-DB pDNS, HackerTarget, urlscan.io, Shodan InternetDB, Team Cymru & RIPEstat BGP ASN/netblocks, Wayback Machine CDX & snapshot extraction, Arquivo.pt, Common Crawl CDX, BOE/BORME & GLEIF LEI corporate registries, GitHub domain leaks & commit emails, Keybase cryptographic identity proofs, Hudson Rock infostealer telemetry, Gravatar, AlienVault OTX threat pulses, multi-network social profile lookup, Dark Web CTI & passive
.onionpivot, Mempool.space Bitcoin UTXO transactions & inputs/outputs, Common-Input Ownership Heuristic (CIOH) clustering, OFAC SDN crypto sanctions check, VASP/Exchange touchpoints, parsing) and 12 provider transforms that switch on when you set a key: VirusTotal, Shodan, SecurityTrails, Censys, Hunter.io, Have I Been Pwned, GreyNoise and Tatum. - Non-intrusive Active & Passive Execution + Mandatory Mullvad Egress Ring. Active transforms (live DoH DNS, VirusTotal GET lookups, passive
.onionheader inspection) and passive transforms are enabled out of the box while blocking intrusive operations (no port scanning, no active crawling of target servers, no VirusTotal file upload or/analysePOST). All outbound HTTP passes through a single gateway (egress.py) guarded by a PEP 578 runtime audit hook and an optional mandatory Mullvad SOCKS5 (socks5h://10.64.0.1:1080) double-attestation ring. - 21-Typology Multidimensional Pericial Profiling & P0βP9 ACH / ICD 203 Synthesis.
osint_manage_entity(action="profile")evaluates 21 forensic typologies across a 6-pillar radar (investor,company_due_diligence,device,geographic,criminal,victimology,cyberbullying,political,psychographic,clinical, etc.) with objective asset validity (OBSERVADO_RECIENTE,HISTORICO,MENCIONADO_SIN_FECHA), paired with structured Analysis of Competing Hypotheses (ACH) and ICD 203 probability scales. - Community Extensibility Engine (
@custom_transform). Drop custom Python transform files in~/.maltego-mcp/plugins/or./plugins/to immediately expose custom OSINT logic to LLMs without touching core code. - Your Maltego transforms too. Speaks the Maltego TRX/iTDS XML protocol, so an agent can run the same transforms you use in Maltego.
- 16 Predefined Machines.
DomainRecon,InfrastructureRecon,EmailRecon,CompanyFootprint,PersonalFootprint,PersonaFootprint,CryptoFlowRecon,URLRecon,ThreatSweep,ASNToNetblocks,DarkWebFootprint, plus strict-passive counterparts (PassiveDomainRecon,PassiveInfrastructureRecon,PassiveEmailRecon,PassiveURLRecon,PassiveCompanyFootprint) and your own in TOML, with recursive rounds and cost budgets. - Cryptoforensics & Blockchain AML Traceability. Native ontology for cryptocurrency entities (
maltego.CryptoCluster,maltego.VASPExchange,maltego.MixerContract,maltego.DeFiBridge), multi-hop transaction flow tracing, peeling chain and tumbler heuristics, OFAC SDN sanctions screening, and VASP deposit touchpoint detection. - Multi-Case Isolation, Atomic Purging &
.mcpcaseForensic Bundles. Synchronized global project selector, per-module focus selectors, atomic case deletion (DELETE /api/cases/{case_id}), and tamper-evident SHA-256.mcpcasearchival. - HUMINT, Breach Router & Multi-Agent Swarms. Native
humint.*entity ontology (humint.Alias,humint.Organization,humint.LocationHistory,humint.PsychologicalTrait), cross-platform pseudonym correlation, subject behavioral profiling ([HipΓ³tesis]), chronological anomaly detection, weighted relationships, a local SQLite- k-Anonymity/XposedOrNot breach router (
BreachSemanticPivot), and multi-agent casefork/delegate/mergewith optimistic locking.
- k-Anonymity/XposedOrNot breach router (
- Optional Rust Native Core (
maltego_core_rs). Zero-dependency Python fallback with bit-exact parity alongside an optional PyO3/Maturin Rust extension (uv run python scripts/build_native.py) that releases the GIL for Fruchterman-Reingold layout and string similarity. - Reports and CLI. Zero-emoji Executive Pericial Reports in Markdown or self-contained HTML (with defanged IOCs and strict CSP), and
maltegoctlfor terminals and CI. - Safe by default. OSINT content is treated as untrusted data, XML is parsed with defusedxml, archives are read with bounds, agents cannot supply arbitrary URLs, and API keys are never logged.
We welcome contributions! All contributions are subject to our Contributing Guide. Pull requests are automatically analyzed by our AST Security & Blast Radius CI scanner, and all merges require manual sign-off by repository owner @Data-Unix.
- Node.js 18 or newer (for
npx). - uv β manages the Python 3.12 runtime automatically (if
uvis not installed yet,mcp-maltegoinstalls it automatically into~/.maltego-mcp/binon first run).
Prepare the runtime, ~/.maltego-mcp/.env template, Maltego Desktop bridge .mtz, and global CLI launchers
(mcp-maltego, maltego-mcp, maltegoctl, maltego-mcp-bridge in ~/.local/bin / %USERPROFILE%\.local\bin added to
your PATH) in one command:
npx -y mcp-maltego setupYou can also choose a specific deployment mode or client target on any OS / distribution (Windows PowerShell/CMD, macOS, Ubuntu/Debian, Kali, Fedora/RHEL, Arch, Alpine):
npx -y mcp-maltego setup --mode global # (Default) Global CLI in ~/.local/bin + PATH (run from any directory)
npx -y mcp-maltego setup --mode local # Isolated inside ~/.maltego-mcp without modifying PATH
npx -y mcp-maltego setup --mode http # Prepare + print Streamable HTTP server startup
npx -y mcp-maltego setup --client claude # Print ready-to-use config for a specific client (claude|gemini|codex|copilot|cursor|all)Standard configuration, valid for most MCP clients:
{
"mcpServers": {
"maltego": {
"command": "npx",
"args": ["-y", "mcp-maltego"]
}
}
}Then ask your agent:
Investigate example.com, give me the summary of the case and export it for Maltego.
π¦ Installation & First Deploy by Operating System
Native support for arm64 (Apple Silicon) and x86_64 (Intel). Zero C/C++ compilation or Xcode Command Line Tools required.
- Prerequisite: Node.js 18+ (
brew install nodeor official package). - One-Command Autonomous Setup:
Auto-detects your CPU architecture, installs standalone
npx -y mcp-maltego setup
uv, provisions isolated Python 3.12 runtime inside~/.maltego-mcp, creates.envtemplate, generates Maltego Desktop.mtzconfiguration, and links global CLI commands (maltegoctl,mcp-maltego) into~/.zshrcand~/.zprofile. - Launch the Interactive Command Center / Dashboard:
(Automatically launches
maltegoctl dashboard
http://127.0.0.1:8000/dashboardin Safari / Chrome with interactive graph visualization and CTI vault). - Environment Health Check:
maltegoctl doctor
- Maltego Desktop CE Integration (
/Applications/Maltego.app):- Generate local transforms:
maltegoctl mtz - In Maltego Desktop: Go to Import | Export β Import Config and select
~/.maltego-mcp/maltego-mcp-local.mtz.
- Generate local transforms:
- Prerequisite: Node.js 18+ (
winget install OpenJS.NodeJSor official installer). - One-Command Setup:
Provisions standalone
npx -y mcp-maltego setup
uv.exein%USERPROFILE%\.maltego-mcp\bin, installs global.cmd/.ps1shims in%USERPROFILE%\.local\bin, and updates Windows User PATH and PowerShell profiles. - Launch Dashboard:
maltegoctl dashboard
- Prerequisite: Node.js 18+ and
curl. - One-Command Setup:
npx -y mcp-maltego setup
- Launch Dashboard:
maltegoctl dashboard
Antigravity IDE (Google Deepmind)
Add to .gemini/settings.json or project MCP tool configuration:
{
"mcpServers": {
"maltego": {
"command": "mcp-maltego"
}
}
}or portable via npx without prior installation:
{
"mcpServers": {
"maltego": {
"command": "npx",
"args": ["-y", "mcp-maltego"]
}
}
}Example Agent prompt in Antigravity:
"Start an OSINT case for
example.com, run theDomainReconmachine to discover subdomains and DNS records, and store the entities in graph memory so I can explore them inmaltegoctl dashboard."
Claude Code
claude mcp add maltego -- npx -y mcp-maltegoClaude Desktop
Edit claude_desktop_config.json (Settings β Developer β Edit Config) and add the standard configuration above.
Gemini CLI
Add the standard configuration to ~/.gemini/settings.json (all projects) or .gemini/settings.json (one project).
Codex
codex mcp add maltego -- npx -y mcp-maltegoor in ~/.codex/config.toml:
[mcp_servers.maltego]
command = "npx"
args = ["-y", "mcp-maltego"]GitHub Copilot CLI
Add the standard configuration to ~/.copilot/mcp-config.json, or to .mcp.json / .github/mcp.json in a repository.
VS Code
.vscode/mcp.json:
{ "servers": { "maltego": { "command": "npx", "args": ["-y", "mcp-maltego"] } } }Cursor
Add the standard configuration to ~/.cursor/mcp.json or .cursor/mcp.json.
OpenCode
opencode.json:
{ "mcp": { "maltego": { "type": "local", "command": ["npx", "-y", "mcp-maltego"], "enabled": true } } }Qwen Code
Add the standard configuration to ~/.qwen/settings.json or .qwen/settings.json.
Orca IDE and other multi-agent setups
Clone this repository and open it in Orca: it ships the project file each agent reads (.mcp.json,
.gemini/settings.json, .codex/config.toml, .cursor/mcp.json, .qwen/settings.json, opencode.json), so every
worktree gets the server without manual registration. All agents share one graph in ~/.maltego-mcp. See
docs/ORCA.md.
Remote (Streamable HTTP)
npx -y mcp-maltego --transport http --port 8000 # http://127.0.0.1:8000/mcpThe MCP HTTP endpoint binds to 127.0.0.1 by default and refuses non-loopback hosts unless --allow-remote-unauthenticated is explicitly passed. The Web Control Center (maltegoctl dashboard) includes built-in PBKDF2-HMAC-SHA256 (600,000 iterations) session authentication, CSRF protection, DNS-rebinding defense, and a strict Content Security Policy (script-src 'self').
| Group | Tool | What it does |
|---|---|---|
| Catalog | osint_list_entity_types |
41 standard entity types by category (plus humint.*, crypto/AML, and any types imported from your Maltego .mtz) |
osint_list_transforms |
63 built-in transforms, 16 Machines, provider keys and TRX server status | |
| Cases | osint_manage_case |
Create, fork/delegate sub-cases for multi-agent swarms, merge (with optimistic locking) or delete |
osint_list_cases |
Paginated list of cases | |
osint_get_case_summary |
Counts, priority entities and quality indicators | |
| Entities | osint_upsert_entity |
Create or merge an entity (normalised value, deterministic id, notes) |
osint_manage_entity |
Edit confidence/notes/properties, set .mtgx visual_style, run HUMINT analyze_behavior, run 21-typology Multidimensional Pericial Profiling (profile), generate compartmentalized HUMINT personas (generate_persona), or delete |
|
osint_get_entity |
Details, explained score, provenance, pending transforms | |
osint_search_entities |
Search a case or across cases; sort by priority | |
| Links | osint_link_entities |
Link/unlink entities, analyze HUMINT role/sentiment/weight, or correlate cross-platform identities |
osint_get_neighbors |
Related entities with direction and link type | |
osint_find_paths |
Shortest paths between two entities | |
| Transforms | osint_run_transform |
One transform on one entity (streams live to maltegoctl dashboard) |
osint_expand_entity |
Every applicable transform ("Run All") with anti-burst concurrency | |
osint_run_machine |
One of the 16 predefined Machines or an ad-hoc chain, with rounds and budgets | |
| Copilot | osint_investigate |
Everything in one call (accepts targets or natural-language/vague requests): extract seed, create case, run Machine & non-intrusive active/passive pivots, sync P0βP9 & 21-typology profiles to live dashboard, auto-export report_html + .mcpcase, and return the full Executive Pericial Report |
osint_suggest_next_steps |
Deterministic next-best-action with transform performance history | |
osint_get_timeline |
Investigation procedural memory (steps) or subject chronological timeline & anomalies (subject) |
|
| Exchange | osint_export_case |
mtgx (with layout and memory), mcpcase (SHA-256 tamper-evident bundle), json, graphml, csv, report_md, report_html |
osint_import_graph |
Import a .mtgx, .mcpcase, or CSV saved in Maltego (with its memory) |
entity_type accepts any Maltego type, your own prefix.Name, or "auto" to detect it from the value.
| Category | Transforms | API key |
|---|---|---|
| DNS (over HTTPS + passive pDNS) | DNSToIP, DNSToIPv6, DomainToMX, DomainToNS, DomainToTXT, DNSToCNAME, IPToReverseDNS, HackerTargetSubdomains, AnubisSubdomains |
β |
| WHOIS & Official Registries | DomainToWhois, IPToWhois (RDAP + ARIN fallback), BOEEntityToRecords (BOE/BORME), GLEIFCompanyToStructure (GLEIF LEI) |
β |
| Network, BGP & Exposure | IPToAS, IPToNetblock (Team Cymru), IPToPassiveContext, RIPEStatASNToNetblocks, InternetDBIPToServices (Shodan InternetDB), CisaKevToVulnerabilities |
β |
| Certificates, Web & Archives | DomainToSubdomains (crt.sh + CertSpotter), CertSpotterSubdomains, CTOrgToCertificates, URLScanDomainSearch, WaybackCDXSearch, WaybackSnapshotExtract, ArquivoCDXSearch, CommonCrawlCDXSearch |
β |
| Identity, Social & HUMINT | AliasToProfiles, SocialAliasDeepRecon, GitHubAliasToDetails, GitHubAliasToCommitEmails, KeybaseAliasToProofs, GravatarEmailToProfile, EmailToAlias, AnalyzeSubjectBehavior |
β |
| Breach, Leaks & Threat Intel (keyless) | BreachSemanticPivot (local SQLite + HIBP k-Anonymity + XposedOrNot), HudsonRockStealerCheck, GitHubDomainToLeaks, UrlhausHostToThreats, OTXHashToThreatPulses, DeepDarkCTISearch, OnionPassivePivot |
β |
| Cryptoforensics & AML (keyless) | MempoolAddressToTransactions, MempoolTxToInputsOutputs, CryptoClusteringCIOH, OFACSanctionsCryptoLookup, CryptoAddressToExchange |
β |
| Structural Parsing | EmailToDomain, URLToDomain, WebsiteToDomain, DomainToWebsite |
β |
| VirusTotal | VTDomainToIP, VTIPToDomain, VTDomainToSubdomains, VTHashToDetection |
VIRUSTOTAL_API_KEY |
| Shodan | ShodanIPToServices, ShodanDomainToSubdomains |
SHODAN_API_KEY |
| SecurityTrails | SecurityTrailsSubdomains |
SECURITYTRAILS_API_KEY |
| Censys | CensysIPToServices |
CENSYS_API_ID, CENSYS_API_SECRET |
| Hunter.io | HunterDomainToEmails |
HUNTER_API_KEY |
| Have I Been Pwned | HIBPEmailToBreaches |
HIBP_API_KEY |
| GreyNoise | GreyNoiseIPContext |
GREYNOISE_API_KEY |
| Tatum | TatumBTCAddressToTx |
TATUM_API_KEY |
Pass keys through your client's configuration:
{ "mcpServers": { "maltego": { "command": "npx", "args": ["-y", "mcp-maltego"],
"env": { "SHODAN_API_KEY": "...", "VIRUSTOTAL_API_KEY": "..." } } } }Your own Maltego transform servers (TRX / iTDS) are declared in ~/.maltego-mcp/transforms.toml; see
config/transforms.example.toml. Custom Machines go in the same file.
| Direction | How |
|---|---|
| Agent β Maltego | osint_export_case writes a .mtgx; open it with File β Open |
| Maltego β agent | Save as .mtgx in ~/.maltego-mcp/imports/ and ask the agent to import it |
| Live, inside Maltego | npx mcp-maltego ctl mtz generates local transforms (MCP Β· Abrir caso, MCP Β· Vecinos en el caso, MCP Β· Guardar en el caso); import the file with Import | Export β Import Config |
| Your ontology | Export your config from Maltego and run npx mcp-maltego ctl import-entities config.mtz |
Local transforms work in Maltego CE and the commercial editions, with no transform server. For the bridge, install
the package globally (npm i -g mcp-maltego) so the command path stays stable. Details in
docs/MALTEGO.md.
| Variable | Default | Purpose |
|---|---|---|
MALTEGO_MCP_HOME |
~/.maltego-mcp |
Shared state: graph, catalog, imports, exports, runtime |
MALTEGO_MCP_ALLOW_ACTIVE |
1 |
Enable all non-intrusive active & passive transforms with anti-burst concurrency (CHAIN_CONCURRENCY = 3) |
MALTEGO_MCP_MODE |
active |
Operational transform mode (active or strict passive) |
MALTEGO_MCP_REQUIRE_MULLVAD |
1 |
Mandatory Mullvad double-attestation egress ring (0 disables explicitly) |
MALTEGO_MCP_DASHBOARD_AUTH |
1 |
Enable PBKDF2-HMAC-SHA256 session authentication on the Web Control Center |
MALTEGO_MCP_TRANSFORMS_FILE |
<home>/transforms.toml |
Catalog of your transform servers and Machines |
MALTEGO_MCP_BACKEND |
memory |
memory (local JSON, multi-process safe) or gremlin (Azure Cosmos DB, experimental) |
MCP_MALTEGO_UV |
auto-detected | Full path to uv if it is not on PATH |
More in docs/USO.md (Spanish).
npx mcp-maltego ctl inspect case.mtgx # validate a .mtgx
npx mcp-maltego ctl lookup DomainToMX gmail.com # quick lookup, nothing saved
npx mcp-maltego ctl transforms --type maltego.Domain
npx mcp-maltego ctl export demo --format report_html
npx mcp-maltego ctl import-entities config.mtz
npx mcp-maltego ctl mtz- Investigate ana@example.com and tell me which pivots are worth running next.
- Run DomainRecon on example.com with two rounds and a budget of 200 entities.
- Find every path between the IP 93.184.216.34 and the email in case demo.
- Export case demo for Maltego with a radial layout and write me an HTML report.
- Import the graph I saved in Maltego as acme.mtgx into case acme and continue from there.
The repository ships 10 agents and 15 skills from a single source (.agents/), generated for Claude Code, Gemini CLI,
Qwen Code, GitHub Copilot and Codex, with skills in the open Agent Skills format (also read
by Cursor):
- Investigation agents (use this MCP):
osint-analyst(copilot with next-best-action loop and memory),cti-analyst(defensive exposure and IOC triage),ioc-composer(multi-MCP IOC graphs with MISP, ATT&CK, TheHive, Cortex),recon-toolchain-integrator(theHarvester, amass, recon-ng, SpiderFoot output into the graph). - Investigation skills: company footprint, identity footprint, infrastructure mapping, IOC graph composition,
external OSINT tools, investigation methodology (
osint-investigation&investigacion-pasiva-no-zoom). - Development agents and skills: MCP tool design, transforms and custom providers, Machines, graph model, Maltego formats, non-standard entities, security review, tests, release and deployment.
Inspired by community work (SulimanAbdulrazzaq/maltego-mcp, lidless-labs/maltego-mcp, HexStrike AI, MCP-Kali-Rust); offensive capabilities (exploitation) are deliberately out of scope.
OSINT content is untrusted and is never followed as instructions. See SECURITY.md for the design and for how to report vulnerabilities. You are responsible for complying with the law, each provider's terms of service and data-protection rules (for example GDPR) in your jurisdiction.
git clone https://github.com/Data-Unix/MCP-MALTEGO.git && cd MCP-MALTEGO
uv sync
uv run pytest -q && uv run ruff check . && uv run mypy src # Python
npm test # npm launcher
npx @modelcontextprotocol/inspector uv run maltego-mcp # inspect the serverArchitecture, conventions for contributors and AI agents: AGENTS.md. Coverage of the functional specification: docs/COBERTURA.md. Changes: CHANGELOG.md.
MIT. Maltego is a trademark of Maltego Technologies GmbH. This project is independent and not affiliated with or endorsed by Maltego Technologies.
