API Debugger MCP
Enables AI agents to inspect, test, validate, compare, and debug HTTP APIs through a structured toolkit, with features such as secret redaction, response contract validation, regression comparison, health checks, and incident investigation workflows.
README
API Debugger MCP 🚀
A production-oriented Model Context Protocol (MCP) server for inspecting, testing, validating, comparing, and debugging HTTP APIs with FastMCP.
Why this project?
API failures often require jumping between API clients, OpenAPI documentation, logs, test suites, and bug trackers. API Debugger MCP gives an MCP-compatible AI agent a structured toolkit for performing those investigations.
Features
- 12 MCP tools for API debugging and QA
- Safe secret redaction for common credential fields and headers
- Configurable timeout and response-size limits
- Private/local network blocking by default
- JSON-schema-style response contract validation
- Regression comparison between response bodies
- Multi-endpoint health checks
- Automated API test scenario generation
- Structured bug-report generation
- End-to-end incident investigation workflow
- MCP resource and reusable prompt
- Docker support
- Pytest + coverage
- Ruff linting
- GitHub Actions CI across Python 3.10–3.12
MCP tools
inspect_endpointsend_requestvalidate_responsecompare_responsesanalyze_errordetect_api_issuegenerate_api_testsgenerate_bug_reportcheck_contractapi_health_checkredact_sensitive_datainvestigate_incident
Project structure
api-debugger-mcp/
├── .github/workflows/ci.yml
├── docs/
├── src/api_debugger_mcp/
│ ├── analysis.py
│ ├── client.py
│ ├── config.py
│ ├── models.py
│ ├── security.py
│ ├── server.py
│ └── tools.py
├── tests/
├── .dockerignore
├── .env.example
├── .gitignore
├── Dockerfile
├── LICENSE
├── Makefile
├── docker-compose.yml
└── pyproject.toml
Quick start
1. Create a virtual environment
python -m venv .venv
Windows:
.venv\Scripts\activate
macOS/Linux:
source .venv/bin/activate
2. Install
pip install -e ".[dev]"
3. Configure
Copy .env.example to .env and set only the values required for your environment.
Never commit real API keys or bearer tokens.
4. Run locally
For an HTTP MCP server:
api-debugger-mcp
The default MCP endpoint is:
http://localhost:8000/mcp
For local stdio mode:
MCP_TRANSPORT=stdio
then run:
api-debugger-mcp
Docker
docker compose up --build
The server is exposed on port 8000.
Testing
pytest
Lint:
ruff check .
Format:
ruff format .
Example MCP workflow
An MCP-compatible agent can combine the tools like this:
investigate_incident
↓
inspect_endpoint
↓
send_request
↓
detect_api_issue
↓
analyze_error
↓
check_contract
↓
generate_bug_report
For regression testing:
send_request (baseline)
↓
send_request (current)
↓
compare_responses
↓
validate_response
Security notes
This server is designed to avoid accidental credential leakage and unsafe network access by default.
- Common auth/cookie/API-key headers are redacted from returned results.
- Common secret fields are redacted recursively.
- Requests to local/private IP targets are disabled by default.
- Do not commit
.envwith real credentials. - In production, place the MCP server behind your organization's authentication and network controls.
- Add an explicit allowlist before enabling private-network requests in sensitive environments.
Production roadmap
- OpenAPI 3.x import and endpoint discovery
- OAuth/API-key secret providers
- Persistent regression baselines
- Sentry/observability integration
- Jira/GitHub issue creation
- Request correlation IDs
- Rate limiting
- Audit logging
- RBAC/authentication
- Async parallel health checks
- MCP task/background execution for long-running investigations
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。