Cursor
Use one of the options below to add the prometheus-mcp server to Cursor.
1) One‑click install (recommended)
Open this link in Cursor to add the server automatically:
This config runs the server in Docker and points it at Prometheus at http://host.docker.internal:9090.
2) Manual add
Add a new MCP server in Cursor settings using the following command and args:
- command:
docker - args:
run,--rm,-i,brenoepics/prometheus-mcp:latest,--mcp,--prometheus-url,http://host.docker.internal:9090
Linux notes
host.docker.internalmay not resolve on some Linux setups. If so, either:- Use your host IP directly (e.g.,
http://127.0.0.1:9090if Prometheus is on the host), or - Add
--add-host=host.docker.internal:host-gatewaytodocker runand keep the same URL.
- Use your host IP directly (e.g.,
Troubleshooting
- Ensure Prometheus is reachable at the configured URL.
- See Installation and Docker for more details and variations.