Add your description here
Project description
EBS MCP Server
This MCP server provides a tool to interact with the VolcEngine EBS Service, allowing you to retrieve information about EBS volumes and snapshots using ECS instance ID, EBS volume ID, or EBS snapshot ID.
Setup
Prerequisites
- Python 3.10 or higher
- API credentials (AK/SK)
Installation
- Install the package:
pip install -e .
Or with uv (recommended):
uv pip install -e .
Configuration
The server requires the following environment variables:
VOLC_ACCESSKEY: Your VolcEngine access keyVOLC_SECRETKEY: Your VolcEngine secret keyREGION: Your VolcEngine region (e.g., "cn-beijing")
Optional environment variables:
PORT: Port for the FastMCP server (default: 8000)
Usage
Running the Server
The server can be run with either stdio transport (for MCP integration) or SSE transport:
python -m mcp_server_ebs.server --transport stdio
Or:
python -m mcp_server_ebs.server --transport sse
Available Tools
describe_volumes
Get volume config information based on a volume ID.
describe_volumes(
query="What are the status and configuration of the instance's attached volumes?",
volume_id="vol-12345678",
)
describe_volumes(
query="What's the volume status and configuration of this instance attached?",
instance_id="i-12345678"
)
Parameters:
query(Optional): Specific questions about the volume (status, size, type, etc.)volume_id(Optionanl): The ID of the EBS volume to query (e.g. "vol-12345678")instance_id(Optional): The ID of the ECS instance to which the EBS volume is attached (e.g. "i-12345678")
describe_snapshots
Get snapshot config information based on a snapshot ID.
describe_snapshot(
query="What's the status and configuration of this snapshot?",
volume_id="snap-12345678"
)
Parameters:
query(Optional): Specific questions about the volume (status, size, type, etc.)snapshot_id(required): The ID of the EBS snapshot to query (e.g. "snap-12345678")
MCP Integration
To add this server to your MCP configuration, add the following to your MCP settings file:
{
"mcpServers": {
"ebs": {
"command": "uvx",
"args": [
"--from",
"git+https://${source-repo}#subdirectory=server/mcp_server_ebs",
"mcp-server-ebs",
],
"env": {
"VOLC_ACCESSKEY": "your-access-key",
"VOLC_SECRETKEY": "your-secret-key",
"Region": "your-resource-region",
"PORT": "8000",
"ENDPOINT": "api-endpoint"
},
}
}
}
Troubleshooting
Common Issues
-
Authentication Errors
- Verify your AK/SK credentials are correct
- Check that you have the necessary permissions for the collection
-
Connection Timeouts
- Check your network connection to the VolcEngine API
- Verify the host configuration is correct
-
Empty Results
- Verify the collection name is correct
- Try broadening your search query
Logging
The server uses Python's logging module with INFO level by default. You can see detailed logs in the console when running the server.
Contributing
Contributions to improve the Viking Knowledge Base MCP Server are welcome. Please follow these steps:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
Please ensure your code follows the project's coding standards and includes appropriate tests.
License
This project is licensed under the terms specified by VolcEngine.
Project details
Release history Release notifications | RSS feed
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 ebs_mcp_server-0.1.0.tar.gz.
File metadata
- Download URL: ebs_mcp_server-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4782ee1ca66fcca1894259ddcc220a2ef424cf9c04f7e2d80ca7a1d4747ec90a
|
|
| MD5 |
37e5bf33d44bbcd564661d04ce920e5a
|
|
| BLAKE2b-256 |
3fd772be4882a045c92dc46777b1ee366c02c1edf5336b23c1587ca21a1d8b74
|
File details
Details for the file ebs_mcp_server-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ebs_mcp_server-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9dfdac9120927e409c8cc2fbb6e06609161551d373306a5b34468a11b05097a
|
|
| MD5 |
f83a6df928643f0ca7ce2c7778e283c0
|
|
| BLAKE2b-256 |
0b8ea72cb09cd148231f2b5572e4a741f3de604d99cb21e390791ef61ba79893
|