HV

hashicorp/vault-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

66 stars 26 forks 品質 84 トレンド 28MPL-2.0

hashicorp/vault-mcp-server は [https://github.com/hashicorp/vault-mcp-server.] からインポートされた MCP サーバーの候補です

概要

hashicorp/vault-mcp-server は [https://github.com/hashicorp/vault-mcp-server.] からインポートされた MCP サーバーの候補です

概要(AI 翻訳)

Vault MCP Server はモデルコンテキストプロトコル (MCP) です。 HashiCorp との統合を実現するサーバ実装 秘密やマウントを管理するためのボルト。 このサーバは、stdio と StreamableHTTP の両方を使用します。 MCP通信用トランスポート、デスクトップ向けClaude対応 その他MCPクライアント

セキュリティノート: この段階では、MCP サーバーはローカルでしか使用できません。 MCP サーバーは、信頼できるクライアントと信頼できるネットワークにのみデプロイされるべきです。 StreamableHTTP トランスポートを使用する場合は、[MCP_ALLOWED_ORIGINS]環境変数を常に設定し、信頼できるブラウザーのオリジンへのアクセスを制限します。 これは、DNSが攻撃や他のクロスオリジンブラウザの攻撃を結合するのを防ぐのに役立ちます。 [[[MCP_ALLOWED_ORIGINS]]は、CORS保護であり、notはネットワーク接続の許可リストです。

セキュリティノート: クエリに応じて、MCP サーバーは、Vault シークレットを含む特定の Vault データを MCP クライアントと LLM に公開することができます。 MCP サーバを信頼できない MCP クライアントや LLM で使用しないでください。

法的注意: サードパーティのMCPクライアント/LLMの使用は、そのようなMCP / LLMの使用条件にのみ適用され、IBMはそのようなサードパーティのツールのパフォーマンスについて責任を負いません.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Vault MCP Server

The Vault MCP Server is a Model Context Protocol (MCP) server implementation that provides integration with HashiCorp Vault for managing secrets and mounts. This server uses both stdio and StreamableHTTP transports for MCP communication, making it compatible with Claude for Desktop and other MCP clients.

Security Note: At this stage, the MCP server is intended for local use only. The MCP server should only be deployed in trusted networks with trusted clients. If using the StreamableHTTP transport, always configure the MCP_ALLOWED_ORIGINS environment variable to restrict access to trusted browser origins only. This helps prevent DNS rebinding attacks and other cross-origin browser attacks. MCP_ALLOWED_ORIGINS is a CORS protection and not a network connection allowlist.

Security Note: Depending on the query, the MCP server may expose certain Vault data, including Vault secrets, to the MCP client and LLM. Do not use the MCP server with untrusted MCP clients or LLMs.

Legal Note: Your use of a third party MCP Client/LLM is subject solely to the terms of use for such MCP/LLM, and IBM is not responsible for the performance of such third party tools. IBM expressly disclaims any and all warranties and liability for third party MCP Clients/LLMs, and may not be able to provide support to resolve issues which are caused by the third party tools.

Caution: The outputs and recommendations provided by the MCP server are generated dynamically and may vary based on the query, model, and the connected MCP client. Users should thoroughly review all outputs/recommendations to ensure they align with their organization’s security best practices, cost-efficiency goals, and compliance requirements before implementation.

Features

  • Create new mounts in Vault (KV v1, KV v2)
  • List all available mounts
  • Delete a mount
  • Write secrets to KV mounts
  • Read secrets from KV mounts
  • List all secrets under a path
  • Delete a complete secret or a key of a secret
  • Comprehensive HTTP middleware stack (CORS, logging, Vault context)
  • Session-based Vault client management
  • Structured logging with configurable output

Prerequisites

  • Go 1.24 or later (if building from source)
  • Docker
  • HashiCorp Vault server running locally or remotely
  • A valid Vault token with appropriate permissions

Setup

  1. Clone the repository:

    git clone https://github.com/hashicorp/vault-mcp-server.git
    cd vault-mcp-server
    
  2. Build the binary:

    make build
    
  3. Run the server:

    Stdio mode (default):

    ./vault-mcp-server
    # or explicitly
    ./vault-mcp-server stdio
    

    HTTP mode:

    ./vault-mcp-server http --transport-port 8080
    # or using make
    make run-http
    
GitHub で README 全文を見る

インストール

docker run -i --rm -e VAULT_ADDR=${input:vault_addr} -e VAULT_TOKEN=${input:vault_token} -e VAULT_NAMESPACE=${input:vault_namespace} hashicorp/vault-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →