mcp-openstack
Provides MCP tools for interacting with OpenStack clouds via openstacksdk, including multi-cloud selection and policy-controlled access that is read-only by default.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-openstack
Serwer MCP dla OpenStack z bezpiecznikami na poziomie serwera (read-only by default).
Wrapper na python-openstackmcp-server
(FastMCP + openstacksdk) z middleware polityki: filtrowaniem narzędzi (tools/list)
i twardym blokowaniem wywołań (tools/call) — niezależnie od klienta MCP
(opencode, Claude Code, itd.).
Szybki start
uv sync
uv run pytest # testy
uv run mcp-openstack # serwer (stdio)Related MCP server: MCP OAuth Test
Konfiguracja
Chmury: standardowy
~/.config/openstack/clouds.yaml(multi-cloud, przełączanie narzędziemset_cloud_name)Katalog z konfiguracją: env
OS_MCP_GUARD_CONFIG_DIR=/ścieżka/do/katalogu— serwer szuka w nimclouds.yaml(wymagany) isecure.yaml(opcjonalny, ostrzeżenie gdy dostępny dla grupy/innych) i mapuje je naOS_CLIENT_CONFIG_FILE/OS_CLIENT_SECURE_FILE(zmienne ustawione jawnie mają pierwszeństwo). Zmienna jest zużywana przy starcie, żeby openstacksdk nie utworzył fikcyjnej chmuryenvvars.Chmura startowa: env
CLOUD_NAME(nazwa dopasowywana bez rozróżniania wielkości liter; uwaga: serwer nie czytaOS_CLOUD).Polityka:
~/.config/mcp-openstack/policy.yaml(override: envOS_MCP_GUARD_POLICY)
mode: read-only # read-only | custom
allow: # globy fnmatch, tylko tryb custom
- "get_*"
- "set_cloud_name"
deny: [] # wygrywa z allowListowanie per projekt / user / wszystkie projekty (admin)
Bez argumentów get_* listują to samo co wcześniej (Nova, Cinder, Designate i Heat
tylko projekt z tokena, Neutron wszystko, co widzi admin). Na konto admina dochodzą
opcjonalne parametry:
Parametr | Znaczenie | Gdzie |
| nazwa albo ID projektu | serwery, wolumeny, załączniki, sieci/subnety/porty/routery/SG/floating IP, obrazy (właściciel), LB/listenery/pule/health monitory, strefy i recordsety DNS, stacki Heat, server groups |
| nazwa albo ID usera | serwery, wolumeny, keypairs |
| zasoby wszystkich projektów | serwery, wolumeny, załączniki, strefy i recordsety DNS, stacki Heat, server groups |
| maks. liczba elementów (domyślnie 5000, | wszystkie powyższe |
Nowe narzędzie get_users (filtry name, domain_id, enabled) pomaga znaleźć usera;
get_projects ma filtry name, domain_id, parent_id, enabled. Starsze project_id
w get_subnets, get_routers, get_security_groups i get_floating_ips nadal działa
(tylko ID). get_compute_quotas i get_dns_quota przyjmują w project_id także nazwę.
Wynik narzędzi z tej listy to obwiednia:
{"total": 120, "returned": 100, "truncated": true, "limit": 100, "items": [ ... ]}total to liczba wszystkich pasujących zasobów, items jest ucinane do limit.
Elementy listy serwerów i wolumenów mają project_id, user_id oraz hosta
(compute_host/hypervisor_hostname, host), a LB, listenery, pule i health monitory
mają project_id.
Przykłady (argumenty wywołania narzędzia):
get_servers {"project": "EXAMPLE-PROJECT"}
get_servers {"all_projects": true, "status": "ERROR", "limit": 50}
get_volumes {"user": "tester"}
get_dns_zones {"all_projects": true}
get_networks {"project": "EXAMPLE-PROJECT"}Uwagi: project/user/all_projects wymagają uprawnień admina po stronie chmury;
nazwa projektu jest rozwiązywana przez Keystone (niejednoznaczna lub nieznana nazwa
kończy się błędem). Stacki Heat spoza własnego projektu są listowane przez
global_tenant; gdy chmura tego zabrania (polityka stacks:global_index), narzędzie
zwraca zwykłą listę Heat (dla admina bywa, że obejmuje już inne projekty), filtruje ją
po project i dodaje do wyniku pole note.
Pełna dokumentacja: ../openstack-mcp-setup.md.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed MCP gateway: one endpoint for your tools, with credential custody and audit log.
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
MCP server for mandates, delegation, policy-gated execution, credential grants, and audit.
Related MCP Servers
- AlicenseNot gradedqualityFmaintenanceExposes the full openstack and oc CLIs as MCP tools with read-only by default, dynamic/static credentials, and DNS rebinding protection.Apache 2.0
- FlicenseNot gradedqualityDmaintenanceMulti-tenant MCP server with OAuth 2.1 authorization, enabling tenant-scoped tool access and audit logging.-
- FlicenseNot gradedqualityDmaintenanceA universal MCP server for registering internal, external, and OpenAPI-based APIs as MCP tools. It exposes them to MCP clients via Streamable HTTP and provides admin portal, RBAC/session auth, credential injection, and audit logging.-
- AlicenseAqualityDmaintenanceMCP server for Oracle Cloud Infrastructure (OCI) that exposes Compute, Networking, and Object Storage operations to MCP clients, with support for multiple authentication modes, read-only enforcement, and per-call region overrides.18MIT