Skip to main content
Glama
ramraj-patel

query-layer

by ramraj-patel

MCP-сервер для Query Layer API

MCP-сервер (Model Context Protocol), который предоставляет AI-ассистентам API уровня запросов к метрикам. Создан на базе официального Python MCP SDK v2.

Быстрый старт

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

Откройте MCP Inspector по адресу, выведенному в консоль. Вы увидите доступный инструмент ping.

Related MCP server: prometheus-mcp

Интеграция с Cursor

Файл .cursor/mcp.json уже предварительно настроен. Перезапустите Cursor, и MCP-сервер query-layer станет доступен AI-ассистенту.

Локальная трассировка с Phoenix (необязательно)

# 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

Просматривайте трейсы на http://localhost:6006 — Phoenix нативно отображает вызовы инструментов MCP, промпты и GenAI-спаны.

Документация

Документ

Назначение

План

Постановка проблемы, подход к решению, план реализации

Ревью

Ревью плана на предмет продакшн-готовности

Проектирование

Концепции MCP, технологические решения, проектные решения

Начало работы

Установка, настройка, запуск, конфигурация, устранение неполадок

Наблюдаемость

Логирование, трассировка, OTLP, локальный Phoenix

Структура проекта

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

Лицензия

Apache 2.0 — см. LICENSE.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

Related MCP Connectors

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
    513
    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
    4,823
    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

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