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 分

    請在儲存庫或註冊中心條目中宣告授權條款。