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.
Before installation, ensure you have:
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
Package the application as a JAR file:
mvn clean package
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.
Once the MCP server is running and integrated with Claude Desktop, you can interact with your OpenStack resources using natural language commands.
You can ask Claude Desktop to perform various OpenStack operations:
The MCP server translates these natural language requests into appropriate OpenStack CLI commands and returns the results directly in your conversation with Claude.
For more complex operations, you can provide more detailed instructions to Claude, such as:
The MCP server executes these commands securely through the OpenStack CLI with the credentials you've configured.
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.
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"
]
}
}
}
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.
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.