Prometheus MCP Server
Features
- Execute PromQL queries against Prometheus
- Discover and explore metrics
- Authentication support
- Docker containerization support
- Provide interactive tools for AI assistants
Usage
- Ensure your Prometheus server is accessible from the environment where you'll run this MCP server.
- Configure the environment variables for your Prometheus server, either through a
.envfile or system environment variables:
- Add the server configuration to your client configuration file. For example, for Claude Desktop:
Note: if you seeError: spawn uv ENOENTin Claude Desktop, you may need to specify the full path touvor set the environment variableNO_UV=1in the configuration.
Docker Usage
Building the Docker Image
Running with Docker
Using docker run directly:
Using docker-compose:
.env file with your Prometheus credentials and then run:Running with Docker in Claude Desktop
-e flag with just the variable name, and providing the actual values in the env object.Note about Docker implementation: The Docker setup has been updated to match the structure of the chess-mcp project, which has been proven to work correctly with Claude. The new implementation uses a multi-stage build process and runs the entry point script directly without an intermediary shell script. This approach ensures proper handling of stdin/stdout for MCP communication.
Development
uv following the instructions for your platform:Project Structure
src directory structure:Testing
- Configuration validation tests
- Server functionality tests
- Error handling tests
- Main application tests
Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
License
Prometheus MCP Server
Features
- Execute PromQL queries against Prometheus
- Discover and explore metrics
- Authentication support
- Docker containerization support
- Provide interactive tools for AI assistants
Usage
- Ensure your Prometheus server is accessible from the environment where you'll run this MCP server.
- Configure the environment variables for your Prometheus server, either through a
.envfile or system environment variables:
- Add the server configuration to your client configuration file. For example, for Claude Desktop:
Note: if you seeError: spawn uv ENOENTin Claude Desktop, you may need to specify the full path touvor set the environment variableNO_UV=1in the configuration.
Docker Usage
Building the Docker Image
Running with Docker
Using docker run directly:
Using docker-compose:
.env file with your Prometheus credentials and then run:Running with Docker in Claude Desktop
-e flag with just the variable name, and providing the actual values in the env object.Note about Docker implementation: The Docker setup has been updated to match the structure of the chess-mcp project, which has been proven to work correctly with Claude. The new implementation uses a multi-stage build process and runs the entry point script directly without an intermediary shell script. This approach ensures proper handling of stdin/stdout for MCP communication.
Development
uv following the instructions for your platform:Project Structure
src directory structure:Testing
- Configuration validation tests
- Server functionality tests
- Error handling tests
- Main application tests
Tools
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |