Skip to main content

Add your description here

Project description

ECS MCP Server

Version

v0.1.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

Available Tools

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 sse mode (default is stdio)
uv run mcp-server-ecs -t sse

Use a client to interact with the server:

Claude Desktop | Cline | Cursor | Trae | ...

Configuration

The main configuration file for the MCP server is located at:

src/mcp_server_ecs/conf/settings.toml
src/mcp_server_ecs/conf/.secrets.toml

This configuration file contains key settings for the server, such as logging and Volcengine account AK|SK configuration.

Environment Variables

The following environment variables are available for configuring the MCP server:

Environment Variable Description Default Value
FASTMCP_PORT MCP server listening port 8000
VOLC_ACCESSKEY Volcengine account ACCESSKEY -
VOLC_SECRETKEY Volcengine account SECRETKEY -
VOLC_REGION Volcengine resource region -
VOLC_ENDPOINT Volcengine endpoint -

For example, set these environment variables before starting the server:

export FASTMCP_PORT=8000
export VOLC_ACCESSKEY={ak}
export VOLC_SECRETKEY={sk}
export VOLC_REGION={region}
export VOLC_ENDPOINT={endpoint}

Run with uvx

{
    "mcpServers": {
        "mcp-server-ecs": {
            "command": "uvx",
            "args": [
            "--from",
            "git+https://github.com/volcengine/mcp-server#subdirectory=server/mcp_server_ecs",
            "mcp-server-ecs"
          ],
            "env": {
                "VOLC_ACCESSKEY": "",
                "VOLC_SECRETKEY": "",
                "VOLC_ENDPOINT": "",
                "VOLC_REGION": "",
                "FASTMCP_PORT": ""
            }
        }
    }
}

Examples

Cursor

Image Image

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecs_mcp_server-0.1.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ecs_mcp_server-0.1.0-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file ecs_mcp_server-0.1.0.tar.gz.

File metadata

  • Download URL: ecs_mcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.9

File hashes

Hashes for ecs_mcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7081ae6ad07fe8d6fa9da592bbff0feab278f29f87fae9af45cd3595c94d7fda
MD5 ea4fa176a97856b795ae76774c2876de
BLAKE2b-256 619f684e26b316422f9f06709724c422575a17ba5c4983b7aac30b2d09e859bc

See more details on using hashes here.

File details

Details for the file ecs_mcp_server-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ecs_mcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4c8a61ab6a66878596a7af34c9e485593309b2e2ad39a3eceb1e7170d040430
MD5 03ea7bfa23d83fabc951dc31dbc80992
BLAKE2b-256 86033096283a18e986263f3bb8da4a130dcf224db7d296032a568949983d1fca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page