mcp-maigret
MCP server for maigret, a powerful OSINT tool that collects user account information from various public sources. JavaScript-based implementation.
Documentation
Maigret MCP Server
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.
⚠️ Warning
This tool is designed for legitimate OSINT research purposes. Please:
- Only search for information that is publicly available
- Respect privacy and data protection laws
- Follow the terms of service of the platforms being searched
- Use responsibly and ethically
- Be aware that some sites may rate-limit or block automated searches
Security
This server implements several security measures to prevent command injection attacks:
Input Validation
- Usernames: Only alphanumeric characters, underscores, hyphens, and periods are allowed (max 100 characters)
- URLs: Must be valid HTTP/HTTPS URLs without shell metacharacters
- Tags: Only alphanumeric characters, underscores, and hyphens are allowed
Safe Command Execution
- Uses `execFile()` instead of `exec()` to prevent shell interpolation
- All command arguments are passed as arrays, not concatenated strings
- Docker commands are executed without shell interpretation
Reporting Security Issues
If 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.
Requirements
- Node.js (v18 or later)
- Docker
- macOS, Linux, or Windows with Docker Desktop installed
- Write access to the reports directory
Quick Start
Installing via Smithery
To install Maigret for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install mcp-maigret --client claudeInstalling Manually
1. Install Docker:
2. Install the server globally via npm:
npm install -g mcp-maigret3. Create a reports directory:
mkdir -p /path/to/reports/directory4. Add to your Claude Desktop configuration file:
{
"mcpServers": {
"maigret": {
"command": "mcp-maigret",
"env": {
"MAIGRET_REPORTS_DIR": "/path/to/reports/directory"
}
}
}
}Configuration file location:
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
5. Restart Claude Desktop
Alternative Setup (From Source)
If you prefer to run from source or need to modify the code:
1. Clone and build:
git clone
cd mcp-maigret
npm install
npm run build2. Add to your Claude Desktop configuration:
{
"mcpServers": {
"maigret": {
"command": "node",
"args": ["/absolute/path/to/mcp-maigret/build/index.js"],
"env": {
"MAIGRET_REPORTS_DIR": "/path/to/reports/directory"
}
}
}
}Features
- Username Search: Search for a username across hundreds of social networks and websites
- URL Analysis: Parse URLs to extract information and search for associated usernames
- Multiple Output Formats: Support for txt, html, pdf, json, csv, and xmind formats
- Site Filtering: Filter searches by site tags (e.g., photo, dating, us)
- Docker-based: Reliable and consistent execution across environments
Tools
1. Username Search Tool
- Name: `search_username`
- Description: Search for a username across social networks and sites
- Parameters:
- `username` (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 500
- `tags` (optional): Array of tags to filter sites (alphanumeric, underscores, hyphens only)
Example:
{
"username": "test_user123",
"format": "html",
"use_all_sites": false,
"tags": ["photo"]
}2. URL Analysis Tool
- Name: `parse_url`
- Description: Parse a URL to extract information and search for associated usernames
- Parameters:
- `url` (required): URL to analyze
- `format` (optional, default: "pdf"): Output format (txt, html, pdf, json, csv, xmind)
Example:
{
"url": "https://example.com/profile",
"format": "txt"
}Troubleshooting
Docker Issues
1. Verify Docker is installed and running:
docker --version
docker ps2. Check Docker permissions:
Reports Directory Issues
1. Verify the reports directory:
2. Common configuration mistakes:
3. After fixing any issues:
Error Messages
- "Docker is not installed or not running": Install Docker and start the Docker daemon
- "MAIGRET_REPORTS_DIR environment variable must be set": Add the environment variable to your configuration
- "Error creating reports directory": Check directory permissions and path
- "Error executing maigret": Check Docker logs and ensure the container has proper permissions
- "Invalid username": Username contains invalid characters. Use only alphanumeric, underscores, hyphens, and periods
- "Invalid URL": URL is malformed or contains prohibited characters
- "Invalid tag": Tag contains invalid characters. Use only alphanumeric, underscores, and hyphens
Contributing
1. Fork the repository
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is mcp-maigret?
mcp-maigret is MCP server for maigret, a powerful OSINT tool that collects user account information from various public sources. JavaScript-based implementation.
How do I install mcp-maigret?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-maigret open source?
Yes — it is hosted on GitHub at https://github.com/BurtTheCoder/mcp-maigret and has 199 stars.
Related MCP tools
A server that integrates Linear's project management system with the Model Context Protocol (MCP) to allow LLMs to interact with Linear.
🚀 Powerful Local AI Chat Application - Mcp, Secure, Efficient, Personalized 本地化部署的大模型客户端 JavaScript-based implementation.
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others. Built for the Model Context Protocol to enhance AI capabiliti
Fay是一个帮助数字人(2.5d、3d、移动、pc、网页)或大语言模型(openai兼容、deepseek)连通业务系统的mcp框架。 JavaScript-based implementation. Trusted by 12000+ developers.
CTTF: MCP integration between Cursor and Figma, allowing Cursor Agentic AI to communicate with Figma for reading designs and modifying them programmatically.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP