openstack-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OS_CLOUD | No | Name of the cloud in clouds.yaml. Credentials come from openstacksdk: OS_CLOUD with clouds.yaml, or OS_* variables (password or application credentials). | |
| OS_CACERT | No | CA bundle path. OPENSTACK_MCP_CACERT_PEM takes precedence over OS_CACERT. | |
| OS_AUTH_URL | No | Keystone authentication URL, e.g. https://keystone.example.com:5000/v3. | |
| OS_PASSWORD | No | Password for password authentication. | |
| OS_USERNAME | No | Username for password authentication. | |
| OS_PROJECT_ID | No | Project ID for password authentication. | |
| OS_REGION_NAME | No | Region name, e.g. RegionOne. | |
| OS_PROJECT_NAME | No | Project name (alternative to OS_PROJECT_ID). | |
| OPENSTACK_MCP_MODE | No | readonly or admin. | readonly |
| OS_USER_DOMAIN_NAME | No | User domain name, e.g. Default. | |
| OS_CLIENT_CONFIG_FILE | No | Path to clouds.yaml. clouds.yaml is found the usual way (OS_CLIENT_CONFIG_FILE, ./clouds.yaml, ~/.config/openstack/clouds.yaml, /etc/openstack/). | |
| OPENSTACK_MCP_HTTP_HOST | No | HTTP bind host; path is /mcp. | 127.0.0.1 |
| OPENSTACK_MCP_HTTP_PORT | No | HTTP bind port. | 8000 |
| OPENSTACK_MCP_LOG_LEVEL | No | stderr log level. SDK loggers stay at CRITICAL. | WARNING |
| OPENSTACK_MCP_MAX_LIMIT | No | Largest accepted limit (up to 1000). | 100 |
| OPENSTACK_MCP_TRANSPORT | No | stdio or streamable-http. | stdio |
| OPENSTACK_MCP_CACERT_PEM | No | CA bundle as PEM text; takes precedence over OS_CACERT. | |
| OPENSTACK_MCP_API_TIMEOUT | No | Seconds per OpenStack request; no retries. | 10 |
| OPENSTACK_MCP_PROJECT_IDS | No | Comma-separated project IDs the server may use; the first is the default. | |
| OPENSTACK_MCP_DEFAULT_LIMIT | No | Items per list call when limit is omitted. | 50 |
| OPENSTACK_MCP_ALLOW_INSECURE | No | Allow verify: false or an http:// auth URL. | false |
| OPENSTACK_MCP_ENABLE_PROMPTS | No | Register the prompt. | true |
| OS_APPLICATION_CREDENTIAL_ID | No | Application credential ID for application credential authentication. | |
| OPENSTACK_MCP_ENABLE_RESOURCES | No | Register openstack://scope. | true |
| OPENSTACK_MCP_HTTP_ALLOW_REMOTE | No | Allow a non-loopback HTTP bind. The HTTP transport has no authentication. | false |
| OPENSTACK_MCP_ENABLE_WRITE_TOOLS | No | With admin, registers write tools. | false |
| OPENSTACK_MCP_MAX_RESPONSE_BYTES | No | Largest result; larger ones fail with response_too_large. | 524288 |
| OS_APPLICATION_CREDENTIAL_SECRET | No | Application credential secret for application credential authentication. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
OpenStack inventory over MCP. Read-only unless the operator enabled write tools. Call get_scope first: it lists the allowed project IDs, limits and whether credentials are configured, without contacting the cloud. Every cloud tool takes an optional project_id; omit it for the default project. List tools return items with complete and next_marker. When complete is false, pass next_marker as marker to read the next page, or narrow the filters. Errors start with a category in brackets. [forbidden] means the identity lacks a role for that call; it does not mean the inventory is empty. Do not retry [forbidden], [auth_failed] or [not_configured].
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_scopeA | Show mode, allowed projects, limits and whether credentials are configured. Does not contact the cloud. Call it first. |
| list_serversA | 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. |
| get_serverA | 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. |
| list_flavorsA | 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. |
| list_imagesA | 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. |
| get_imageA | 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. |
| list_volumesA | 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. |
| get_volumeA | 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. |
| list_volume_attachmentsB | List Cinder attachment records (API microversion 3.27 or later). Connection details are not returned. Paged with limit and marker. |
| get_volume_attachmentA | Get one Cinder attachment record by ID, without connection details. |
| list_networksA | List the project's networks, or shared networks with shared=true. Paged with limit and marker. |
| get_networkA | 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. |
| list_subnetsA | List the project's subnets with CIDR, gateway and DHCP settings. Paged with limit and marker. |
| get_subnetA | 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. |
| list_portsA | List the project's ports with fixed IPs and security groups. Paged with limit and marker. |
| get_portA | 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. |
| list_floating_ipsA | 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. |
| list_routersA | 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. |
| get_routerA | 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. |
| list_router_interfacesA | List a router's internal interfaces: port, subnet and IP address. Not paged; complete=false means the router has more interfaces. |
| list_security_groupsA | List the project's security groups with their rules. Paged with limit and marker. |
| get_security_groupA | 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. |
| list_regionsB | List Keystone regions. Not paged. |
| list_domainsA | 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. |
| list_projectsA | 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. |
| list_servicesA | 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. |
| list_endpointsA | 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. |
| list_hypervisorsA | 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. |
| list_compute_servicesA | 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. |
| list_aggregatesA | 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. |
| list_network_agentsA | 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. |
| list_volume_servicesA | 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. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| find_servers_by_security_group | Find servers that have a security group attached. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| scope | Same document as the get_scope tool. |
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.