Observability MCP Server
A comprehensive Model Context Protocol (MCP) server for observability and infrastructure management. Built with Rust for high performance and reliability.
Supported Systems
- Prometheus - Metrics querying and alerting
- Loki - Log aggregation and analysis (coming soon)
- Nacos - Service discovery and configuration management
- MySQL - Database metrics and inspection
- Doris - Data warehouse monitoring
- Kubernetes - Cluster orchestration and monitoring
- RocketMQ - Message queue metrics (coming soon)
- Kafka - Stream processing metrics (coming soon)
Features
- ๐ High-performance Rust implementation
- ๐ Unified MCP interface for all systems
- ๐ Real-time metrics and logs
- ๐ง Easy configuration via environment variables
- ๐ Official documentation integration
- ๐ HTTP transport with SSE support
Quick Start
# Build
cargo build --release
# Run
./target/release/observability-mcp-server
Server will start on http://localhost:3013/mcp
Configuration
Set environment variables in .env:
PROMETHEUS_ROOT=http://your-prometheus:9090
LOKI_ROOT=http://your-loki:3100
# ... more configurations
MCP Tools
Prometheus Tools
query_instant- Instant queryquery_range- Range queryseries_metadata- Series metadatalabel_values- Label valuesalertmanagers- Alertmanager endpointsdocs_list- List Prometheus documentationdocs_read- Read documentationdocs_search- Search documentation
Project Structure
observability-mcp-server/
โโโ src/
โ โโโ searcher/ # Query implementations
โ โ โโโ prometheus.rs # Prometheus client
โ โ โโโ loki.rs # Loki client (TODO)
โ โ โโโ mod.rs
โ โโโ mcp/
โ โ โโโ tools.rs # MCP tool definitions
โ โโโ docs/ # Documentation integration
โ โโโ main.rs
โโโ Cargo.toml
Roadmap
- Prometheus integration
- Documentation tools
- Loki integration
- Nacos integration
- MySQL integration
- Doris integration
- Kubernetes integration
- RocketMQ integration
- Kafka integration
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT License