python-openstackmcp-server
Enables AI assistants to manage OpenStack cloud resources including compute, images, identity, network, and block storage via the Model Context Protocol.
README
python-openstackmcp-server
Openstack mcp server is a Model Context Protocol (MCP) server that provides an interface for AI assistants to interact with OpenStack services.
flowchart LR
AI[AI Assistant] <-->|MCP Protocol| Server[OpenStack MCP Server]
Server <-->|OpenStack SDK| SDK[OpenStack SDK]
SDK <-->|REST API| Cloud[OpenStack Cloud]
Table of Contents
Features
- MCP Protocol Support: Implements the Model Context Protocol for AI assistants.
- Compute Tools: Manage OpenStack compute resources (servers, flavors).
- Image Tools: Manage OpenStack images.
- Identity Tools: Handle OpenStack identity and authentication.
- Network Tools: Manage OpenStack networking resources.
- Block Storage Tools: Manage OpenStack block storage resources.
Quick Start with Claude Desktop
Get started quickly with the OpenStack MCP server using Claude Desktop
Requirements
- Python 3.10 or higher
- OpenStack credentials configured in
clouds.yamlfile - Claude Desktop installed
-
Create or update your
clouds.yamlfile with your OpenStack credentials.Example
clouds.yaml:clouds: openstack: auth: auth_url: https://your-openstack-auth-url.com username: your-username password: your-password project_name: your-project-name user_domain_name: Default project_domain_name: Default region_name: your-region interface: public identity_api_version: 3 -
Create or update your Claude Desktop configuration file:
- macOS: Edit
$HOME/Library/Application Support/Claude/claude_desktop_config.json - Windows: Edit
%APPDATA%\Claude\claude_desktop_config.json - Linux: Edit
$HOME/.config/Claude/claude_desktop_config.json
- macOS: Edit
Using python
{
"mcpServers": {
"openstack-mcp-server": {
"command": "/path/to/your/python",
"args": [
"python-openstackmcp-server"
],
"env" : {
"OS_CLIENT_CONFIG_FILE": "/path/to/your/clouds.yaml"
}
}
}
}
Using uvx
{
"mcpServers": {
"openstack-mcp-server": {
"command": "uvx",
"args": [
"python-openstackmcp-server"
],
"env" : {
"OS_CLIENT_CONFIG_FILE": "/path/to/your/clouds.yaml"
}
}
}
}
Development
Setup
This project supports both uv and tox for development and testing.
Using uv (Fast Local Development)
# Install dependencies (including dev and test groups)
uv sync
# Run tests
uv run --group test pytest
# Run linting
uv run ruff check src tests
# Format code
uv run ruff format src tests
Using tox (OpenStack Standard)
# Install tox
pip install tox
# or
uv tool install tox
# Run tests
tox -e py3
# Run linting
tox -e pep8
# Auto-format code
tox -e format
# Generate coverage report
tox -e cover
# Run arbitrary commands in virtualenv
tox -e venv -- <command>
# Test on specific Python version
tox -e py310 # or py311, py312, py313
# List all available environments
tox list
Testing
The project includes comprehensive test coverage (85%+). Tests are located in the tests/ directory.
# Run all tests
tox -e py3
# Run with coverage
tox -e cover
# Run with debugger
tox -e debug
# Run specific test file
tox -e py3 -- tests/tools/test_compute_tools.py
Contributing
Contributions are welcome! Please see the CONTRIBUTING file for details on how to contribute to this project.
License
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.