Skip to main content
Glama
README.md
# openstack-mcp

MCP server for [WIIT Cloud](https://docs.wiit-cloud.io/openstack/intro/) OpenStack. A Cursor agent launches it over stdio and operates a project through the service APIs. Horizon is only the web dashboard.

The server does not connect at startup. Tool listing works before credentials are set. The first tool that needs the cloud authenticates then.

## Regions

`WIIT_CLOUD` and `OS_REGION_NAME` are set together in the MCP server environment. The default cloud is `production` and the default region is `de-west-01`. `ch-north-01` and `it-north-01` use the same host pattern. `WIIT_CLOUD=lab` uses the same services with `openstack-lab` in every hostname. Interface is `public`. Identity API is v3.

| Service | Host |
|---|---|
| Horizon (dashboard, not a REST API) | https://openstack.wiit-cloud.io/ |
| Keystone | https://identity.openstack.\<region\>.wiit-cloud.io |
| Glance | https://image.openstack.\<region\>.wiit-cloud.io |
| Nova | https://compute.openstack.\<region\>.wiit-cloud.io |
| Neutron | https://network.openstack.\<region\>.wiit-cloud.io |
| Cinder | https://volume.openstack.\<region\>.wiit-cloud.io |
| Octavia | https://load-balancer.openstack.\<region\>.wiit-cloud.io |
| Designate | https://dns.openstack.\<region\>.wiit-cloud.io |
| Swift | https://s3.openstack.\<region\>.wiit-cloud.io/swift |
| S3 | https://s3.openstack.\<region\>.wiit-cloud.io |
| Barbican | https://key-manager.openstack.\<region\>.wiit-cloud.io |

Horizon is one URL per cloud: production `https://openstack.wiit-cloud.io/`, lab `https://openstack-lab.wiit-cloud.io/`. `OS_AUTH_URL` is optional. When it is omitted, Keystone is the identity host for `WIIT_CLOUD` and `OS_REGION_NAME`. When it is set, that host must be the same identity host. A lab auth URL with production hosts, or the reverse, is refused before any API call. Barbican is not in the published service table; the client still uses the key-manager host for the selected cloud and region.

`list_regions` returns the three regions and their endpoints for the configured cloud without authenticating. `horizon_dashboard` returns the dashboard URL for that cloud.

For `de-west-01`, the published layout is Düsseldorf, with availability zones AZ1, AZ2, AZ3, and the stretched zone SZ1. A volume attaches only to an instance in the same zone. Omitting a zone creates the resource in SZ1. Flavor family `t1` is AZ1–AZ3 only. `g1` is SZ1 only. A `.d` flavor suffix is the larger root disk, not a zone. The other two regions follow the same service layout.

## Operator context

Copy `context.md.example` to `context.md` for notes that should stay on your machine. `context.md` is gitignored. Cursor receives it in the server instructions when the MCP process starts, so restart after you save. `get_operator_context` and `openstack://context` return the same file. `openstack://wiit-setup` is the built-in setup summary.

`OPENSTACK_MCP_CONTEXT_FILE` overrides the file path. These variables override the Defaults section when they are non-empty: `OPENSTACK_MCP_DEFAULT_IMAGE`, `OPENSTACK_MCP_DEFAULT_FLAVOR`, `OPENSTACK_MCP_DEFAULT_NETWORK`, `OPENSTACK_MCP_DEFAULT_KEYPAIR`, `OPENSTACK_MCP_DEFAULT_AVAILABILITY_ZONE`. Mutating tools do not apply those defaults. Pass them on the tool call.

The setup text follows the public WIIT docs, starting at https://docs.wiit-cloud.io/openstack/intro/.

Destructive calls need `confirm=true`. Reinstalling a VM is `rebuild_server`, which wipes the root disk and keeps the server UUID and ports. `server_action` reboot does not reinstall.

## Application credential

Create the credential in the region you will call.

1. Open https://openstack.wiit-cloud.io/ and sign in to the project.
2. Open **Identity → Application Credentials**.
3. Create a credential. Set the roles the project member needs. The role name `member` is case-sensitive.
4. Copy the **ID** and the **secret** immediately. Horizon shows the secret once.

Put those values in the MCP process environment. Do not commit them. This server does not load a `.env` file.

### PowerShell

```powershell
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
$env:WIIT_CLOUD = "production"
$env:OS_REGION_NAME = "de-west-01"
$env:OS_APPLICATION_CREDENTIAL_ID = "<application-credential-id>"
$env:OS_APPLICATION_CREDENTIAL_SECRET = "<application-credential-secret>"
```

### bash

```bash
python -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
export WIIT_CLOUD="production"
export OS_REGION_NAME="de-west-01"
export OS_APPLICATION_CREDENTIAL_ID="<application-credential-id>"
export OS_APPLICATION_CREDENTIAL_SECRET="<application-credential-secret>"
```

Use `ch-north-01` or `it-north-01` the same way. Set `WIIT_CLOUD=lab` for the lab cloud; every service host changes with it. Omit `OS_AUTH_URL`. The server fills in the identity host for that cloud and region.

Password auth is used when the application-credential variables are unset: `OS_USERNAME`, `OS_PASSWORD`, and `OS_PROJECT_NAME` or `OS_PROJECT_ID`. Domain names default to `Default`.

A `clouds.yaml` cloud is used when neither of those is complete: set `OS_CLOUD` and, if needed, `OS_CLIENT_CONFIG_FILE`.

If more than one method is present, a complete application credential wins, then a complete password, then `clouds.yaml`.

## Install and run

Python 3.11 or newer. Dependencies are `mcp` 1.x (FastMCP), `openstacksdk`, and `boto3`. The license is MIT.

Install from the public repository. [uv](https://docs.astral.sh/uv/) runs the server without a local checkout:

```powershell
uvx --from git+https://github.com/TheSimonxy/openstack-mcp openstack-mcp
```

```bash
pip install "git+https://github.com/TheSimonxy/openstack-mcp"
openstack-mcp
```

Cursor's marketplace install uses that `uvx` command. The plugin asks for `WIIT_CLOUD`, `OS_REGION_NAME`, and the application credential. Those values stay in Cursor's plugin configuration. They are not stored in this repository. `context.md` is gitignored local notes; start from `context.md.example`.

To work on the source:

```powershell
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
.\.venv\Scripts\python.exe -m openstack_mcp
```

Both `python -m openstack_mcp` and the `openstack-mcp` command are the same server. Do not commit the secret.

The marketplace files are `.cursor-plugin/plugin.json` and `mcp.json`. `.mcp.json` is the same server entry for the community directory. A hand-written Cursor config can copy `cursor.mcp.json.example` and fill in the credential there.

If credentials are missing, the tool names the variables to set. The process does not crash at import. An unknown `OS_REGION_NAME`, an unknown `WIIT_CLOUD`, or an `OS_AUTH_URL` for a different cloud or region is refused before any API call.

## Swift and S3 are different logins

Swift uses the OpenStack token. Its tools are prefixed `swift_`.

S3 uses the same host with path-style addressing and signature version 4. It needs an EC2 access key:

- `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, or
- `OS_S3_ACCESS_KEY` and `OS_S3_SECRET_KEY`

Create that pair with `create_ec2_credential`. The secret is returned once. S3 tools are prefixed `s3_`.

## Safety

- Delete, reboot, stop, pause, lock, detach, disassociate, and removing a router interface require `confirm=true`. Start, unpause, and unlock do not.
- `get_secret` returns metadata unless `reveal=true`. `store_secret` does not echo the payload.
- Swift and S3 transfers default to 1 MiB and refuse bodies over 5 MiB.
- Force-delete of a container or bucket stops above 500 objects.
- Presigned URLs default to 3600 seconds and cannot exceed 7 days.

## Endpoint overrides

An explicit endpoint variable wins over one service. The cloud and region still select the rest. The server appends the usual version path when it is missing (`/v2.1` Nova, `/v2` Glance, `/v2.0` Neutron and Octavia, `/v3` Cinder and Keystone, `/v2` Designate, `/v1` Barbican). After login it rewrites catalog hosts to the public host for `WIIT_CLOUD` and `OS_REGION_NAME` and keeps the catalog path. A Swift catalog path that already ends in `/v1` is kept. `AUTH_<project>` is added only when the catalog does not already name the account.

Set `OS_DISABLE_ENDPOINT_OVERRIDES=1` to leave catalog URLs unchanged.

| Variable | Service |
|---|---|
| `WIIT_CLOUD` | production (default) or lab. Selects every host |
| `OS_REGION_NAME` | de-west-01, ch-north-01, or it-north-01 |
| `OS_COMPUTE_ENDPOINT` | Nova |
| `OS_NETWORK_ENDPOINT` | Neutron |
| `OS_VOLUME_ENDPOINT` (or `OS_BLOCK_STORAGE_ENDPOINT`) | Cinder |
| `OS_IMAGE_ENDPOINT` | Glance |
| `OS_LOADBALANCER_ENDPOINT` (or `OS_LOAD_BALANCER_ENDPOINT`) | Octavia |
| `OS_DNS_ENDPOINT` | Designate |
| `OS_OBJECT_STORE_ENDPOINT` | Swift |
| `OS_KEY_MANAGER_ENDPOINT` | Barbican |
| `OS_S3_ENDPOINT` | S3 |
| `OS_IDENTITY_ENDPOINT` | Keystone, when it should differ from `OS_AUTH_URL` |
| `OS_COMPUTE_API_VERSION` | Nova microversion |
| `OS_VOLUME_API_VERSION`, `OS_IMAGE_API_VERSION`, `OS_NETWORK_API_VERSION`, `OS_IDENTITY_API_VERSION` | Passed through when set |

## Tools

List calls take `limit` (default 50, maximum 200) and, where the API allows it, `name`, `marker`, and `filters`.

**Connection:** `list_regions`, `openstack_connection_info`, `openstack_service_catalog`, `horizon_dashboard`, `get_operator_context`

**Keystone:** `list_projects`, `get_project`, `list_users`, `get_user`, `list_roles`, `list_role_assignments`, `list_groups`, `list_application_credentials`, `create_application_credential`, `delete_application_credential`, `list_ec2_credentials`, `create_ec2_credential`, `delete_ec2_credential`

**Glance:** `list_images`, `get_image`, `create_image`, `update_image`, `delete_image`, `list_image_members`

**Nova:** `list_servers`, `get_server`, `create_server`, `delete_server`, `server_action`, `rebuild_server`, `list_flavors`, `list_keypairs`, `create_keypair`, `delete_keypair`, `get_server_console`, `list_availability_zones`, `get_compute_quotas`

`rebuild_server` reinstalls a VM from an image. The server UUID, ports, and floating IPs stay. The root disk is wiped. Ephemeral disk is wiped unless `preserve_ephemeral` is true. The call requires `confirm=true`. A caller-supplied `admin_password` is not returned. If you omit it and Nova generates one, that password is returned once.

**Neutron:** `list_networks`, `get_network`, `create_network`, `delete_network`, `list_subnets`, `get_subnet`, `create_subnet`, `delete_subnet`, `list_subnet_pools`, `list_ports`, `get_port`, `create_port`, `delete_port`, `list_routers`, `get_router`, `create_router`, `update_router`, `delete_router`, `add_router_interface`, `remove_router_interface`, `list_floating_ips`, `create_floating_ip`, `delete_floating_ip`, `associate_floating_ip`, `disassociate_floating_ip`, `list_security_groups`, `get_security_group`, `create_security_group`, `delete_security_group`, `list_security_group_rules`, `create_security_group_rule`, `delete_security_group_rule`

**Cinder:** `list_volumes`, `get_volume`, `create_volume`, `delete_volume`, `list_volume_types`, `list_snapshots`, `create_snapshot`, `delete_snapshot`, `attach_volume`, `detach_volume`, `extend_volume`, `get_volume_quotas`

**Octavia:** `list_load_balancers`, `get_load_balancer`, `create_load_balancer`, `delete_load_balancer`, `list_listeners`, `create_listener`, `delete_listener`, `list_pools`, `create_pool`, `delete_pool`, `list_members`, `create_member`, `delete_member`, `list_health_monitors`, `create_health_monitor`, `delete_health_monitor`, `get_load_balancer_status`, `get_load_balancer_stats`

**Designate:** `list_zones`, `get_zone`, `create_zone`, `delete_zone`, `list_recordsets`, `get_recordset`, `create_recordset`, `update_recordset`, `delete_recordset`

**Swift:** `swift_list_containers`, `swift_create_container`, `swift_delete_container`, `swift_list_objects`, `swift_get_object_metadata`, `swift_download_object`, `swift_upload_object`, `swift_delete_object`

**S3:** `s3_list_buckets`, `s3_create_bucket`, `s3_delete_bucket`, `s3_list_objects`, `s3_head_object`, `s3_get_object`, `s3_put_object`, `s3_delete_object`, `s3_presign_get`, `s3_presign_put`

**Barbican:** `list_secrets`, `get_secret`, `store_secret`, `delete_secret`, `list_secret_containers`, `get_secret_container`, `create_secret_container`, `delete_secret_container`

## Tests

No live cloud is required.

```powershell
python -m pytest
```

## Intentional gaps

- Glance local file upload is not implemented. `create_image` registers metadata, and with `source_url` it asks Glance to import that URL with `web-download`.
- Object upload and download stay within the 5 MiB hard cap.
- Force-delete of a container or bucket stops above 500 objects.
- A member token often cannot list projects, users, or roles. Those tools return `supported: false` with the HTTP status.

TDQS

C2.9/5.0

Scored across 134 tools

Disambiguation4/5

Most tools have clearly distinct resource/action purposes, and descriptions repeatedly identify the OpenStack service and scope. The very large surface creates some potential confusion among similarly named CRUD tools across services and mixed prefixes such as swift_* versus s3_*, but individual tools remain largely distinguishable.

Naming Consistency4/5

The set is predominantly consistent snake_case verb_noun naming, with service prefixes used for Swift and S3. A few names deviate, such as server_action, openstack_connection_info, horizon_dashboard, and get_operator_context, but they remain readable and mostly predictable.

Tool Count1/5

With 134 tools, this is far beyond a well-scoped MCP surface and well past the 50+ threshold for extreme over-scoping. OpenStack is a broad domain, but the number of CRUD variants across many services makes the set unwieldy for an agent.

Completeness3/5

The server covers many core OpenStack services and common create/list/get/delete workflows, plus some lifecycle operations. However, notable gaps remain: Keystone projects/users lack create/update/delete, several Neutron resources lack update operations, many Octavia resources lack get/update, and Designate zones lack update.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues