A Model Context Protocol (MCP) server that provides seamless integration between AI assistants and , enabling natural language interactions with your monitoring infrastructure. This server allows for effortless querying, discovery, and analysis of metrics through Visual Studio Code, Cursor, Windsurf, Claude Desktop, and other MCP clients.
A Model Context Protocol (MCP) server implementation that provides AI agents with programmatic access to Prometheus metrics via a unified interface.
# For VS Code
code --add-mcp '{"name":"prometheus","command":"npx","args":["prometheus-mcp@latest","stdio"],"env":{"PROMETHEUS_URL":"http://localhost:9090"}}'
# For VS Code Insiders
code-insiders --add-mcp '{"name":"prometheus","command":"npx","args":["prometheus-mcp@latest","stdio"],"env":{"PROMETHEUS_URL":"http://localhost:9090"}}'
After installation, the Prometheus MCP server will be available for use with your GitHub Copilot agent in VS Code.
Go to Cursor Settings → MCP → Add new MCP Server. Name to your liking, use command type with the command npx prometheus-mcp. You can also verify config or add command arguments via clicking Edit.
Prometheus MCP server supports the following arguments. They can be provided in the JSON configuration above, as part of the "args" list:
> npx prometheus-mcp@latest --help
Commands:
stdio Start Prometheus MCP server using stdio transport
http Start Prometheus MCP server using HTTP transport
Options:
--help Show help [boolean]
--version Show version number [boolean]
Environment Variables
You can also configure the server using environment variables:
PROMETHEUS_URL - Prometheus server URL
ENABLE_DISCOVERY_TOOLS - Set to "false" to disable discovery tools (default: true)
ENABLE_INFO_TOOLS - Set to "false" to disable info tools (default: true)
ENABLE_QUERY_TOOLS - Set to "false" to disable query tools (default: true)
Standalone MCP Server
When running in server environments or when you need HTTP transport, run the MCP server with the http command:
npx prometheus-mcp@latest http --port 3000
And then in your MCP client config, set the url to the HTTP endpoint:
Aún no hay lista de herramientas. Los servidores remotos la reciben tras la primera comprobación de estado.
Preguntas frecuentes
Preguntas
¿Cómo instalo Prometheus?
Copia en esta página la configuración stdio para Cursor, Claude Desktop, Claude Code o VS Code. Usa la instalación del publicador, no un proxy de PlugMCP.
¿Prometheus necesita una clave de API?
Este registro no indica ninguna variable de entorno obligatoria.
¿Qué transporte usa Prometheus?
Prometheus se ejecuta localmente por stdio.
¿Cuándo se comprobó Prometheus por última vez?
Última comprobación: 2026-10-27. A Model Context Protocol (MCP) server implementation that provides AI agents with programmatic access to Prometheus metrics via a unified interface.