mcp-keyward
Enables secure, authenticated HTTP requests to OpenAI's API by injecting stored API keys server-side, preventing exposure of credentials to the AI agent.
🔐 mcp-keyguard
Your AI agent should never see your API keys. Now it won't.
mcp-keyguard is a local MCP server that acts as a secure proxy between your AI agent (Claude, Cursor, Windsurf...) and any external API.
Instead of pasting your OpenAI, Stripe or GitHub keys into the chat context, you store them encrypted on your machine. The agent calls mcp-keyguard, which injects the real key server-side and returns the result.
The key never leaves your machine. The agent never sees it.
Why this matters
In 2025, a vulnerability in a popular MCP hosting platform exposed thousands of API keys from over 3,000 servers. The root cause? Keys passed through infrastructure the user didn't control.
mcp-keyguard is the opposite: fully local, zero external dependencies, your keys encrypted at rest with AES-128.
Related MCP server: API Locker
How it works
Your prompt → Claude → mcp-keyguard → [injects real key] → External API
↑
Key never leaves hereInstallation
Requirements: Python 3.10+
pip install mcp httpx cryptography
git clone https://github.com/ggc180820/mcp-keyguard.git
cd mcp-keyguardAdd to your claude_desktop_config.json:
{
"mcpServers": {
"mcp-keyguard": {
"command": "python",
"args": ["/path/to/mcp-keyguard/main.py"]
}
}
}Restart Claude Desktop. Done.
Usage
1. Store a key (you do this once per key)
"Use add_key to store my OpenAI key with alias 'openai',
header_name 'Authorization', header_prefix 'Bearer '"
2. Make authenticated requests (Claude does this automatically)
"Use make_request with alias 'openai' to call
https://api.openai.com/v1/models"
3. Check what's stored
"Use list_keys"
→ Shows aliases and headers. Never the real values.
Tools
Tool | What it does |
| Store an API key encrypted in the vault |
| List stored aliases — values are never shown |
| Make an authenticated HTTP request, key injected server-side |
| Remove a key from the vault |
Security model
Keys are encrypted with Fernet (AES-128-CBC + HMAC-SHA256)
The encryption key lives in
vault.keyon your machine onlyAll HTTP requests are made locally with a 30s timeout
Never commit
vault.keyorvault.jsonto git (already in.gitignore)
mcp-keyguard Pro
Need more control? Pro adds:
Feature | Free | Pro |
Encrypted local vault | ✅ | ✅ |
Unlimited keys | ✅ | ✅ |
Multiple vaults (per project/client) | ❌ | ✅ |
Audit log (who used which key, when, where) | ❌ | ✅ |
Key rotation alerts | ❌ | ✅ |
License
MIT — free forever for personal use.
This server cannot be installed
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
- AlicenseAqualityCmaintenanceCredential isolation proxy for AI agents. Injects API keys at the network boundary so your agent never sees the raw credential. Supports domain allowlists, agent auth, policy enforcement, and audit logging.Last updated311913Apache 2.0
- Alicense-qualityDmaintenanceEncrypted credential vault with a 21-tool MCP server. Store and manage LLM API keys, service API keys, and OAuth credentials — then let your AI agent list, reveal, rotate, rename, pause, and proxy calls through them.Last updatedMIT
- AlicenseAqualityDmaintenanceLocal AES-256-GCM encrypted vault for AI agents. Resolve {{PLACEHOLDER}} secrets in prompts at runtime — LLMs never see real API keys. Argon2id key derivation, zero cloud.Last updated2662MIT
- AlicenseAqualityBmaintenanceEncrypted secrets vault that blinds AI agents to API keys. Stores secrets in AES-256-GCM encrypted SQLite vault, resolves them at runtime via MCP values never appear in LLM conversation transcripts. Sandbox .env files with deterministic fakes.Last updated71043MIT
Related MCP Connectors
Encrypted secret store and rotation for autonomous agent credentials
Issue, rotate and revoke scoped API-key passes for 25+ providers — the agent never sees a real key
Encrypted A2A object storage for autonomous agent state and artifacts
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/ggc180820/mcp-keyguard'
If you have feedback or need assistance with the MCP directory API, please join our Discord server