Skip to main content

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

Region & Availability Zone

System Events

Event Subscription

Instance Diagnostics

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

Image Image

License

volcengine/mcp-server is licensed under the MIT License.

Metadata

Release files for mcp-server-ecs 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-server-ecs 0.2.1
File Size Uploaded Provenance
mcp_server_ecs-0.2.1.tar.gz 72.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-server-ecs 0.2.1
File Interpreter ABI Platform
mcp_server_ecs-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 91.7 kB

Release files / mcp_server_ecs-0.2.1.tar.gz

Download URL mcp_server_ecs-0.2.1.tar.gz
Size 72.6 kB
Tags Source
SHA-256 checksum
How to use checksums
26f07a233b29354e5791c53e9796fe26275af0f75b2736e6efad62f4c4e6514f
BLAKE2b-256 checksum
How to use checksums
1b4a53574d05632ea758c6e4541ed0281f7a59459b9045fcba2ffadcf8d91c22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / mcp_server_ecs-0.2.1-py3-none-any.whl

Download URL mcp_server_ecs-0.2.1-py3-none-any.whl
Size 19.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
beeab27671b3bd7f70a675cf208c704d80f41681d98a642742a5d0785319a6de
BLAKE2b-256 checksum
How to use checksums
5ec0943c2e22c62622c454081f1bc0b35c7979a7217683caf2c7405ed8876580
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for mcp-server-ecs 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page