# Connect OpenBao to Your AI Agent (Universal MCP)

> Use your AI to audit security, monitor compliance, and manage databases in OpenBao — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http openbao https://api.universalmcp.app/mcp/openbao`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/openbao` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "openbao", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: OpenBao (Community-driven fork of HashiCorp Vault managed by the Linux Foundation) | Category: DevOps & IT/Security | Auth: Encrypted API credentials or guided self-hosted setup | Deployment: self-hosted
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Secrets metadata, Policies and roles, Change requests; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://app.universalmcp.app/connect?system=openbao | Guide: https://universalmcp.app/mcp/openbao
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (13 actions: 5 Read, 8 Write)
Perform over 10 actions across leasing and renewal, secure secret storage, dynamic secrets, and identity based access. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Leasing and Renewal (4):** View Secret Lease Status (read), Renew Secret Lease (write), Review Lease Expiry Times (read), Revoke Secret Lease (write)
- **Secure Secret Storage (3):** Store Key/Value Secret (write), Read Stored Secret (read), Encrypt Data In Transit (write)
- **Dynamic Secrets (3):** Generate Kubernetes Dynamic Secret (write), Generate SQL Database Dynamic Secret (write), List Active Dynamic Secrets (read)
- **Identity based access (3):** Define Access Policy (write), Map Identity Across Providers (write), Review Access Permissions (read)

## Example Prompts for OpenBao
- **Lease expiry:** "List every OpenBao database lease expiring before the weekend, with its TTL and the owning policy name."
- **Policy review:** "Show OpenBao policies attached to AppRole roles that have not authenticated in the last 90 days."
- **Rotation plan:** "Summarize which OpenBao KV v2 secret paths are due for rotation and the steps to rotate each one."
- **Draft rotation ticket:** "Draft a rotation request for the billing-ro lease in OpenBao, then hold it for security approval before submitting."
