Sponsored by Deepsite.site

CloudStack MCP

Created By
walteh9 months ago
proof of concept MCP server for apache cloudstack
Content

CloudStack MCP

A Model Context Protocol (MCP) server for Apache CloudStack, allowing AI agents to interact with CloudStack infrastructure.

IMPORTANT

This project is still under development and not all features are available. Treat it as a proof of concept.

Running the server (macOS)

# Install the dependencies
brew install go-task go docker

# Install the CLI
git clone https://github.com/walteh/cloudstack-mcp.git
cd cloudstack-mcp

# Start the environment (will take a while)
task docker:start

Generic MCP Usage

  • works with Cursor
{
	"mcpServers": {
		"cloudstack": {
			"url": "http://localhost:8250/sse"
		}
	}
}

for stdio servers

  • works with Cursor, and Claude Desktop
{
	"mcpServers": {
		"cloudstack": {
			"command": "docker",
			"args": ["compose", "-f", "<<LOCAL_PATH_TO_THIS_REPO>>/docker-compose.yaml", "run", "mcp-stdio-server"]
		}
	}
}

Usage with Cursor (macOS)

  1. make sure server is running and you are in the root of the project (see above)

  2. set up dependencies

brew install --cask cursor
  1. open the project in Cursor
cursor cloudstack-mcp.code-workspace
  1. open cursor settings from the menu bar Cursor -> Settings... -> Cursor Settings (or press Shift-Cmd-J)

  2. go to the MCP tab, you should see the cloudstack server already added (because of ./.cursor/mcp.json)

  3. click on the buttons to refresh and enable the cloudstack server - you should see a green dot and a list of list cloudstack api commands

  4. open a new composer by making sure the composer pane is open (toggle with Cmd-Option-B) and start a new conversation (press Cmd-N)

  5. make sure the composer is set to Agent

  6. type can you list my @cloudstack vpcs?

  7. press Enter and watch the magic happen!

# list zones
list zones

Usage with Claude Desktop (macOS)

CAUTION

There is a 99% chance this will not work, but you can use it as a starting point to get the MCP working with Claude Desktop if you like.

  1. make sure server is running and you are in the root of the project (see above)

  2. set up dependencies

brew install --cask claude-desktop
  1. run this to setup the server in Claude Desktop
# injects the server into claudes config, doesn't overwrite anything (unless you have another mcp called 'cloudstack')
task mcp:setup:claude-desktop
  1. restart claude desktop

How It Works

This MCP implementation allows AI assistants to manage CloudStack resources by:

  • Translating MCP protocol requests into CloudStack API calls
  • Providing common operations like VM deployment and management
  • Handling authentication and API interaction automatically

CloudMonkey Usage

CloudMonkey (the CloudStack CLI) is containerized in this setup:

# Basic commands
task cmk -- list zones
task cmk -- list serviceofferings

# Fix API cache issues if they occur
task cmk -- sync

# Get API credentials
task cloudstack:get-credentials

License

Apache License 2.0

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
DeepChatYour AI Partner on Desktop
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
ChatWiseThe second fastest AI chatbot™
Tavily Mcp
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
CursorThe AI Code Editor
WindsurfThe new purpose-built IDE to harness magic
Playwright McpPlaywright MCP server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code