Secure Vault

io.github.mdfifty50-boop由 GitHub 账号 mdfifty50-boop 发布v0.1.1更新于 Oct 24, 2026

Encrypted secrets and credential management for agents

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

一个本地 MCP 服务器,用于加密存储密钥、签发短期受限令牌,并在服务端把凭据注入请求模板,使助手无需接触明文凭据。

可以做什么
加密存储密钥并支持轮换策略,列出已存密钥的名称和元数据而不暴露值。为某个服务签发短期、带作用域的代理令牌,并轮换该服务的密钥使旧令牌失效。凭令牌 ID 在服务端把密钥注入请求模板。扫描粘贴的配置文本,识别云服务、API、聊天和支付等泄露凭据。按时间范围查看密钥访问审计记录,可按代理或密钥筛选。
适用场景
适合助手需要凭据调用 API 但不应接触明文值的场景,也适合需要令牌作用域、轮换和访问审计的场合。还可用于提交前检查配置文件是否泄露密钥。
运行要求
通过 stdio 在本地运行,通常用 npx 从 npm 包 secure-vault-mcp 启动,需要 Node.js。未声明账户、API 密钥、环境变量或请求头。密钥仅保存在内存中,随服务器会话结束而消失。
安装前请注意
助手可以存储、轮换并注入真实凭据,需谨慎设置令牌作用域和有效期。密钥仅存于内存,会话结束即丢失,需自行安排重新提供。泄露扫描会把粘贴的配置文本发送到服务器做正则匹配。加密密钥由服务器生成,README 未说明其保存位置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Secure Vault,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

secure-vault-mcp

MCP server for agent-native secrets management. 24,008 secrets have been found in MCP config files on public GitHub. This server solves that.

Agents need secrets to call APIs, but they shouldn't see raw values. secure-vault-mcp stores secrets encrypted with AES-256-GCM, issues short-lived scoped tokens, and injects secrets into requests server-side so the agent never handles plaintext credentials.

Install

bash
npx secure-vault-mcp

Claude Desktop

Add to claude_desktop_config.json:

json
{  "mcpServers": {    "secure-vault": {      "command": "npx",      "args": ["secure-vault-mcp"]    }  }}

From source

bash
git clone https://github.com/mdfifty50-boop/secure-vault-mcp.gitcd secure-vault-mcpnpm installnode src/index.js

Tools

store_secret

Store an encrypted secret with optional rotation policy.

ParamTypeDefaultDescription
namestringrequiredSecret name (e.g. "openai_api_key")
valuestringrequiredSecret value — encrypted immediately
servicestring"default"Service this secret belongs to
rotation_policystring"none""none", "daily", "weekly", "monthly"

get_agent_token

Issue a short-lived, scoped token. The agent receives an opaque token ID, never the raw secret.

ParamTypeDefaultDescription
agent_idstringrequiredRequesting agent identifier
servicestringrequiredService to get a token for
scopestring"read""read", "write", "admin"
ttl_secondsnumber300Token TTL (10s to 86400s)

rotate_secrets

Rotate all secrets for a service. Old tokens are invalidated.

ParamTypeDescription
servicestringService whose secrets to rotate
new_valuestringNew secret value

audit_secret_access

View who accessed what secrets over a time range.

ParamTypeDefaultDescription
time_rangestring"24h""1h", "6h", "24h", "7d", "all"
agent_idstringoptionalFilter by agent
secret_namestringoptionalFilter by secret

scan_config_for_leaks

Scan config text for exposed secrets. Detects AWS keys, GitHub tokens, OpenAI/Anthropic keys, Slack tokens, Stripe keys, private key blocks, bearer tokens, and generic credentials using 12 regex patterns.

ParamTypeDefaultDescription
config_textstringrequiredConfig content to scan
source_labelstring"unknown"Label for audit trail

inject_secret_to_request

Return a request with the secret injected server-side. The agent provides a template with {{SECRET}} placeholder and a valid token ID.

ParamTypeDescription
token_idstringToken from get_agent_token
request_templatestringTemplate with {{SECRET}} placeholder

Resources

URIDescription
secure-vault://secretsAll stored secret names with metadata (no raw values)

Usage Pattern

1. store_secret — store credentials at setup time2. get_agent_token — agent requests a scoped, time-limited token3. inject_secret_to_request — inject secret into API call template4. rotate_secrets — rotate when needed, old tokens auto-invalidate5. scan_config_for_leaks — check config files before committing6. audit_secret_access — review access trail

Security Model

  • Secrets encrypted at rest with AES-256-GCM using a server-generated key
  • Agents receive opaque token IDs, never raw secret values
  • Tokens are scoped (read/write/admin) and time-limited (default 5 minutes)
  • Token rotation invalidates all outstanding tokens for the rotated secret
  • Full audit trail of every store, token issuance, and injection
  • In-memory storage — secrets exist only for the server session lifetime

Tests

bash
npm test

License

MIT

来源:README.md,提交 8b3aff4

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。