AS

aws-samples/sample-grafana-remote-mcp

Developer toolsОфициальный

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

6 stars 5 forks Качество 54 Тренд 14MIT-0

Secure Grafana MCP (Model Context Protocol) server with OAuth 2.1 authentication on AWS, enabling AI agents to query Grafana dashboards, metrics, traces, and logs.

Обзор

Secure Grafana MCP (Model Context Protocol) server with OAuth 2.1 authentication on AWS, enabling AI agents to query Grafana dashboards, metrics, traces, and logs. This MCP server enables AI agents to interact with Grafana for: - Querying dashboards and metrics - Analyzing traces and logs - Investigating incidents - Providing intelligent troubleshooting Works with the sample-grafana-prometheus-stack for complete agentic observability demo. ✅ OAuth 2.1 compliant (RFC9728) ✅ Multi-layer WAF protection ✅ VPC isolation with private subnets ✅ Encrypted at rest and in transit ✅ Non-root containers ✅ Secrets Manager integration - : OAuth 2.

README

Показан фрагмент оригинального README. Открыть оригинал.

Grafana MCP Server with OAuth 2.1

Secure Grafana MCP (Model Context Protocol) server with OAuth 2.1 authentication on AWS, enabling AI agents to query Grafana dashboards, metrics, traces, and logs.

This MCP server enables AI agents to interact with Grafana for:

  • Querying dashboards and metrics
  • Analyzing traces and logs
  • Investigating incidents
  • Providing intelligent troubleshooting

Works with the sample-grafana-prometheus-stack for complete agentic observability demo.

Security Features

✅ OAuth 2.1 compliant (RFC9728)
✅ Multi-layer WAF protection
✅ VPC isolation with private subnets
✅ Encrypted at rest and in transit
✅ Non-root containers
✅ Secrets Manager integration

Architecture

┌──────────────┐    ┌──────────────┐    ┌──────────────┐
│  CloudFront  │────│     WAF      │────│     ALB      │
│     CDN      │    │  Protection  │    │              │
└──────────────┘    └──────────────┘    └──────────────┘
                                               │
                    ┌──────────────────────────┴────────┐
                    │                                   │
                    ▼                                   ▼
            ┌──────────────┐                  ┌──────────────┐
            │   Cognito    │                  │  ECS Fargate │
            │  User Pool   │                  │              │
            │ (OAuth 2.1)  │                  │ ┌──────────┐ │
            └──────────────┘                  │ │  OAuth   │ │
                    │                         │ │ Wrapper  │ │
                    │ JWT Validation          │ └────┬─────┘ │
                    └─────────────────────────┤      │       │
                                              │      ▼       │
                                              │ ┌──────────┐ │
                                              │ │ Grafana  │ │
                                              │ │   MCP    │ │
                                              │ │  Server  │ │
                                              │ └──────────┘ │
                                              └──────────────┘

Components

  • Cognito User Pool: OAuth 2.1 authorization with MFA support
  • CloudFront + WAF: Global CDN with multi-layer protection
  • ECS Fargate: Serverless container hosting
  • OAuth Wrapper: JWT token validation and proxying
  • Grafana MCP Server: Official MCP server for Grafana integration

Deployment

Prerequisites

  • AWS CLI configured
  • AWS CDK installed: npm install -g aws-cdk
  • Docker running
  • Grafana instance url with service account token: Deploy sample-grafana-prometheus-stack to automate generating this stack.

Automated Setup

scripts/complete-setup.sh
Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →