Prometheus (TypeScript)

Prometheus (TypeScript)

Enable AI assistants to query Prometheus using natural language with TypeScript implementation.

1
Stars
1
Forks
0
Releases

Overview

Prometheus MCP Server is a Model Context Protocol server that provides seamless integration with Prometheus. It enables AI assistants to query metrics, discover available data, and analyze system performance through natural language interactions. The server offers real-time access to current and historical metrics, and supports metrics discovery to list available metrics and monitoring targets. It includes a full type-safe TypeScript implementation and supports multiple authentication methods (Basic auth, Bearer tokens, and TLS) for secure access. Deployment is flexible via npx (recommended) or a global installation, with configuration driven by environment variables such as PROMETHEUS_URL and optional credentials, timeouts, and insecure connections. A built-in set of Tools (prom_query, prom_range, prom_discover, prom_metadata, prom_targets) exposes common Prometheus operations for AI-driven queries, graphing, discovery, metric metadata, and target health. This MCP server is designed for AI-driven workflows, enabling natural language interaction with Prometheus data while ensuring secure, scalable access.

Details

Owner
yanmxa
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Real-time Metrics Access

Query current and historical Prometheus metrics through MCP, enabling AI assistants to fetch live values and trends.

Metrics Discovery

Discover available metrics and monitoring targets in a Prometheus deployment to understand what data can be queried.

Prometheus MCP Tools

Includes built-in tools (prom_query, prom_range, prom_discover, prom_metadata, prom_targets) for common Prometheus queries and discovery tasks.

Multiple Authentication Methods

Supports Basic authentication, Bearer tokens, and TLS for secure access to Prometheus endpoints.

Type-safe TypeScript Implementation

Fully type-safe MCP server implemented in TypeScript for improved reliability and developer experience.

Flexible Deployment

Deploy via npx (recommended) or global installation to fit your workflow.

Environment-driven Configuration and Secure Connections

Configurable through environment variables such as PROMETHEUS_URL, credentials, and optional TLS/insecure and timeout settings.

Audience

AI developersIntegrate MCP into AI assistants to query metrics and monitor systems.
DevOps teamsLeverage MCP to discover metrics and verify Prometheus targets.
Prometheus usersQuery PromQL data and analyze system performance via natural language.

Tags

PrometheusMCPAImetricsPromQLPrometheus MCP serverTypeScriptauthenticationTLSdiscoverytargets