Skip to main content
Glama
ramraj-patel

query-layer

by ramraj-patel

MCP Server for Query Layer API

An MCP (Model Context Protocol) server that exposes a metrics query-layer API to AI assistants. Built with the official Python MCP SDK v2.

Quick Start

# Prerequisites: Python 3.10+, uv
uv sync
uv run mcp dev src/server.py

Open the MCP Inspector at the URL printed to the console. You'll see the ping tool available.

Related MCP server: prometheus-mcp

Cursor Integration

The .cursor/mcp.json file is pre-configured. Restart Cursor and the query-layer MCP server will be available to the AI assistant.

Local Tracing with Phoenix (Optional)

# Terminal 1: start Phoenix
uv run phoenix serve

# Terminal 2: run the server pointing at Phoenix
export PHOENIX_COLLECTOR_ENDPOINT=http://localhost:6006
uv run mcp dev src/server.py

View traces at http://localhost:6006 — Phoenix natively renders MCP tool calls, prompts, and GenAI spans.

Documentation

Document

Purpose

Plan

Problem statement, solution approach, implementation plan

Review

Production-grade plan review

Design

MCP concepts, technology choices, design decisions

Getting Started

Setup, install, run, configure, troubleshoot

Observability

Logging, tracing, OTLP, local Phoenix

Project Structure

src/
  server.py          # MCPServer + tools (entry point)
  logging_config.py  # Structured JSON logging to stderr
  otel_config.py     # OpenTelemetry exporter configuration
.cursor/
  mcp.json           # Cursor MCP server configuration
docs/
  plan.md            # Full implementation plan
  review.md          # Plan review
  design.md          # Design document
  getting-started.md # Setup guide
  observability.md   # Observability guide

License

Apache 2.0 — see LICENSE.

A
license - permissive license
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    Provides access to Prometheus metrics and queries through standardized Model Context Protocol interfaces, allowing AI assistants to execute PromQL queries and analyze metrics data.
    6
    512
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Provides seamless integration between AI assistants and Prometheus, enabling natural language interactions with your monitoring infrastructure. This server allows for effortless querying, discovery, and analysis of metrics.
    10
    2,060
    27
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to query Prometheus metrics, monitor alerts, and analyze system health through read-only access to your Prometheus server with built-in query safety and optional AI-powered metric analysis.
    MIT

View all related MCP servers

Related MCP Connectors

  • Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

  • MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ramraj-patel/mcp-basic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server