Failsafe MCP Server

Failsafe MCP Server

Credential resilience for AI agents, providing AES-256 encrypted storage, automatic health checks, and failover to backup credentials for providers like OpenAI, Anthropic, GitHub, and Stripe.

Category
Visit Server

README

Failsafe MCP Server

Credential resilience for AI agents.

Your agent runs on 50+ credentials. Failsafe makes sure they never break.

  • šŸ”‘ Store credentials with AES-256 encryption
  • šŸ„ Monitor health with automatic provider-specific checks
  • šŸ”€ Failover to backup credentials when primary fails
  • ā° Warn before credentials expire
  • šŸ”Œ MCP native — works with Claude Code, Cursor, LangChain, and any MCP client

Quick Start

With Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "failsafe": {
      "command": "npx",
      "args": ["-y", "failsafe-mcp-server"]
    }
  }
}

With Claude Code

claude mcp add failsafe -- npx -y failsafe-mcp-server

Manual

npm install -g failsafe-mcp-server
failsafe-mcp-server

What It Does

Store a credential

> failsafe_store provider:"openai" key:"sk-abc123" backup_key:"sk-xyz789"

āœ“ Credential stored for openai. Backup configured.

Get a credential (with auto-failover)

> failsafe_get provider:"openai"

{
  "key": "sk-abc123",
  "source": "primary",
  "status": "healthy"
}

If the primary key is unhealthy, Failsafe automatically returns the backup:

> failsafe_get provider:"openai"

{
  "key": "sk-xyz789",
  "source": "backup",
  "warnings": ["Primary credential is unhealthy. Using backup."]
}

List all credentials

> failsafe_list

{
  "summary": { "total": 4, "healthy": 3, "unhealthy": 1, "expired": 0 },
  "credentials": [
    { "provider": "openai", "status": "healthy", "has_backup": true },
    { "provider": "anthropic", "status": "healthy", "has_backup": false },
    { "provider": "github", "status": "unhealthy", "has_backup": true },
    { "provider": "stripe", "status": "healthy", "has_backup": false }
  ]
}

Run health checks

> failsafe_health

{
  "summary": { "total": 4, "healthy": 3, "unhealthy": 1 },
  "results": [
    { "provider": "openai", "status": "healthy", "latency_ms": 245 },
    { "provider": "anthropic", "status": "healthy", "latency_ms": 189 },
    { "provider": "github", "status": "unhealthy", "response_code": 401 },
    { "provider": "stripe", "status": "healthy", "latency_ms": 312 }
  ]
}

Supported Providers

Built-in health checks for:

Provider Health Check Endpoint
OpenAI GET /v1/models
Anthropic GET /v1/models
GitHub GET /user
Stripe GET /v1/balance

Any other provider works with a custom health_check_url:

> failsafe_store provider:"my-saas" key:"token_abc" health_check_url:"https://api.my-saas.com/health"

Security

  • All credentials encrypted with AES-256-GCM at rest
  • Master key auto-generated and stored in ~/.failsafe/master.key (mode 0600)
  • Or set FAILSAFE_MASTER_KEY environment variable
  • 100% local — credentials never leave your machine
  • No telemetry, no network calls except health checks to your own providers

How Failover Works

Agent requests credential for "openai"
  ↓
Failsafe checks primary key status
  ↓
ā”œā”€ Healthy? → return primary key
ā”œā”€ Unhealthy/Expired? → check for backup
│   ā”œā”€ Backup exists? → return backup key + warning
│   └─ No backup? → return primary key + warning

Data Storage

All data stored locally in ~/.failsafe/:

~/.failsafe/
ā”œā”€ā”€ master.key         # Encryption key (auto-generated)
└── credentials.json   # Encrypted credential store

Roadmap

  • [x] Store / Get / List / Remove credentials
  • [x] AES-256-GCM encryption
  • [x] Health checks (OpenAI, Anthropic, GitHub, Stripe + custom)
  • [x] Automatic failover (primary → backup)
  • [x] Expiration warnings
  • [ ] Background health monitoring (cron)
  • [ ] Multi-key rotation / load balancing
  • [ ] Webhook notifications (Slack, Telegram)
  • [ ] Failsafe Cloud (hosted dashboard + team management)

License

MIT

Links

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured