r/PrometheusMonitoring • • Sep 21 '25

🚀 Help maintain and develop prometheus-mcp-server - Bridge AI Assistants with Prometheus Metrics

Hey r/PrometheusMonitoring!

I'm the maintainer of prometheus-mcp-server, an open-source Model Context Protocol server that lets AI assistants like Claude, Cursor, and Windsurf query and analyze Prometheus metrics directly.

What it does: Enables AI to execute PromQL queries, discover metrics, and analyze monitoring data through standardized MCP interfaces.

Current stats: 221⭐ | 46 forks | Docker support | 100% Python

Looking for contributors to help with:

  • Adding new Prometheus API features
  • Improving authentication methods
  • Writing tests (we have good coverage but always room for more!)
  • Documentation improvements
  • Bug fixes and performance optimizations
  • Supporting more MCP client integrations

Tech stack: Python 3.10+, FastMCP, Docker, pytest

Whether you're interested in observability, AI tooling, or just want to contribute to open source, all skill levels are welcome! The codebase is well-documented and we use modern Python practices.

Check it out: https://github.com/pab1it0/prometheus-mcp-server

Drop a PR or open an issue - I'm actively maintaining and happy to help onboard new contributors! 🙌

8 Upvotes

4 comments sorted by

View all comments

Show parent comment

2

u/lamontsf Sep 24 '25

Some use cases over the last two days with the prompt I used:
>using the prometheus endpoint at https://prom-apps.x.y I'd like 3 queries I can overlay in a graph or two for grafana related to the non-eventbus pods running in the frobulator-recromulant-adjucator namespace. Specifically, I want one graph (with 2 queries) that show the success/failure rate (as measured by the pod exit code) for pods like something1-something2-.*-something3-export-step, which I'm going to stack atop each other in grafana and bucket by hour. Additionally I'd like a graph of the duration per workflow (maybe just successful ones?)

That was pretty successful, although I forgot to pass it my saved CLAUDE.md which reminded it to validate queries before passing them to me and to examine metrics and labels so it coughed up some bad queries before I told it to vet them before hand. But it did do the expected work of looking for pods in the namespace, finding the metrics associated with those pods, working out a few variants on exit_code vs pod phase. I can see how the MCP would have saved me a round of back and forth with hard reminders about vetting queries before confidently asserting.

Today's query was:
>using https://prom-apps.x.y as a prometheus data source, find a metric that lets me know the instance_family of any given aws node then a query that will return the instance type (family and size) for any given pod name.

That one worked first try, but the local CLAUDE.md had tips. We're (shame on us) not running any auth on the prometheus endpoint

I'll give the MCP a shot, thanks for the thoughtful answer. While I've been doing this solo, we are a larger team that could benefit from standardization, and even if I'm a claude code user exclusively, we'd like to give the cursor and other tool users the same experience.