OpenStack Commander MCP server

Enables secure management of OpenStack infrastructure through natural language commands for server, project, flavor, and image operations via authenticated CLI interactions.
Back to servers
Provider
Dragomir Alin
Release date
Apr 03, 2025
Language
Java
Stats
4 stars

This MCP server allows AI assistants to securely execute OpenStack CLI commands through the Model Context Protocol, creating a bridge between Claude Desktop and your OpenStack resources for direct management.

Prerequisites

Before installation, ensure you have:

  • Java 21
  • Maven 3.8+
  • OpenStack CLI installed on your machine

Installation and Configuration

Configure OpenStack Credentials

Update the application.yml file with your OpenStack credentials:

spring:
  main:
    web-application-type: none
    banner-mode: off
  ai:
    mcp:
      server:
        name: openstack-mcp-server
        version: 0.0.1

logging:
  pattern:
    console:

openstack:
  authType: v3applicationcredential
  authUrl: <your_auth_url>
  identityApiVersion: 3
  regionName: <your_region_name>
  interface: public
  applicationCredentialId: "<your_application_credential_id>"
  applicationCredentialSecret: "<your_application_credential_secret>"

server:
  port: 8080

Build the Application

Package the application as a JAR file:

mvn clean package

Set Up Claude Desktop Integration

Create or update the claude-desktop.json configuration file to enable integration with Claude Desktop:

{
  "mcpServers": {
    "openstack-mcp-server": {
      "command": "java",
      "args": [
        "-jar",
        "<path_to_your_jar>/openstack-mcp-server-0.0.1.jar",
        "--port",
        "8080",
        "--host",
        "localhost"
      ]
    }
  }
}

Replace <path_to_your_jar> with the actual path to your compiled JAR file.

Usage

Once the MCP server is running and integrated with Claude Desktop, you can interact with your OpenStack resources using natural language commands.

Example Commands

You can ask Claude Desktop to perform various OpenStack operations:

  • List servers: "List my servers"
  • List projects: "List my projects"
  • List images: "List my images"
  • List flavors: "Show available flavors"

The MCP server translates these natural language requests into appropriate OpenStack CLI commands and returns the results directly in your conversation with Claude.

Advanced Usage

For more complex operations, you can provide more detailed instructions to Claude, such as:

  • "Create a new instance with Ubuntu 20.04 using 2GB RAM"
  • "Show the status of all running instances in project X"
  • "Attach a 20GB volume to my server named 'web-server'"

The MCP server executes these commands securely through the OpenStack CLI with the credentials you've configured.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later