ECS MCP Server
Version
v0.2.0
Overview
ECS MCP Server is a Model Context Protocol server that provides MCP clients (such as Claude Desktop) with the ability to interact with the Volcengine ECS service. It enables full-chain management of cloud instance resources based on natural language, supporting query operations for instances, images, regions, availability zones, available resources, and system events, thereby achieving efficient management of ECS resources.
Category
ECS
Features
- Query instance information
- Query event information
- Query region information
- Simple instance operations
- Event subscription management
- Instance console diagnostics
Available Tools
Since some interfaces have a lot of input parameters and return content, some uncommon content will cause too much context burden on llm. In order to avoid unnecessary token waste, ECS MCP Server only provides queries for common content.
Instance Management
describe_instances: query instance listdescribe_images: query image listdescribe_instance_types: query instance type listdescribe_instance_type_families: query instance type family listdescribe_available_resource: query available resourcesstart_instances: start instancesrenew_instance: renew instance
Region & Availability Zone
describe_regions: query region listdescribe_zones: query availability zone list
System Events
describe_system_events: query system eventsupdate_system_events: update system event statusdescribe_event_types: query event type list
Event Subscription
describe_subscriptions: query event subscription list
Instance Diagnostics
get_console_output: get instance console outputget_console_screenshot: get instance console screenshot
Usage Guide
Prerequisites
- Python 3.12+
- UV
Linux/macOS:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Installation
Clone the repository:
git clone git@github.com:volcengine/mcp-server.git
Usage
Start the server:
UV
cd mcp-server/server/mcp_server_ecs
uv run mcp-server-ecs
# Start with streamable-http mode (default is stdio)
uv run mcp-server-ecs -t streamable-http
Use a client to interact with the server:
Trae | Cursor | Claude Desktop | Cline | ...
Configuration
Environment Variables
The following environment variables are available for configuring the MCP server:
| Environment Variable | Description | Default Value |
|---|---|---|
VOLCENGINE_ACCESS_KEY |
Volcengine account ACCESSKEY | - |
VOLCENGINE_SECRET_KEY |
Volcengine account SECRETKEY | - |
VOLCENGINE_REGION |
Volcengine resource region | - |
VOLCENGINE_ENDPOINT |
Volcengine endpoint | - |
MCP_SERVER_PORT |
MCP server listening port | 8000 |
For example, set these environment variables before starting the server:
export VOLCENGINE_ACCESS_KEY={ak}
export VOLCENGINE_SECRET_KEY={sk}
export VOLCENGINE_REGION={region}
export VOLCENGINE_ENDPOINT={endpoint}
export MCP_SERVER_PORT=8000
Run with uvx
Specify version from PyPI or mirror source
{
"mcpServers": {
"mcp-server-ecs": {
"command": "uvx",
"args": [
"--from",
"mcp-server-ecs>=0.2.0",
"mcp-server-ecs"
],
"env": {
"VOLCENGINE_ACCESS_KEY": "",
"VOLCENGINE_SECRET_KEY": "",
"VOLCENGINE_REGION": ""
}
}
}
}
{
"mcpServers": {
"mcp-server-ecs": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/volcengine/mcp-server#subdirectory=server/mcp_server_ecs",
"mcp-server-ecs"
],
"env": {
"VOLCENGINE_ACCESS_KEY": "",
"VOLCENGINE_SECRET_KEY": "",
"VOLCENGINE_REGION": "",
"VOLCENGINE_ENDPOINT": "",
"MCP_SERVER_PORT": ""
}
}
}
}
Examples
Cursor
License
volcengine/mcp-server is licensed under the MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_server_ecs-0.2.1.tar.gz.
File metadata
- Download URL: mcp_server_ecs-0.2.1.tar.gz
- Upload date:
- Size: 72.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26f07a233b29354e5791c53e9796fe26275af0f75b2736e6efad62f4c4e6514f
|
|
| MD5 |
dba25d9c03937df2896331ad511c16a7
|
|
| BLAKE2b-256 |
1b4a53574d05632ea758c6e4541ed0281f7a59459b9045fcba2ffadcf8d91c22
|
File details
Details for the file mcp_server_ecs-0.2.1-py3-none-any.whl.
File metadata
- Download URL: mcp_server_ecs-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beeab27671b3bd7f70a675cf208c704d80f41681d98a642742a5d0785319a6de
|
|
| MD5 |
f863dc351d432da4fd4d5e269b66bf48
|
|
| BLAKE2b-256 |
5ec0943c2e22c62622c454081f1bc0b35c7979a7217683caf2c7405ed8876580
|