SelfHeal MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SelfHeal MCPwrap_call GET https://api.github.com/repos/user/repo with target github"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SelfHeal MCP
Self-healing proxy for MCP servers. Wraps any MCP tool call with automatic retry, circuit breaker protection, and call observability.
Your AI agents stop breaking on flaky APIs.
One-click install: Install on MCPize |
npx selfheal-mcp
Features
Retry with backoff — Exponential backoff + jitter on transient failures (5xx, timeouts, rate limits)
Circuit breaker — Per-target circuit breaker stops hammering dead services
Call metrics — Success rates, latency, error frequency, broken down by tool and target
Proxy mode — Wrap any existing MCP server transparently
Zero config — Works standalone out of the box, config file for proxy mode
Related MCP server: tool-smith
Quick Start
Standalone Mode
Add to your Claude Desktop / Claude Code config:
{
"mcpServers": {
"selfheal": {
"command": "npx",
"args": ["-y", "selfheal-mcp"]
}
}
}Then use wrap_call to make any HTTP request with self-healing:
Use the wrap_call tool to GET https://api.example.com/data with target "example-api"Proxy Mode
Create selfheal.config.json:
{
"mode": "proxy",
"targets": [
{
"name": "my-server",
"transport": "streamable-http",
"url": "https://my-mcp-server.com/mcp"
}
]
}{
"mcpServers": {
"selfheal": {
"command": "npx",
"args": ["-y", "selfheal-mcp"],
"env": {
"SELFHEAL_CONFIG": "/path/to/selfheal.config.json"
}
}
}
}All tools from my-server are re-exposed with self-healing built in.
Tools
Tool | Description |
| Execute HTTP call with retry + circuit breaker |
| Check health of any target |
| Reset circuit breaker after fixing issues |
| Success rates, latency, top errors |
| Recent failures with full details |
Proxy Mode Adds
Tool | Description |
| Metrics for all proxied calls |
| Circuit status for all targets |
| Recent errors across all targets |
Configuration
Environment Variables
Variable | Default | Description |
|
| Config file path |
|
| Max retry attempts |
|
| Base delay for backoff |
|
| Max delay cap |
|
| Failures before circuit opens |
|
| Cooldown before half-open test |
How It Works
Agent → SelfHeal MCP → [Retry + Circuit Breaker] → Target API/MCP Server
↓
Metrics CollectorRequest arrives — Agent calls a tool
Circuit check — If target has failed too many times, reject immediately
Execute with retry — Try the call, retry on transient errors with exponential backoff
Record metrics — Log success/failure, duration, attempts
Update circuit — Track consecutive failures per target
Install
MCPize (Recommended)
One-click install with managed hosting: Install on MCPize
npm
npx selfheal-mcpPyPI
Not applicable — this is a TypeScript server. For Python alternatives, see LeadEnrich MCP.
License
MIT — Built by Freedom Engineers
Related
SiteHealth MCP — Full website health audit
LeadEnrich MCP — Waterfall lead enrichment
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceExposes internal tools from agent harnesses (Claude Code, Codex, etc.) as a standard MCP server by intercepting LLM API calls.Last updated1MIT
- Alicense-qualityCmaintenanceMCP server that routes natural language requests to structured tool calls using a LoRA-tuned small language model, with built-in validation, retry, and fallback recovery.Last updatedMIT
- Flicense-qualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.Last updated
Related MCP Connectors
MCP server for interacting with the Supabase platform
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/carsonroell-debug/selfheal-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server