这是一个与 maigret 工具兼容的 MCP 服务器,具备用户名搜索、URL 分析功能,还支持多种输出格式,能满足不同场景的需求。
curl -fsSL https://get.docker.com | bash -s docker
docker run -d --name maigret -e MAIGRET_REPORTS_DIR=/path/to/reports -v /path/to/host/reports:/app/reports maigret/mcp-server:latest
config.json){
"servers": [
{
"name": "maigret-server",
"host": "localhost",
"port": 8090,
"username": "admin",
"password": "password123"
}
],
"reports_dir": "/path/to/reports",
"log_level": "info"
}
curl -X POST http://localhost:8090/api/search \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/profile","format":"pdf"}'
curl -X POST http://localhost:8090/api/analyze \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com","format":"json"}'
docker --version
docker ps
sudo usermod -aG docker $USERMAIGRET_REPORTS_DIR 变量指向的目录存在。ls -la /path/to/reports/directorygit clone https://github.com/yourusername/maigret-mcp-server.git
cd maigret-mcp-server
git checkout -b feature/new-feature
git add .
git commit -m '添加新功能'
git push origin feature/new-feature
本项目遵循 MIT 许可证,具体内容请参阅 LICENSE 文件。