OpenBao Secrets Engine MCP Server for Agentic AI!
pip install openbao-mcp==2.3.3 Copy PIP instructions
OpenBao Secrets and Encryption Key Vault orchestrator. Built with the highest architectural standards, incorporating dynamic facades, custom API routing, and FastMCP tool decoration.
Documentation — Installation, deployment, usage across the API, CLI, and MCP interfaces, and guidance for provisioning the OpenBao backend are maintained in the official documentation.
Openbao MCP provides a high-performance, model-optimized interface to Openbao capabilities. It isolates the model from underlying API transport complexity, ensuring safe, idempotent, and highly traceable system interactions.
The operator can configure tool filtering via multiple input channels:
When query strings or parameters are provided, an LLM-free Knowledge Graph resolution layer (using DynamicToolOrchestrator) matches query intents against known tool tags, names, or descriptions, with safe fallback and automated 24-hour background cache refreshing.
Install the connector-focused [mcp] extra. Examples use openbao-mcp[mcp] to add FastMCP / FastAPI through agent-connector-sdk; the required Agent Connector SDK core enables model orchestration.
Pick the extra that matches what the operator want to run:
# Connector-focused MCP server (includes the shared graph engine) uv pip install "openbao-mcp[mcp]" # Agent runtime (adds model orchestration to the shared graph engine) # Everything (development) uv pip install "openbao-mcp[all]" # or: python -m pip install "openbao-mcp[all]" Container images (:mcp) One multi-stage docker/Dockerfile builds the MCP-only image (--target mcp):
docker build --target mcp -t example/openbao-mcp:mcp docker/ # connector-focused MCP server docker/mcp.compose.yml runs the connector-focused :mcp server; docker/compose.yml runs the agent (immutable agent digest).
Agent Connector SDK core dependency (epistemic-graph[full]). The [mcp] extra keeps deployments can use the bundled engine. For production or shared state, run epistemic-graph as a dedicated database service and configure the runtime to use it. Deployment recipes (single-node + Raft HA), connection configuration, and architecture diagrams are documented in the epistemic-graph deployment guide.
The operator can start the FastMCP server in stdio mode via Python module execution:
import asyncio from openbao_mcp.mcp_server import get_mcp_instance async def main(): mcp = get_mcp_instance() # Execute stdio loop or launch server print("MCP Server ready.") if __name__ == "__main__": asyncio.run(main()) For direct shell start, ran:
python -m openbao_mcp.mcp_server Configuration The package is fully configurable via the environment variables listed below:
A local template is provided inside .env.example. Copy this file as .env and fill out the operator's specific service endpoint parameters before starting execution.
The following declarative FastMCP tools are registered and available to upstream AI agents. This table is auto-generated from the live server — do not edit by hand.
6 intent tool(s) · 0 operation(s). Call an operation as act(action=' ', params={...}) (ask for reads); find(action='describe', params={'action': ' '}) returns its arguments. An operation is enabled unless its TOOL toggle is set false. Auto-generated — do not edit.
See docs/overview.md or docs/concepts.md for deeper operational examples.
This package uses the standardized Agent-Utilities dynamic facade architecture:
graph TD User([User Agent]) --> Server[FastMCP Server] Server --> Facade[Api Dynamic Facade] Facade --> ClientBase[ApiClientBase] Facade --> Auth[Credentials Auth Handler] ClientBase --> Service([External Service API]) Deployment Bare-Metal (Standard pip) Set up the operator's Python virtual environment (>= 3.10). Install the package: pip install .[all] Export credentials: export OPENBAO_URL="http://127.0.0.1:8200" Run: python -m openbao_mcp.mcp_server Container (Docker Compose) A standard compose structure is provided inside the docker/ folder. Build and deploy:
docker compose -f docker/mcp.compose.yml up -d # :mcp server docker compose -f docker/compose.yml up --build -d # local agent build Or pull a prebuilt image:
docker pull example/openbao-mcp:mcp # connector-focused MCP server docker pull example/openbao-mcp@sha256: # agent runtime (default) The :mcp tag is the MCP-serving image (docker/Dockerfile --target mcp, installing openbao-mcp[mcp]); the default the immutable agent image is the full agent image the epistemic-graph engine. See Container images.
openbao-mcp can run as a local stdio process or container, or behind a remote network boundary. The Deployment guide carries the detailed transport contract.
{ "mcpServers": { "openbao-mcp": { "command": "uvx", "args": [ "--from", "openbao-mcp[mcp]", "openbao-mcp" ], "env": { "AUTHTOOL": "True", "BAO_ADDR": "http://127.0.0.1:8200", "OPENBAO_MCP_BASE_URL": "http://127.0.0.1:8200", "OPENBAO_TOKEN": "bao_root_token", "OPENBAO_URL": "http://127.0.0.1:8200", "SECRETSTOOL": "True", "SSHTOOL": "True", "SYSTOOL": "True", "VAULT_ADDR": "http://127.0.0.1:8200" } } } } Runtime references require an alias-aware launcher such as Arbora. Other launchers must omit those entries and inject the resolved values through their own runtime secret boundary.
{ "mcpServers": { "openbao-mcp": { "url": "http://localhost:8000/openbao-mcp/mcp" } } } Run a reviewed container image as a least-privilege stdio child (no listener or published port):
docker run -i --rm \ --read-only \ --cap-drop=ALL \ --security-opt=no-new-privileges \ --pids-limit=256 \ --tmpfs /tmp:rw,noexec,nosuid,nodev,size=64m \ -e TRANSPORT=stdio \ -e AUTHTOOL=True \ -e BAO_ADDR=http://127.0.0.1:8200 \ -e OPENBAO_MCP_BASE_URL=http://127.0.0.1:8200 \ -e OPENBAO_TOKEN=bao_root_token \ -e OPENBAO_URL=http://127.0.0.1:8200 \ -e SECRETSTOOL=True \ -e SSHTOOL=True \ -e SYSTOOL=True \ -e VAULT_ADDR=http://127.0.0.1:8200 \ registry.example.invalid/openbao-mcp@sha256: openbao-mcp For containerized network HTTP, supply an authenticated TLS ingress (or direct server TLS), exact MCP_ALLOWED_HOSTS, and an exact trusted-proxy CIDR policy through the operator-owned deployment profile. The generator does not emit an unauthenticated non-loopback listener.
Auto-generated from the code-read env surface (package vars) — do not edit.
The complete documentation is published as the official documentation site and is the recommended reference for installation, deployment, and day-to-day operation.
AGENTS.md is the canonical contributor/agent guidance.
Please audit all code changes against the repository's contribution and review requirements, and run:
pre-commit run --all-files License This project is licensed under the MIT License. See the LICENSE file for complete details.
17 package + 23 inherited variable(s). Auto-generated from .env.example + the shared agent-connector-sdk set — do not edit.
This package ships a compact canonical skill surface with specialist procedures kept as referenced workflows. The current MCP tools, skill metadata, connector_manifest.yml, ontology, mappings, shapes, fixtures, migrations, tool-schema fingerprints, and certification metadata form one versioned capability contract. Validate them together; do not rely on stale tool names or historical per-task skill wrappers.
Runtime endpoints, credentials, certificate trust, tenant identity, retention, and observability policy are deployment inputs and are never packaged values. See Configuration, trust, and privacy before enabling a network transport, connector ingestion, Arbora delegation, or trace export.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




