Skip to main content
Glama

openstack-mcp-server

CI Release License

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, complete and next_marker; results are typed (outputSchema, structuredContent) and capped in size.

  • Errors are isError results 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

OPENSTACK_MCP_MODE

readonly

readonly or admin.

OPENSTACK_MCP_ENABLE_WRITE_TOOLS

false

With admin, registers write tools.

OPENSTACK_MCP_PROJECT_IDS

empty

Comma-separated project IDs the server may use; the first is the default.

OPENSTACK_MCP_DEFAULT_LIMIT

50

Items per list call when limit is omitted.

OPENSTACK_MCP_MAX_LIMIT

100

Largest accepted limit (up to 1000).

OPENSTACK_MCP_MAX_RESPONSE_BYTES

524288

Largest result; larger ones fail with response_too_large.

OPENSTACK_MCP_API_TIMEOUT

10

Seconds per OpenStack request; no retries.

OPENSTACK_MCP_CACERT_PEM

unset

CA bundle as PEM text; takes precedence over OS_CACERT.

OPENSTACK_MCP_ALLOW_INSECURE

false

Allow verify: false or an http:// auth URL.

OPENSTACK_MCP_ENABLE_PROMPTS

true

Register the prompt.

OPENSTACK_MCP_ENABLE_RESOURCES

true

Register openstack://scope.

OPENSTACK_MCP_TRANSPORT

stdio

stdio or streamable-http.

OPENSTACK_MCP_HTTP_HOST / _PORT

127.0.0.1 / 8000

HTTP bind; path /mcp.

OPENSTACK_MCP_HTTP_ALLOW_REMOTE

false

Allow a non-loopback HTTP bind. The HTTP transport has no authentication.

OPENSTACK_MCP_LOG_LEVEL

WARNING

stderr log level. SDK loggers stay at CRITICAL.

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

get_scope

Compute

list_servers, get_server, list_flavors

Image

list_images, get_image

Block storage

list_volumes, get_volume, list_volume_attachments, get_volume_attachment

Network

list_networks, get_network, list_subnets, get_subnet, list_ports, get_port, list_floating_ips, list_routers, get_router, list_router_interfaces, list_security_groups, get_security_group

Identity

list_regions, list_domains, list_projects, list_services, list_endpoints

Service inventory

list_hypervisors, list_compute_services, list_aggregates, list_network_agents, list_volume_services

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 tests

See 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 tools
get_imageGet imageA
Read-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 networkA
Read-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 portA
Read-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 routerA
Read-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 scopeA
Read-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 groupA
Read-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 serverA
Read-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 subnetA
Read-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 volumeA
Read-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 attachmentA
Read-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 aggregatesA
Read-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 servicesA
Read-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 domainsA
Read-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 endpointsA
Read-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 flavorsA
Read-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 IPsA
Read-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 hypervisorsA
Read-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 imagesA
Read-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 agentsA
Read-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 networksA
Read-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 portsA
Read-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 projectsA
Read-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 regionsB
Read-onlyIdempotent

List Keystone regions. Not paged.

Inputs: limit, project_id. Returns: items, limit, complete, resource, +3 more

list_router_interfacesList router interfacesA
Read-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 routersA
Read-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 groupsA
Read-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 serversA
Read-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 servicesA
Read-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 subnetsA
Read-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 attachmentsB
Read-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 volumesA
Read-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 servicesA
Read-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

    A3.7/5.0

    Scored across 32 tools

    Disambiguation4/5

    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.

    Naming Consistency5/5

    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.

    Tool Count2/5

    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.

    Completeness4/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI clients to manage OpenStack clouds through tools for compute, network, storage, image, and identity operations.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables 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.
      12
      MIT