API Debugger
FreeNot checkedEnables AI agents to inspect, test, validate, compare, and debug HTTP APIs through a structured toolkit, with features such as secret redaction, response contra
About
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
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
Install API Debugger in Claude Desktop, Claude Code & Cursor
unyly install api-debugger-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add api-debugger-mcp -- uvx --from git+https://github.com/MahaR54/API-DEBUGGER-MCP api-debugger-mcpStep-by-step: how to install API Debugger
FAQ
Is API Debugger MCP free?
Yes, API Debugger MCP is free — one-click install via Unyly at no cost.
Does API Debugger need an API key?
No, API Debugger runs without API keys or environment variables.
Is API Debugger hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install API Debugger in Claude Desktop, Claude Code or Cursor?
Open API Debugger on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiSpring AI MCP Client
Provides auto-configuration for MCP client functionality in Spring Boot applications.
mcp.natoma.ai
A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)
MCPHub
Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.
MCP Servers Rating and User Reviews
Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)
mkinf
An Open Source registry of hosted MCP Servers to accelerate AI agent workflows.
Compare API Debugger with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
