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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.