MCP-OpenStack-Ops
128 MCP tools for OpenStack operations, monitoring, automation, and troubleshooting — with read-only access by default.
- GitHub: https://github.com/call518/MCP-OpenStack-Ops
- PyPI: https://pypi.org/project/mcp-openstack-ops/
- License: MIT
Introduction
Managing OpenStack infrastructure typically involves a combination of CLI commands, API requests, configuration files, and service-specific operational knowledge.
Even a relatively simple task, such as investigating an instance that cannot access the network, may require checking Nova, Neutron, security groups, router interfaces, and floating IP associations.
What if an infrastructure engineer could perform these operations using natural language?
MCP-OpenStack-Ops is an open-source Model Context Protocol (MCP) server that connects AI assistants to OpenStack APIs.
It allows engineers to inspect infrastructure, troubleshoot problems, manage resources, and orchestrate operations through natural-language requests.
Rather than replacing OpenStack's existing management APIs, the project makes them accessible through MCP-compatible AI clients.
What Can You Do?
Here are some example requests:
Show me the overall OpenStack cluster status. List all instances that are currently stopped. Show all networks, subnets, and routers in my project. Show the vCPUs and memory allocated to my project and the remaining quota. Show the CPU utilization of web-01 over the last hour. Check the health of my load balancer and its backend members. Create a new instance using the specified image and flavor. Stop all instances whose names contain "test". The AI client selects the appropriate MCP tools, invokes the OpenStack APIs through the server, and interprets the returned information.
Read operations are available by default. Requests that modify infrastructure require explicitly enabling management tools.
Example: OpenStack Cluster Status in Claude Desktop
The Same Project in OpenStack Horizon
Architecture
MCP-OpenStack-Ops acts as a bridge between AI clients and OpenStack services.
Natural Language | v +-----------------------+ | AI Clients | | | | Claude Desktop/Code | | OpenAI Codex | | OpenWebUI | +-----------+-----------+ | MCP Protocol (stdio / Streamable HTTP) | v +-----------------------+ | MCP-OpenStack-Ops | | | | 128 MCP Tools | | Resource Management | | Monitoring | | Security Controls | | Project Isolation | +-----------+-----------+ | OpenStack SDK | v +-----------------------+ | OpenStack APIs | | | | Nova / Neutron | | Cinder / Glance | | Keystone / Heat | | Octavia / Barbican | | Gnocchi / Aodh | +-----------------------+ The server is built with:
- Python 3.12
- FastMCP
- OpenStackSDK
- Gnocchi Client
- Docker / Docker Compose
It supports both local execution and containerized deployment, with stdio and Streamable HTTP transports.
Key Features
1. Comprehensive OpenStack API Coverage
The project currently provides 128 MCP tools, consisting of:
- 72 read-only tools for infrastructure inspection, monitoring, and troubleshooting.
- 56 management tools for creating, modifying, and deleting resources.
| OpenStack Service | Capabilities |
|---|---|
| Nova | Instance operations, flavors, hypervisors, server events, server groups |
| Neutron | Networks, subnets, routers, ports, security groups, floating IPs, port forwarding, QoS |
| Cinder | Volumes, snapshots, storage operations |
| Glance | Image discovery and management |
| Keystone | Identity and project-related operations |
| Heat | Stack orchestration and lifecycle management |
| Octavia | Load balancers, listeners, pools, members, health monitors, amphora operations |
| Barbican | Secret metadata, containers, certificates, ACLs, TLS integration |
| Gnocchi | Telemetry metrics and time-series queries |
| Aodh | Alarm inspection and management |
This coverage makes it possible to perform multi-service infrastructure operations through a single conversational interface.
A detailed mapping between OpenStack CLI commands and the corresponding MCP tools is available in the project README.
2. Read-Only by Default
Allowing an AI assistant to interact with infrastructure requires clear safety boundaries.
MCP-OpenStack-Ops addresses this by separating read-only tools from resource-modification tools.
The default configuration is:
ALLOW_MODIFY_OPERATIONS=false In this mode, resource-modification tools are not registered with the MCP server.
To enable operations such as creating, updating, or deleting resources:
ALLOW_MODIFY_OPERATIONS=true The server must be restarted for the change to take effect.
Additional controls include:
- Project-scoped resource access and ownership validation.
- OpenStack policy enforcement through the authenticated account.
- Optional HTTP Bearer authentication.
- Optional cross-project read access, disabled by default.
- Safety limits for filtered bulk operations.
- Per-resource operation results and post-action status feedback.
These protections are intended to reduce operational risk, but they do not replace infrastructure access controls, change review, or operator oversight.
3. Natural-Language Infrastructure Troubleshooting
One of the primary goals of this project is to reduce the effort required to investigate infrastructure problems.
For example:
Find all instances in ERROR state and show their recent events, associated networks, and volumes. Traditionally, an engineer would collect this information through several OpenStack CLI commands.
With MCP-OpenStack-Ops, an AI client can use multiple tools to retrieve related information and organize it into a single diagnostic response.
The project exposes server events, networking resources, storage relationships, hypervisor information, and resource quotas to support this process.
The actual diagnostic result depends on the available OpenStack APIs and the permissions assigned to the account.
4. Monitoring and Resource Usage
MCP-OpenStack-Ops supports infrastructure monitoring queries and resource allocation analysis.
For example:
Show the current resource usage and quota limits for my OpenStack project. Show the CPU utilization of web-01 over the last 60 minutes at one-minute intervals. Monitoring features include:
- OpenStack service status inspection.
- Instance and resource inventory.
- Project resource allocations and quota information.
- API-backed compute allocation-hours.
- Gnocchi time-series metric queries.
- Aodh alarm inspection and management.
Resource allocation statistics and live utilization metrics are different types of information.
Time-series CPU and other telemetry queries require the corresponding telemetry services, such as Ceilometer and Gnocchi, to be deployed and configured.
5. Bulk and Filtered Operations
The project supports bulk operations and resource filtering.
For example:
Stop all running instances whose names contain "test". List all volumes that are currently available and are not attached to any instance. Find instances using a specific image or flavor. Management tools provide per-resource operation results and, where applicable, the resource status after the requested action.
Filtered instance modification operations also enforce a configurable maximum number of matching resources.
INSTANCE_FILTER_MAX_MATCHES=100 This helps prevent unintended large-scale changes caused by overly broad filters.
6. Advanced Load Balancing and TLS Management
Octavia and Barbican integration enables more advanced infrastructure configurations.
Supported capabilities include:
- Load balancers, listeners, pools, and members.
- Health monitors and amphora operations.
- HTTPS termination using
TERMINATED_HTTPSlisteners. - TLS passthrough.
- Backend TLS re-encryption.
- Mutual TLS (mTLS) configurations.
- Self-signed certificate generation.
- Barbican secret metadata, containers, orders, and ACLs.
Barbican secret payloads are deliberately excluded from MCP tool inputs and outputs to prevent private key material and other secret payloads from being exposed to the language model through these tools.
See the Barbican and TLS Guide for more details.
Practical Demonstration: AI-Driven Auto Scaling
One of the most interesting capabilities demonstrated with MCP-OpenStack-Ops is the creation of an OpenStack auto-scaling environment from a natural-language request.
No Heat template was manually authored by the operator.
The objective was to deploy a web application environment with:
- An HTTPS load balancer.
- TLS termination through Octavia.
- A self-signed certificate stored in Barbican.
- A Heat auto-scaling group.
- CPU-based scaling policies using Gnocchi and Aodh.
The Natural-Language Request
The following request was given to the AI client:
Use the test-rockylinux-9 VM (web server) as the source for a new base image. Create and bring up a Heat stack with a TLS-terminating load balancer and autoscaling web servers.
Run 2 web servers under normal conditions, with a maximum of 4. Scale out by 1 when average CPU utilization stays above 60% for 5 minutes, and scale in by 1 when it stays below 40% for 5 minutes, down to a minimum of 2. Use a 900-second cooldown and set the stack's timeout_mins to 60.
What Happened?
Using the MCP tools, the AI client performed the necessary OpenStack operations, including:
- Creating a base image from an existing web server instance.
- Generating and registering a TLS certificate in Barbican.
- Preparing the Heat orchestration template.
- Configuring an Octavia HTTPS load balancer.
- Configuring the auto-scaling group and CPU alarm policies.
- Deploying the Heat stack.
The Heat template was generated through the AI workflow rather than manually authored by the operator.
Infrastructure Architecture
HTTPS Clients | TCP 443 | v +-----------------------+ | Octavia Load Balancer | | TERMINATED_HTTPS |<--- Barbican +-----------+-----------+ TLS Certificate | HTTP Backend | +------------+------------+ | | | v v v +--------+ +--------+ +--------+ | Web 01 | | Web 02 | | Web N | +--------+ +--------+ +--------+ | | | +------------+------------+ | CPU Telemetry | v Ceilometer | v Gnocchi | v Aodh | Scaling Signals | v +-----------------------+ | Heat Scaling Policies | | Auto-Scaling Group | | Min 2 / Max 4 | +-----------------------+ Auto-Scaling Configuration
| Parameter | Value |
|---|---|
| Initial instances | 2 |
| Minimum instances | 2 |
| Maximum instances | 4 |
| Scale-out threshold | CPU > 60% for 5 minutes |
| Scale-in threshold | CPU < 40% for 5 minutes |
| Scaling adjustment | 1 instance |
| Cooldown | 900 seconds |
| Load balancing | Octavia with HTTPS termination |
Auto-Scaling Validation
During the validation test, CPU load was generated against the web servers.
The auto-scaling group expanded from 2 to 4 instances under sustained load and returned to 2 instances after the load ended and the scale-in conditions were satisfied.
The Grafana chart illustrates the actual instance scaling behavior during the test.
Analyzing the Result Through Natural Language
After deployment, the AI client was also used to query the CPU utilization of the auto-scaling group members.
Gnocchi time-series data was retrieved through MCP tools, allowing the client to generate an analysis, chart, and CSV output.
This demonstrates a workflow that goes beyond individual API calls:
Natural-Language Request | v Infrastructure Provisioning | v Monitoring and Telemetry | v Operational Validation | v Data Analysis and Reporting The complete walkthrough, including the generated templates and verification details, is available here:
Supported AI Clients
MCP-OpenStack-Ops can be integrated with several MCP-capable clients.
| Client | Integration |
|---|---|
| Claude Desktop | MCP extension bundle, uvx, local or remote connections |
| Claude Code | MCP server integration |
| OpenAI Codex | MCP configuration for CLI, desktop app, and IDE environments |
| OpenWebUI | Streamable HTTP MCP or optional MCPO proxy |
The supported authentication and deployment options vary by client.
Quick Start: Claude Desktop
For Claude Desktop, the simplest installation method is the prepackaged MCP extension.
- Download the
.mcpbbundle from GitHub Releases. - Open Claude Desktop settings.
- Navigate to Extensions > Advanced settings > Install Extension.
- Select the downloaded bundle.
- Enter the OpenStack authentication information.
- Leave modification operations disabled for the initial setup.
Then try:
List all instances in my OpenStack project. For additional installation methods, including uvx, local source installation, and remote MCP connections, see the Claude Desktop Guide.
Quick Start: Docker Compose
For developers who prefer a self-hosted web interface, the repository includes a Docker Compose configuration with:
- OpenWebUI
- MCP-OpenStack-Ops server
- Optional MCPO proxy
Step 1: Clone the Repository
git clone https://github.com/call518/MCP-OpenStack-Ops.git cd MCP-OpenStack-Ops Step 2: Prepare Configuration
cp .env.example .env cp mcp-config.json.http mcp-config.json.http.local chmod 600 .env mcp-config.json.http.local Generate a secret key:
openssl rand -hex 32 Edit .env to configure your OpenStack credentials and use the generated value as WEBUI_SECRET_KEY.
Important configuration variables include:
OS_PROJECT_NAME=your_project_name OS_USERNAME=your_username OS_PASSWORD=your_password OS_AUTH_HOST=your-openstack-host ALLOW_MODIFY_OPERATIONS=false ALLOW_CROSS_PROJECT_READ=false For production deployment, use HTTPS, properly configured certificate validation, restricted credentials, and appropriate access controls.
Step 3: Start the Services
docker compose up -d docker compose ps The default endpoints are:
| Component | URL |
|---|---|
| OpenWebUI | http://localhost:3000 |
| MCP Server | http://localhost:8000/mcp |
| MCPO Proxy | http://localhost:8080 |
After startup, configure a tool-calling model provider in OpenWebUI and register the MCP endpoint.
When connecting directly from the OpenWebUI container, use:
http://mcp-server:8000/mcp Then try:
Use mcp-openstack-ops to show the current status of my OpenStack project. MCPO is optional. OpenWebUI can communicate directly with the MCP server through Streamable HTTP.
To start without MCPO:
docker compose up -d mcp-server open-webui The complete OpenWebUI configuration steps, including model compatibility and tool registration, are documented in the OpenWebUI Integration Guide.
Deployment and Authentication Options
MCP-OpenStack-Ops supports several deployment and authentication configurations.
| Feature | Support |
|---|---|
| Local MCP transport | stdio |
| Remote MCP transport | Streamable HTTP |
| Python package | PyPI / uvx |
| Container deployment | Docker |
| Integrated web interface | Docker Compose / OpenWebUI |
| Desktop extension | MCPB |
| OpenStack authentication | Username and password |
| Remote MCP authentication | HTTP Bearer token |
| Per-user authentication | OpenStack Application Credentials (experimental) |
| Multiple projects | Separate MCP server instances |
| Cross-project reads | Optional, policy-controlled |
| Custom API endpoints | Supported |
| HTTPS and private CA | Supported |
The experimental multi-user mode authenticates individual HTTP requests using OpenStack Application Credentials instead of a shared server-side OpenStack account.
See the Multi-User Guide for client compatibility and configuration details.
OpenStack Version Compatibility
The project has documented validation against multiple OpenStack releases.
| OpenStack Release | Validation |
|---|---|
| Hibiscus (2026.2) | Full live check documented on November 29, 2026 |
| Epoxy (2025.1) | Tested |
| Dalmatian (2024.2) | Tested |
Other OpenStack versions may work, depending on API compatibility and SDK requirements.
The project maintains detailed documentation of live API validation, unit tests, known limitations, and tool-specific behavior.
For the detailed test environment, conditions, and results, see:
Security Considerations
Infrastructure automation through AI introduces additional operational risks, particularly when management tools can change live resources.
MCP-OpenStack-Ops provides several security mechanisms.
Read-Only Deployment
Modification tools are disabled unless explicitly enabled.
ALLOW_MODIFY_OPERATIONS=false Project Isolation
Project resource operations are scoped to the authenticated project, with resource ownership checks.
Cloud-wide administrative APIs remain subject to OpenStack policy.
OpenStack RBAC
API access remains subject to Keystone roles and OpenStack service policies.
The MCP server does not grant additional OpenStack permissions.
Remote Authentication
HTTP deployments can use Bearer authentication.
REMOTE_AUTH_ENABLE=true REMOTE_SECRET_KEY=your-strong-secret-key Remote access should also be protected with HTTPS and appropriate certificate validation.
Cross-Project Reads
Cross-project read access is an advanced, opt-in capability.
ALLOW_CROSS_PROJECT_READ=false Enabling this option does not grant additional OpenStack permissions. The authenticated account must already have the necessary access through OpenStack policy.
Secret Handling
Barbican integration avoids exposing secret payloads directly to the language model through MCP tools.
For operational deployments, I recommend starting with read-only mode and least-privilege OpenStack credentials.
See the Security Guide for more information.
Why I Built This Project
As a system engineer working with virtualization, cloud infrastructure, and automation, I have spent considerable time operating and troubleshooting complex infrastructure environments.
OpenStack provides extensive APIs and command-line tools, but practical operations often require combining information from multiple services.
I wanted to explore how MCP and AI assistants could simplify these workflows without introducing another proprietary infrastructure management layer.
The goal of MCP-OpenStack-Ops is not to eliminate the need for experienced infrastructure engineers.
Instead, it is to:
- Make existing operational capabilities easier to access.
- Reduce repetitive manual operations.
- Simplify multi-service infrastructure troubleshooting.
- Improve accessibility to infrastructure monitoring data.
- Explore practical AI-driven infrastructure automation.
- Maintain explicit operational and security boundaries.
The project is being developed and validated through practical OpenStack environments, with attention to API behavior, operational safety, and compatibility.
Documentation and Resources
The repository includes detailed configuration, integration, and operational documentation.
| Documentation | Description |
|---|---|
| GitHub Repository | Source code and project overview |
| Configuration Guide | Environment variables, endpoints, deployment options |
| Usage Guide | Natural-language examples and operational workflows |
| Claude Desktop Guide | Desktop integration |
| Claude Code Guide | Claude Code integration |
| Codex Guide | OpenAI Codex integration |
| OpenWebUI Guide | Docker Compose and OpenWebUI integration |
| Security Guide | Authentication and operational safety |
| Multi-User Guide | Per-user Application Credentials |
| Cross-Project Reads Guide | Policy-controlled cross-project queries |
| Barbican and TLS Guide | Certificate and TLS management |
| Heat Auto-Scaling Tutorial | Practical AI-driven infrastructure orchestration |
| Validation Evidence | Live validation and test results |
Both English and Korean documentation are available.
Conclusion
MCP-OpenStack-Ops demonstrates how the Model Context Protocol can connect AI assistants with practical infrastructure management workflows.
With 128 MCP tools, support for major OpenStack services, safety-gated operations, and multiple AI client integrations, the project provides an extensible foundation for natural-language OpenStack operations.
The Heat auto-scaling demonstration shows how an AI client can coordinate multiple OpenStack services to deploy, monitor, and validate infrastructure through a conversational workflow.
This project is an ongoing exploration of how AI can be applied to practical infrastructure engineering and operations.
If you work with OpenStack, cloud infrastructure, DevOps, infrastructure automation, or MCP-based AI agents, feel free to explore the repository, review the documentation, report issues, or contribute.
Feedback, suggestions, and contributions are welcome.
Project Links
- GitHub: https://github.com/call518/MCP-OpenStack-Ops
- PyPI: https://pypi.org/project/mcp-openstack-ops/
- Docker Hub: https://hub.docker.com/r/call518/mcp-server-openstack-ops
- GitHub Releases: https://github.com/call518/MCP-OpenStack-Ops/releases
- Issue Tracker: https://github.com/call518/MCP-OpenStack-Ops/issues
- DeepWiki: https://deepwiki.com/call518/MCP-OpenStack-Ops
call518 / MCP-OpenStack-Ops
100+ OpenStack tools for AI agents via MCP: compute, network, storage, identity, Heat, Octavia load balancing and Gnocchi telemetry. Read-only and project-scoped by default. Works with Claude Desktop (.mcpb), Open WebUI and any MCP client. Available on PyPI and Docker Hub.
English | Korean
MCP-OpenStack-Ops
MCP OpenStack Operations Server: A comprehensive MCP (Model Context Protocol) server providing OpenStack project management and monitoring capabilities with built-in safety controls and single-project scope.
What is MCP-OpenStack-Ops?
MCP-OpenStack-Ops lets an AI assistant such as Claude or a model in OpenWebUI inspect and operate an OpenStack project in plain language. It is an MCP server that turns requests like "which instances are stopped?" into OpenStack API calls and returns the results.
- Read-only by default: tools that create, change or delete resources are not even registered unless you enable them.
- One project at a time: each server works inside one OpenStack project and checks resource ownership.
- Broad coverage: 128 tools (72 read-only, 56 management) for Nova Neutron, Cinder, Glance, Keystone, Heat, Octavia, Barbican, and Gnocchi/Aodh telemetry.
For an AI-generated walkthrough of the code, see .
What can you do with it?
Showcase: a…
Author: JungJungIn (call518)
License: MIT





