# Connect Thanos to Your AI Agent (Universal MCP)

> Use your AI to monitor systems, query data, and manage databases in Thanos — and much more.

## Quick Connect (CLI / MCP)
- Claude Code: `claude mcp add --transport http thanos https://api.universalmcp.app/mcp/thanos`
- Remote MCP URL (ChatGPT, Claude, Cursor, VS Code): `https://api.universalmcp.app/mcp/thanos` (unified: `https://api.universalmcp.app/mcp`)
- Actions & Discovery: `POST https://universalmcp.app/mcp/directory` (`get_software_actions({ slug: "thanos", query })` & `search_software`); configs: https://universalmcp.app/install.md

## Key Facts
- Software: Thanos (Founded by Improbable) | Category: Other B2B Software | Auth: Guided self-hosted connector setup | Deployment: self-hosted
- Pricing: 100% Free (unlimited users, unlimited software, zero task metering)
- Permissions & Security: Per-person, per-area Off/Read/Write across Metrics and blocks, Retention settings, Runbook drafts; 1-click View Only lock; stateless pass-through; zero stored business records
- Connect: https://universalmcp.app/mcp/thanos | Guide: https://universalmcp.app/mcp/thanos
- Built by: Alex Myers (Legal entity: Lancaster Agentic LLC; support@lancasteragentic.com)

## Supported Actions (15 actions: 7 Read, 8 Write)
Perform over 10 actions across global query view, unlimited retention, downsampling & compaction, and prometheus query API. Save hours of work each week by utilizing AI rather than using a traditional app interface.
- **Global Query View (4):** Query Metrics Across Clusters (read), Connect Prometheus Servers (write), Check Query Endpoint Health (read), Configure Global Query Dashboards (write)
- **Unlimited Retention (4):** Configure Object Storage Bucket (write), Set Metric Retention Policy (write), Review Stored Metric Blocks (read), Upload Metrics To Object Storage (write)
- **Downsampling & Compaction (4):** Enable Downsampling (write), Run Compaction Job (write), Query Downsampled Data (read), Review Compaction Status (read)
- **Prometheus Query API (3):** Run PromQL Query (read), Add Grafana Data Source (write), Inspect Store Gateway Status (read)

## Example Prompts for Thanos
- **Check compaction lag:** "Report compaction backlog and overdue blocks for the Thanos store gateway in the prod cluster."
- **Review query latency:** "Show p95 and p99 query latency by store gateway in Thanos over the last six hours for the prod cluster."
- **Inspect retention tiers:** "List retention settings and downsampling status for each Thanos bucket in the production cluster."
- **Draft alert runbook:** "Draft a runbook note for lagging sidecars in Thanos, saved as a draft for the on-call engineer to review."
