Skip to content
On this page

Last updated:

Cursor

Use one of the options below to add the prometheus-mcp server to Cursor.

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.internal may not resolve on some Linux setups. If so, either:
    • Use your host IP directly (e.g., http://127.0.0.1:9090 if Prometheus is on the host), or
    • Add --add-host=host.docker.internal:host-gateway to docker run and keep the same URL.

Troubleshooting

  • Ensure Prometheus is reachable at the configured URL.
  • See Installation and Docker for more details and variations.

Apache-2.0 Licensed