Maigret

SecurityDeveloper tools

MCP server that lets AI agents run maigret, an OSINT tool that searches a username across thousands of sites.

Your AI app calls the Maigret MCP server, which does the security and developer tools work and sends the result back to the chat.

About Maigret

Maigret is a community MCP server from w0h1v, filed in our directory under security and developer tools. MCP server that lets AI agents run maigret, an OSINT tool that searches a username across thousands of sites.

Maigret runs on your own machine: your AI app starts it with the command npx -y mcp-maigret and talks to it over standard input and output.

At a glance

Publisher
w0h1v (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mcp-maigret
Written in
TypeScript
License
MIT
GitHub stars
276

How to set up Maigret

  1. Install Node.js on the machine that runs your AI app, because Maigret starts with npx and downloads its package on first run.
  2. Check the Maigret README for keys or settings; the registry lists none that Maigret requires.
  3. Add Maigret to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Maigret tools to confirm the connection.
  5. Run one read-only task with Maigret first, and keep your app asking before each tool call until the results look right.

Maigret compared with similar servers

  • Arkana by JameZUK has fewer GitHub stars than Maigret (269 against 276); both are community servers, and both run locally.
  • AI Agents For Cybersecurity by santosomar has more GitHub stars than Maigret (277 against 276); both are community servers, and both run locally.
  • OpenWorkProof by dengyier has fewer GitHub stars than Maigret (261 against 276); both are community servers, and both run locally.

Before you connect Maigret

  • Give Maigret its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Maigret tool call until you trust what it does with them.
  • Treat text that Maigret fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Maigret on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Maigret

How marketing and sales teams put Maigret to work, by company size. Pick the size closest to yours and start Maigret on one use case.

Small business

  • A small business can use Maigret to check its domains, logins and site for common gaps before they cost a customer's trust.
  • Owners can ask Maigret whether a tool or vendor has known issues before connecting it to customer data.
  • A small business with a developer can use Maigret to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Maigret runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can use Maigret to review what each connected app can access and remove keys nobody uses.
  • Security and web teams can connect Maigret to scan campaign sites and forms before launch, not after an incident.
  • Growth engineers can use Maigret to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start Maigret on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Maigret in the security team's tooling, so marketing's agents and apps are reviewed like any other system.
  • Large orgs can use Maigret to keep evidence for audits, showing which agents reached which data and when.
  • Enterprise engineering teams can roll out Maigret with repo scopes and audit logs, so agents work only where they are allowed.
  • Maigret is a community server, so have security review the code and pin a version before Maigret touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Maigret README

From w0h1v/mcp-maigret on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Quickstart · Tools · Formats · Security · Troubleshooting · Docs (w0h1v.github.io/mcp-maigret)

mcp-maigret is an MCP server that lets AI agents run maigret, the OSINT tool that checks a username across thousands of sites. Ask your agent to find where a handle is registered, or to analyze a profile URL, and get a saved report back. Maigret runs in Docker, so there is nothing to install besides Docker and Node.

[!WARNING] Use this for legitimate, authorized OSINT research on publicly available information. Follow the law and each site's terms of service, and respect people's privacy. Some sites rate-limit or block automated lookups.

Highlights

  • Username search across hundreds to thousands of sites, filterable by tag (photo, dating, us, ...).
  • URL analysis. Hand it a profile URL and maigret extracts what it can and looks for linked usernames.
  • Six report formats (txt, html, csv, json, xmind, pdf), saved to a directory you choose. See which ones work today.
  • Hardened inputs. Strict validation and execFile with argument arrays. No shell is ever involved. See Security.
  • Docker-based. The maigret image is pulled on first use, so every machine runs the same maigret.

How it works

flowchart LR
    A["AI agent<br/>(Claude Desktop, Claude Code, any MCP client)"] -->|"MCP over stdio"| S["mcp-maigret"]
    S -->|"validate input,<br/>execFile docker run"| D["soxoj/maigret<br/>(Docker)"]
    D -->|"checks sites"| W(("Public<br/>websites"))
    D -->|"writes report"| R[("MAIGRET_REPORTS_DIR")]
    S -->|"report path + scan output"| A

Quickstart

Requirements: Node.js 18 or newer, plus either Docker installed and running, or maigret installed locally (pipx install 'maigret[pdf]'). MAIGRET_RUNNER chooses docker, local or auto (default: local if maigret is on PATH, else Docker); see Connect a client. Developed and tested on macOS. Linux and Windows (Docker Desktop) should work but are untested.

1. Pick a reports directory. The server saves reports here. It is created if missing. The variable is required.

export MAIGRET_REPORTS_DIR="$HOME/maigret-reports"

2. Add the server to your client.

Claude Code
claude mcp add maigret -e MAIGRET_REPORTS_DIR="$HOME/maigret-reports" -- npx -y mcp-maigret
Claude Desktop

Edit the config file (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json), then restart Claude Desktop:

{
  "mcpServers": {
    "maigret": {
      "command": "npx",
      "args": ["-y", "mcp-maigret"],
      "env": { "MAIGRET_REPORTS_DIR": "/absolute/path/to/maigret-reports" }
    }
  }
}
From source
git clone https://github.com/w0h1v/mcp-maigret && cd mcp-maigret
npm install && npm run build

Then point your client at node /absolute/path/to/mcp-maigret/build/index.js with the same MAIGRET_REPORTS_DIR variable.

3. Try it. Ask your agent: "Use maigret to check where the username octocat is registered, filtered to the coding tag."

The first search pulls the maigret image (about 800 MB), so it takes longer.

Tools

search_username

Search for a username across social networks and sites.

Parameter Type Default Description
username string, required Letters, digits, _, - and . only, up to 100 characters
format enum txt txt, html, csv, json, xmind or pdf (see formats)
use_all_sites boolean false Check all sites in maigret's database instead of the top 500
tags string[] none Only check sites with these tags. Letters, digits, _ and - only
{ "username": "octocat", "format": "html", "tags": ["coding"] }

The result contains the path of the saved report and maigret's console output. If the report file was not produced, the result says so instead of reporting success.

parse_url

Parse a URL to extract information and search for associated usernames.

Parameter Type Default Description
url string, required An http or https URL without shell metacharacters
format enum txt Same options as above
{ "url": "https://github.com/octocat" }

Results come back as maigret's scan output text.

Output formats

Reports are written to MAIGRET_REPORTS_DIR. Maigret picks the file names, and for some formats it adds a suffix. When maigret finds related usernames it can write extra reports next to the main one (for example report_octocatsup.txt).

Format File written by search_username Status
txt report_<username>.txt Works. Default.
csv report_<username>.csv Works
json report_<username>_simple.json Works
html report_<username>_plain.html Works
xmind report_<username>.xmind Works
pdf report_<username>.pdf Works with a local maigret installed with the pdf extra, and in this repo's Docker image. Not available with the stock soxoj/maigret image used by the Docker runner; the tool reports that no file was produced.

Statuses were checked against maigret 0.6.6 (image soxoj/maigret:latest, October 2026). Maigret's command line changes between releases, so this can drift.

Security

Usernames, URLs and tags come from an AI agent and are treated as untrusted.

  • Validation. Usernames allow only [A-Za-z0-9_.-] (max 100 characters). Tags allow only [A-Za-z0-9_-] (max 50). URLs must parse as http or https and may not contain shell metacharacters.
  • No shell. Docker is launched with execFile and an argument array, never a concatenated command string.
  • Contained writes. Reports are written by the container into the single directory you mount. The server does not read or write elsewhere.

What this does not cover: the server runs Docker on your machine on your agent's behalf, and it makes network requests to many third-party sites from your IP address. Run it only for agents and clients you trust.

Found a vulnerability? Report it privately. See SECURITY.md.

Troubleshooting

Message Fix
Docker is not installed or not running Install Docker and start the daemon. Check with docker --version and docker ps. On Linux, add yourself to the docker group: sudo usermod -aG docker $USER.
MAIGRET_REPORTS_DIR environment variable must be set Add the variable to your client's env block, then restart the client.
Error creating reports directory Check the path and that your user can write to it. Use an absolute path without a trailing slash.
Invalid username / Invalid tag / Invalid URL Input failed validation. Use only the characters listed under Tools.
No report file was produced ... The chosen format isn't available in the image (see formats). Try txt, json or html.
Error executing maigret Read the Docker output included in the message. Often a network problem or a changed maigret option.
Searches seem slow The first run pulls the image. Narrow the search with tags, and avoid use_all_sites unless you need it.

More in the docs (w0h1v.github.io/mcp-maigret/troubleshooting).

Contributing

Contributions are welcome. Start with CONTRIBUTING.md.

License

MIT. Independent project, not affiliated with the maigret project. Maigret is by soxoj and has its own license.

Questions about Maigret

What is the Maigret MCP server?

MCP server that lets AI agents run maigret, an OSINT tool that searches a username across thousands of sites. Maigret is maintained by w0h1v on GitHub at w0h1v/mcp-maigret, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Maigret MCP server?

Add Maigret to your AI app's MCP config with the command npx -y mcp-maigret. In Claude Code, run claude mcp add --transport stdio maigret -- npx -y mcp-maigret. To run Maigret this way you need Node.js installed.

Does Maigret need an API key?

The registry lists no required keys for Maigret. Check the Maigret README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Maigret an official MCP server?

No. Maigret is a community server maintained by w0h1v. Community servers can be excellent; read the code and the open issues before you give Maigret access to company data.

What license is Maigret under?

Maigret is released under the MIT license, according to its GitHub repository. The license covers the code of Maigret; the service it connects to has its own terms.