What is Thanos MCP Server?
The Thanos MCP Server is a Model Context Protocol (MCP) server that bridges AI agents with your Prometheus/Thanos monitoring infrastructure. It allows AI assistants to execute PromQL queries and analyze metrics data directly, enabling intelligent monitoring and observability workflows.
🔍 PromQL Query Tool
Execute PromQL queries against Thanos/Prometheus endpoints directly from your AI assistant
🔌 MCP Integration
Works seamlessly with MCP-compatible clients like Cursor and other AI development tools
🌐 Global Metrics Access
Query aggregated metrics across your entire monitoring infrastructure from a single endpoint
Prerequisites
- Thanos Query or Prometheus running on
localhost:9090 - MCP-compatible client (e.g., Cursor)
- Go 1.25.0 or higher
Installation
- Clone the repository from GitHub
- Build the server:
go build -o thanos-mcp.exe src/main.go - Configure in your MCP client using the configuration below