PaulMRamirez/yamcs-mcp-server
If you are the rightful owner of yamcs-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Yamcs MCP Server is a comprehensive Model Context Protocol server that bridges AI assistants with mission control systems using the FastMCP 2.x protocol.
Yamcs MCP Server
A comprehensive Model Context Protocol (MCP) server for Yamcs (Yet Another Mission Control System) that exposes Yamcs capabilities as standardized MCP tools and resources.
Overview
The Yamcs MCP Server enables AI assistants to interact with mission control systems through natural language by providing a bridge between MCP-compatible clients and Yamcs instances. It implements the MCP protocol using FastMCP 2.x with a modular component architecture.
Features
- Mission Database (MDB): Access to parameters, commands, algorithms, and space systems
- TM/TC Processing: Real-time telemetry monitoring and command execution
- Link Management: Monitor and control data links
- Object Storage: Manage buckets and objects in Yamcs storage
- Instance Management: Control Yamcs instances and services
- Alarm Management: Monitor and acknowledge alarms with summary statistics
Installation
Prerequisites
- Python 3.12 or higher
- Yamcs server instance (local or remote)
- uv package manager (recommended) or pip
Using uv (recommended)
# Clone the repository
git clone https://github.com/PaulMRamirez/yamcs-mcp-server.git
cd yamcs-mcp-server
# Install dependencies
uv sync
# Run the server
uv run yamcs-mcp
Using pip
# Clone the repository
git clone https://github.com/PaulMRamirez/yamcs-mcp-server.git
cd yamcs-mcp-server
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install the package
pip install -e .
# Run the server
yamcs-mcp
Running Yamcs
You'll need a running Yamcs instance. The easiest way is using Docker:
docker run -d --name yamcs -p 8090:8090 yamcs/example-simulation
This will start Yamcs with a simulator
instance that includes example telemetry data.
Configuration
The server can be configured using environment variables or a .env
file:
# Yamcs connection settings
YAMCS_URL=http://localhost:8090
YAMCS_INSTANCE=simulator
YAMCS_USERNAME=admin
YAMCS_PASSWORD=password
# Server toggles
YAMCS_ENABLE_MDB=true
YAMCS_ENABLE_PROCESSOR=true
YAMCS_ENABLE_LINKS=true
YAMCS_ENABLE_STORAGE=true
YAMCS_ENABLE_INSTANCES=true
YAMCS_ENABLE_ALARMS=true
# Server settings
MCP_TRANSPORT=stdio
MCP_HOST=127.0.0.1
MCP_PORT=8000
Usage
With Claude Desktop
Add the server to your Claude Desktop configuration:
{
"mcp-servers": {
"yamcs": {
"command": "uv",
"args": ["--directory", "/path/to/yamcs-mcp-server", "run", "yamcs-mcp"],
"env": {
"YAMCS_URL": "http://localhost:8090",
"YAMCS_INSTANCE": "simulator"
}
}
}
}
Important:
- Replace
/path/to/yamcs-mcp-server
with the actual path to your yamcs-mcp-server directory - The
--directory
argument is required for uv to find the correct project - If
uv
is not in your PATH, use the full path to uv (e.g.,/Users/PaulMRamirez/.local/bin/uv
)
Available Tools
The server exposes numerous tools organized by server:
MDB Tools
mdb_list_parameters
- List available parametersmdb_describe_parameter
- Get parameter detailsmdb_list_commands
- List available commandsmdb_describe_command
- Get command detailsmdb_list_space_systems
- List space systemsmdb_describe_space_system
- Get space system details
Processor Tools
processors_list_processors
- List available processorsprocessors_describe_processor
- Get processor detailsprocessors_delete_processor
- Delete a processorprocessors_issue_command
- Issue a commandprocessors_subscribe_parameters
- Subscribe to parameter updates
Link Tools
links_list_links
- List all data linkslinks_describe_link
- Get detailed link informationlinks_enable_link
- Enable a data linklinks_disable_link
- Disable a data link
Instance Tools
instances_list_instances
- List Yamcs instancesinstances_describe_instance
- Get instance detailsinstances_start_instance
- Start an instanceinstances_stop_instance
- Stop an instance
Storage Tools
storage_list_buckets
- List storage bucketsstorage_list_objects
- List objects in a bucketstorage_upload_object
- Upload an objectstorage_download_object
- Download an object
Alarm Tools
alarms_list_alarms
- List active alarms with summary countsalarms_describe_alarm
- Get detailed alarm informationalarms_acknowledge_alarm
- Acknowledge an alarmalarms_shelve_alarm
- Temporarily shelve an alarmalarms_unshelve_alarm
- Unshelve an alarmalarms_clear_alarm
- Clear an alarmalarms_read_log
- Read alarm history
Available Resources
The server also provides read-only resources:
mdb://parameters
- List all parametersprocessors://list
- List all processors with detailslinks://status
- Show status of all linksinstances://list
- List all instances with detailsalarms://list
- Show active alarms summary
Development
Setting up the development environment
# Install development dependencies
uv sync --all-extras
# Install pre-commit hooks
pre-commit install
# Run tests
uv run pytest
# Run linting
uv run ruff check .
# Run type checking
uv run mypy src/
Testing
Run the test suite:
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=yamcs_mcp --cov-report=html
# Run specific test file
uv run pytest tests/test_server.py
# Run with verbose output
uv run pytest -v
Testing Without a Yamcs Server
The server can run in demo mode without connecting to a real Yamcs server:
# Run in demo mode (will show a warning about connection failure but continue)
uv run python -m yamcs_mcp.server
# Or use the demo script
uv run python run_demo.py
Project Structure
yamcs-mcp-server/
āāā src/
ā āāā yamcs_mcp/
ā āāā server.py # Main server entry point
ā āāā servers/ # MCP servers
ā ā āāā base_server.py # Base class for all servers
ā ā āāā mdb.py # Mission Database
ā ā āāā processors.py # TM/TC Processing
ā ā āāā links.py # Link management
ā ā āāā storage.py # Object storage
ā ā āāā instances.py # Instance management
ā ā āāā alarms.py # Alarm management
ā āāā client.py # Yamcs client management
ā āāā config.py # Configuration
ā āāā types.py # Type definitions
āāā tests/ # Test suite
āāā scripts/ # Test scripts
āāā CLAUDE.md # AI assistant guidance
Contributing
Contributions are welcome! Please read our before submitting pull requests.
License
This project is licensed under the MIT License - see the file for details.