The mcp-maigret server integrates the Maigret OSINT tool into MCP-compatible applications, providing capabilities to search for usernames across social networks and analyze URLs by querying publicly available sources. It offers tools for conducting open-source intelligence research while implementing security measures including input validation, safe command execution via Docker, and restrictions on allowed character sets to prevent injection attacks. The server solves the problem of accessing Maigret's account discovery functionality programmatically within AI assistants and other MCP clients.
A Model Context Protocol (MCP) server for maigret, a powerful OSINT tool that collects user account information from various public sources. This server provides tools for searching usernames across social networks and analyzing URLs. It is designed to integrate seamlessly with MCP-compatible applications like Claude Desktop.
This tool is designed for legitimate OSINT research purposes. Please:
This server implements several security measures to prevent command injection attacks:
execFile() instead of exec() to prevent shell interpolationIf you discover a security vulnerability, please report it by opening an issue or contacting the maintainers directly. We take security seriously and will respond promptly.
To install Maigret for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install mcp-maigret --client claude
Install Docker:
Install the server globally via npm:
npm install -g mcp-maigret
mkdir -p /path/to/reports/directory
{
"mcpServers": {
"maigret": {
"command": "mcp-maigret",
"env": {
"MAIGRET_REPORTS_DIR": "/path/to/reports/directory"
}
}
}
}
Configuration file location:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.jsonIf you prefer to run from source or need to modify the code:
git clone <repository_url>
cd mcp-maigret
npm install
npm run build
{
"mcpServers": {
"maigret": {
"command": "node",
"args": ["/absolute/path/to/mcp-maigret/build/index.js"],
"env": {
"MAIGRET_REPORTS_DIR": "/path/to/reports/directory"
}
}
}
}
search_usernameusername (required): Username to search for (alphanumeric, underscores, hyphens, periods only; max 100 chars)format (optional, default: "pdf"): Output format (txt, html, pdf, json, csv, xmind)use_all_sites (optional, default: false): Use all available sites instead of top 500tags (optional): Array of tags to filter sites (alphanumeric, underscores, hyphens only)Example:
{
"username": "test_user123",
"format": "html",
"use_all_sites": false,
"tags": ["photo"]
}
parse_urlurl (required): URL to analyzeformat (optional, default: "pdf"): Output format (txt, html, pdf, json, csv, xmind)Example:
{
"url": "https://example.com/profile",
"format": "txt"
}
docker --version
docker ps
sudo usermod -aG docker $USERVerify the reports directory:
ls -la /path/to/reports/directoryCommon configuration mistakes:
After fixing any issues:
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.