bizflycloud-mcp-server
Bizfly Cloud MCP Server is a Model Context Protocol server that facilitates the management of cloud resources on Bizfly Cloud. It offers a comprehensive set of tools for managing servers, volumes, load balancers, Kubernetes clusters, and databases. The project leverages the mark3labs/mcp-go SDK and is built for integration with Cursor and Claude Desktop.
Bizfly Cloud MCP Server
A Model Context Protocol (MCP) server implementation that connects to Bizfly Cloud to manage cloud resources. Built using the mark3labs/mcp-go SDK.
Prerequisites
- Go 1.21 or later
- Bizfly Cloud account credentials
- Cursor or Claude Desktop installed
Setup
- Clone the repository
- Set up your environment variables:
export BIZFLY_USERNAME=your_username export BIZFLY_PASSWORD=your_password export BIZFLY_REGION=HaNoi # Optional, defaults to HaNoi export BIZFLY_API_URL=https://manage.Bizfly Cloud.vn # Optional, defaults to https://manage.Bizfly Cloud.vn
- Install dependencies:
go mod download
Running the Server
For Cursor/Claude Desktop Integration
-
Build the server:
go build -o bizfly-mcp-server
-
Configure your MCP client (Cursor or Claude Desktop) by adding the following to the configuration:
For Cursor:
{
"mcpServers": {
"bizfly": {
"command": "/absolute/path/to/bizfly-mcp-server",
"env": {
"BIZFLY_USERNAME": "your_username",
"BIZFLY_PASSWORD": "your_password",
"BIZFLY_REGION": "HaNoi"
}
}
}
}
For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json
):
{
"mcpServers": {
"bizfly": {
"command": "/absolute/path/to/bizfly-mcp-server",
"env": {
"BIZFLY_USERNAME": "your_username",
"BIZFLY_PASSWORD": "your_password",
"BIZFLY_REGION": "HaNoi"
}
}
}
}
Available Tools
The server provides the following MCP tools:
Server Management
list_servers
- List all Bizfly Cloud serversstart_server
- Start a serverreboot_server
- Reboot a serverdelete_server
- Delete a serverresize_server
- Resize a serverlist_flavors
- List available server flavors
Volume Management
list_volumes
- List all volumescreate_volume
- Create a new volumedelete_volume
- Delete a volumeresize_volume
- Resize a volumelist_snapshots
- List all volume snapshotscreate_snapshot
- Create a volume snapshotdelete_snapshot
- Delete a volume snapshot
Load Balancer Management
list_loadbalancers
- List all load balancerscreate_loadbalancer
- Create a new load balancerdelete_loadbalancer
- Delete a load balancer
Kubernetes Management
list_kubernetes_clusters
- List all Kubernetes clusterscreate_kubernetes_cluster
- Create a new Kubernetes clusterdelete_kubernetes_cluster
- Delete a Kubernetes clusterlist_kubernetes_nodes
- List nodes in a cluster
Database Management
list_databases
- List all databaseslist_datastores
- List available database engines and versionscreate_database
- Create a new databasedelete_database
- Delete a database
Example Usage
You can interact with the server through natural language queries in Cursor or Claude Desktop:
- "Show me all my Bizfly Cloud servers"
- "List all volumes in my Bizfly Cloud account"
- "Create a new load balancer"
- "List available Kubernetes clusters"
- "Show me all databases"
MCP Implementation Details
This server uses the mark3labs/mcp-go SDK to implement the Model Context Protocol:
- Standard I/O Transport: Uses stdin/stdout for communication with MCP clients
- Tool Definitions: Clear tool descriptions and parameters
- Error Handling: Proper error reporting in MCP format
- Text Formatting: Human-readable output for resource listings
Authentication
The server uses your Bizfly Cloud username and password for authentication through environment variables:
BIZFLY_USERNAME
: Your Bizfly Cloud username (required)BIZFLY_PASSWORD
: Your Bizfly Cloud password (required)BIZFLY_REGION
: Region name (optional, defaults to "HaNoi")BIZFLY_API_URL
: API URL (optional, defaults to "https://manage.Bizfly Cloud.vn")
Make sure to keep your credentials secure and never commit them to version control.
MCP Features
- Standard I/O Transport: Uses stdin/stdout for seamless integration with Cursor/Claude Desktop
- Standardized Response Format: All responses follow the MCP format with context, type, data, and root fields
- Resource Organization: Resources are organized under root paths
- Type Safety: Strong typing for all resources
- Error Handling: Standardized error responses in MCP format