cd /news/ai-agents/mcp-warden-local-credential-broker-s… · home › topics › ai-agents › article
[ARTICLE · art-157851] src=news.ycombinator.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

MCP-warden local credential broker so AI agents never see your secrets

A developer released mcp-warden, an Apache-2.0, Rust-based local credential broker for the Model Context Protocol that stores secrets in the OS keychain and injects them server-side so agents such as Claude Code, Cursor, Codex and Cline never see them in context. The tool defines scoped presets like github-read and stripe-charges, exposes high-level tools (proxy_http, ssh_exec, db_query), runs allow-list validation before credential injection, can require approval via desktop notification, TUI or Telegram for sensitive actions, and logs everything locally.

by read1 min views2 publishedOct 26, 2026

I got tired of pasting GitHub PATs, Stripe keys and DB passwords into Claude Code / Cursor MCP configs. One prompt injection or a leaked chat and they’re gone. So I built mcp-warden — a local-first credential broker for the Model Context Protocol. How it works: • You store the secret once in the OS keychain • You define scoped presets (e.g. github-read, stripe-charges) • The agent calls high-level tools (proxy_http, ssh_exec, db_query) • mcp-warden injects the credential server-side and returns only the result The agent’s context never contains the secret. Allow-list validation runs before credential injection. Sensitive actions can require approval (desktop notification, TUI, or Telegram). Everything is logged locally. Works with Claude Code, Cursor, Codex, Cline and any other MCP client. Written in Rust, Apache-2.0, fully local.

GitHub: https://github.com/ermoluk/mcp-warden Happy to answer questions about the threat model or how people are currently handling secrets with agents.

Comments URL: [https://news.ycombinator.com/item?id=50241410](https://news.ycombinator.com/item?id=50241410)

Points: 1

── more in #ai-agents 4 stories · sorted by recency
── more on @mcp-warden 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mcp-warden-local-cre…] indexed:0 read:1min 2026-10-26 · —