openstack-mcp-server
This MCP server lets AI assistants inspect an OpenStack cloud read-only by default, with project-scoped access and bounded, typed, paged results.
Call
get_scopeto see mode, allowed projects, limits, credential status, and server settings.Inspect compute: servers, server details, and flavors.
Inspect images: list/filter images and get image details.
Inspect block storage: volumes, volume details, and volume attachments.
Inspect networking: networks, subnets, ports, floating IPs, routers, router interfaces, security groups, and rules.
Inspect identity/catalog: regions, domains, projects, services, and endpoints.
Inspect service inventory: hypervisors, compute services, host aggregates, network agents, and volume services.
Use list filters and pagination (
limit,marker,next_marker,complete) where supported.Optionally enable admin mode plus write tools for experimental write operations, but those are not registered by default.
Provides read-only inspection of OpenStack clouds, including compute servers and flavors, images, block storage volumes and attachments, networking resources, identity catalog data, and service inventory through the OpenStack APIs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@openstack-mcp-server show me all the servers running in my OpenStack project"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
openstack-mcp-server
Community project, not affiliated with OpenStack/OpenInfra Foundation.
A Model Context Protocol server that lets AI assistants inspect OpenStack clouds. It is read-only by default, bounded in what it returns, and configured entirely through OpenStack's own settings and environment variables, so it runs unchanged as a local process or a container.
flowchart LR
AI[MCP client] <-->|stdio / Streamable HTTP| Server[openstack-mcp-server]
Server <-->|openstacksdk| Cloud[OpenStack APIs]Features
32 read tools for compute, images, block storage, networking, the Keystone catalog and service inventory, plus
get_scope.Write tools are not registered unless explicitly enabled by two settings.
Project allowlist: each allowed project gets its own project-scoped session.
Every list has
limit,completeandnext_marker; results are typed (outputSchema,structuredContent) and capped in size.Errors are
isErrorresults with a category and an action, without SDK messages, URLs or tokens.stdio by default; Streamable HTTP on loopback as an option.
Container image without credentials, running as an unprivileged user.
The read-only mode is a convenience. The security boundary is the Keystone role of the identity you configure; see SECURITY.md.
Related MCP server: openstack-mcp
Quick start
The server is listed in the MCP Registry
as io.github.oomchiller/openstack-mcp-server; registry-aware clients can
install it from there. Manual setup:
Container (Docker MCP Toolkit or any MCP client)
docker run --rm -i \
-e OS_AUTH_URL=https://keystone.example.com:5000/v3 \
-e OS_USERNAME=mcp-reader -e OS_PASSWORD \
-e OS_USER_DOMAIN_NAME=Default -e OS_PROJECT_ID=0123456789abcdef0123456789abcdef \
-e OS_REGION_NAME=RegionOne \
ghcr.io/oomchiller/openstack-mcp-server@sha256:<digest>Pin the image by digest; release digests are listed on the
releases page.
For a private CA, pass the certificate text in OPENSTACK_MCP_CACERT_PEM.
Local process with clouds.yaml
{
"mcpServers": {
"openstack": {
"command": "uvx",
"args": ["--from", "git+https://github.com/oomchiller/openstack-mcp-server@v0.1.2", "openstack-mcp-server"],
"env": { "OS_CLOUD": "mycloud" }
}
}
}clouds.yaml is found the usual way (OS_CLIENT_CONFIG_FILE,
./clouds.yaml, ~/.config/openstack/clouds.yaml, /etc/openstack/).
Configuration
Credentials come from openstacksdk: OS_CLOUD with clouds.yaml, or OS_*
variables (password or application credentials). Server behaviour:
Variable | Default | Meaning |
|
|
|
|
| With |
| empty | Comma-separated project IDs the server may use; the first is the default. |
|
| Items per list call when |
|
| Largest accepted |
|
| Largest result; larger ones fail with |
|
| Seconds per OpenStack request; no retries. |
| unset | CA bundle as PEM text; takes precedence over |
|
| Allow |
|
| Register the prompt. |
|
| Register |
|
|
|
|
| HTTP bind; path |
|
| Allow a non-loopback HTTP bind. The HTTP transport has no authentication. |
|
| stderr log level. SDK loggers stay at |
An invalid OPENSTACK_MCP_* value stops the server with exit code 2 and
names the variable. Missing credentials do not: the server starts, and cloud
tools return [not_configured].
Gateways that run several instances of this server and do not prefix prompt
names or resource URIs (Docker MCP Gateway) should set
OPENSTACK_MCP_ENABLE_PROMPTS=false and OPENSTACK_MCP_ENABLE_RESOURCES=false.
Tools
Group | Tools |
Scope |
|
Compute |
|
Image |
|
Block storage |
|
Network |
|
Identity |
|
Service inventory |
|
Identity and service inventory usually need more than a project reader
role; such calls fail with [forbidden] rather than returning empty lists.
With OPENSTACK_MCP_MODE=admin and OPENSTACK_MCP_ENABLE_WRITE_TOOLS=true,
31 experimental write tools are added (servers, volumes, images, networks,
subnets, ports, floating IPs, routers, security groups). See
docs/SPEC.md for the full behaviour.
Development
uv sync --locked
uv run pytest --cov
uv run ruff check . && uv run ruff format --check .
uv run mypy src testsSee CONTRIBUTING.md, ARCHITECTURE.md and DECISIONS.md.
License
Apache License 2.0; see LICENSE. Parts of the code started in openstack-kr/python-openstackmcp-server; see NOTICE.
Available Tools
32 toolsget_imageGet imageARead-onlyIdempotent
Get one image by ID: status, visibility, formats, size, minimum disk and RAM, tags.
Use list_images to find IDs by name. Returns not_found if the image does not exist or is not visible to the selected project.
Inputs: image_id (required), project_id. Returns: id, name, size, tags, +15 more
get_networkGet networkARead-onlyIdempotent
Get one network by ID: status, sharing and external flags, MTU, subnets, provider data.
Use list_networks to find IDs, with shared=true for shared networks. Returns not_found if the network is not visible to the selected project.
Inputs: network_id (required), project_id. Returns: id, mtu, name, status, +10 more
get_portGet portARead-onlyIdempotent
Get one port by ID: network, device, MAC, fixed IPs, security groups, address pairs.
Use list_ports to find IDs by network or device. Returns not_found if the port is not visible to the selected project.
Inputs: port_id (required), project_id. Returns: id, name, status, device_id, +9 more
get_routerGet routerARead-onlyIdempotent
Get one router by ID: status, external gateway, static routes, HA and distributed flags.
Use list_router_interfaces for its internal subnets. Returns not_found if the router is not visible to the selected project.
Inputs: router_id (required), project_id. Returns: id, name, is_ha, routes, +6 more
get_scopeShow server scopeARead-onlyIdempotent
Show mode, allowed projects, limits and whether credentials are configured.
Does not contact the cloud. Call it first.
Inputs: no named parameters. Returns: tls, mode, limits, reason, +9 more
get_security_groupGet security groupARead-onlyIdempotent
Get one security group by ID with all its rules: direction, protocol, ports, remote.
Use list_security_groups to find IDs by name. Returns not_found if the group is not visible to the selected project.
Inputs: security_group_id (required), project_id. Returns: id, name, stateful, project_id, +2 more
get_serverGet serverARead-onlyIdempotent
Get one server by ID: status, flavor, image, addresses, security groups and volumes.
Use list_servers to find IDs by name or status. Returns not_found if the ID is not in the selected project.
Inputs: server_id (required), project_id. Returns: id, name, image, flavor, +10 more
get_subnetGet subnetARead-onlyIdempotent
Get one subnet by ID: CIDR, gateway, DHCP, allocation pools, DNS servers and routes.
Use list_subnets to find IDs, optionally for one network. Returns not_found if the subnet is not visible to the selected project.
Inputs: subnet_id (required), project_id. Returns: id, cidr, name, gateway_ip, +8 more
get_volumeGet volumeARead-onlyIdempotent
Get one volume by ID: status, size (GiB), type, bootable, encrypted, attachments.
Use list_volumes to find IDs by name or status. Returns not_found if the ID is not in the selected project.
Inputs: volume_id (required), project_id. Returns: id, name, size, status, +8 more
get_volume_attachmentGet volume attachmentARead-onlyIdempotent
Get one Cinder attachment record by ID, without connection details.
Inputs: attachment_id (required), project_id. Returns: Cinder attachment record. Connection info and connector are not exported.
list_aggregatesList host aggregatesARead-onlyIdempotent
List Nova host aggregates with availability zone and hosts. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: limit, project_id. Returns: items, limit, complete, resource, +3 more
list_compute_servicesList compute servicesARead-onlyIdempotent
List running Nova daemons such as nova-compute with host and state. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: host, limit, binary, project_id. Returns: items, limit, complete, resource, +3 more
list_domainsList domainsARead-onlyIdempotent
List Keystone domains. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: name, limit, project_id. Returns: items, limit, complete, resource, +3 more
list_endpointsList catalog endpointsARead-onlyIdempotent
List Keystone catalog endpoints with interface and URL. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: limit, interface, region_id, project_id, +1 more. Returns: items, limit, complete, resource, +3 more
list_flavorsList flavorsARead-onlyIdempotent
List flavors visible to the project: vCPUs, RAM (MiB), disk (GiB).
Paged with limit and marker. Use it to resolve the flavor of a server.
Inputs: limit, marker, project_id. Returns: items, limit, complete, resource, +3 more
list_floating_ipsList floating IPsARead-onlyIdempotent
List the project's floating IPs with the fixed IP, port and router they map to.
Paged with limit and marker. There is no get tool: filter by port_id to find the floating IP of one port.
Inputs: limit, marker, status, port_id, +2 more. Returns: items, limit, complete, resource, +3 more
list_hypervisorsList hypervisorsARead-onlyIdempotent
List Nova hypervisors with state and capacity. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: limit, project_id. Returns: items, limit, complete, resource, +3 more
list_imagesList imagesARead-onlyIdempotent
List images visible to the project with status, visibility, formats and size.
Paged with limit and marker. Use get_image for one image by ID.
Inputs: name, limit, marker, status, +2 more. Returns: items, limit, complete, resource, +3 more
list_network_agentsList network agentsARead-onlyIdempotent
List Neutron agents with host and liveness. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: host, limit, agent_type, project_id. Returns: items, limit, complete, resource, +3 more
list_networksList networksARead-onlyIdempotent
List the project's networks, or shared networks with shared=true.
Paged with limit and marker.
Inputs: limit, marker, shared, status, +1 more. Returns: items, limit, complete, resource, +3 more
list_portsList portsARead-onlyIdempotent
List the project's ports with fixed IPs and security groups.
Paged with limit and marker.
Inputs: limit, marker, status, device_id, +2 more. Returns: items, limit, complete, resource, +3 more
list_projectsList projectsARead-onlyIdempotent
List Keystone projects. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: name, limit, domain_id, project_id. Returns: items, limit, complete, resource, +3 more
list_regionsList regionsBRead-onlyIdempotent
List Keystone regions. Not paged.
Inputs: limit, project_id. Returns: items, limit, complete, resource, +3 more
list_router_interfacesList router interfacesARead-onlyIdempotent
List a router's internal interfaces: port, subnet and IP address.
Not paged; complete=false means the router has more interfaces.
Inputs: router_id (required), limit, project_id. Returns: items, limit, complete, resource, +3 more
list_routersList routersARead-onlyIdempotent
List the project's routers with external gateway and static routes.
Paged with limit and marker. Use list_router_interfaces for the subnets a router connects.
Inputs: limit, marker, status, project_id. Returns: items, limit, complete, resource, +3 more
list_security_groupsList security groupsARead-onlyIdempotent
List the project's security groups with their rules.
Paged with limit and marker.
Inputs: name, limit, marker, project_id. Returns: items, limit, complete, resource, +3 more
list_serversList serversARead-onlyIdempotent
List servers in the project with status, flavor, image, addresses and volumes.
Paged with limit and marker. Use get_server for one server by ID.
Inputs: name, limit, marker, status, +1 more. Returns: items, limit, complete, resource, +3 more
list_servicesList catalog servicesARead-onlyIdempotent
List Keystone catalog entries such as compute or network, not running daemons. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: type, limit, project_id. Returns: items, limit, complete, resource, +3 more
list_subnetsList subnetsARead-onlyIdempotent
List the project's subnets with CIDR, gateway and DHCP settings.
Paged with limit and marker.
Inputs: limit, marker, ip_version, network_id, +1 more. Returns: items, limit, complete, resource, +3 more
list_volume_attachmentsList volume attachmentsBRead-onlyIdempotent
List Cinder attachment records (API microversion 3.27 or later).
Connection details are not returned. Paged with limit and marker.
Inputs: limit, marker, volume_id, project_id, +1 more. Returns: items, limit, complete, resource, +3 more
list_volumesList volumesARead-onlyIdempotent
List volumes in the project with size (GiB), type, status and attachments.
Paged with limit and marker. Use get_volume for one volume by ID.
Inputs: name, limit, marker, status, +1 more. Returns: items, limit, complete, resource, +3 more
list_volume_servicesList volume servicesARead-onlyIdempotent
List running Cinder daemons such as cinder-volume with host and state. Usually needs more than a project reader role; forbidden means the role is missing, not that the list is empty. Not paged; narrow with filters.
Inputs: host, limit, binary, project_id. Returns: items, limit, complete, resource, +3 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 32 tools
Most tools are cleanly separated by resource (servers, images, volumes, networks, subnets, ports, routers, security groups), each with a list/get pairing and descriptions that explicitly cross-reference each other. The one cluster that could trip an agent is list_services vs list_compute_services vs list_volume_services vs list_network_agents, where 'services' means the Keystone catalog but the siblings mean running daemons; the descriptions do disambiguate, so the risk is contained.
Every tool is snake_case verb_noun, and the verb vocabulary is strictly list_/get_ with no stray create/update/describe styles. Resource nouns are used consistently (list_volumes/get_volume, list_router_interfaces, list_floating_ips), including multiword nouns joined with underscores.
32 tools is heavy for a read-only inspection surface and exceeds the 25+ threshold, largely because the server spans six OpenStack services (Nova, Neutron, Cinder, Glance, Keystone plus aggregates/hypervisors). The breadth explains the count, but several near-duplicate listers (services/domains/projects/endpoints/regions, compute/volume/network service listings) inflate it beyond what an agent can scan comfortably.
For a read-only inspector the surface is strong: compute, images, flavors, volumes and attachments, networks/subnets/ports/routers/floating IPs/security groups, plus Keystone, catalog, and admin-tier aggregates/hypervisors. Gaps are minor and acknowledged in the descriptions — no get_floating_ip (workaround via port_id filter), no get_flavor or get_aggregate, and some list-only resources — but nothing blocks core workflows.
Maintenance
Related MCP Connectors
Discover Frontier inference capabilities and read sanitized usage through read-only tools.
Read-only AI/LLM cost tools with current MCP discovery and attributable Registry transport.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Query your team's drift, vulnerability, and upgrade data from any AI assistant. OAuth 2.1, 51 tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage OpenStack cloud resources including compute, images, identity, network, and block storage via the Model Context Protocol.19Apache 2.0
- -licenseNot gradedqualityNot gradedmaintenanceEnables AI clients to manage OpenStack clouds through tools for compute, network, storage, image, and identity operations.-
- AlicenseAqualityDmaintenanceEnables AI assistants to inspect and manage OpenStack clouds, including listing instances, checking quotas, and retrieving console logs. It supports opt-in write operations for creating and deleting servers, with a read-only default.12MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to inspect and manage OpenStack clouds through 16 tools for servers, security groups, volumes, floating IPs, networks, backups, and safe preview-confirmed actions.1MIT