Przejdź do treści
Biblioteka skilli
DevOps i chmura · Integracja z narzędziem

assistant-mcp

/assistant-mcp

Łączy agentów kodujących (Claude Code, Cursor, VS Code, OpenAI Codex) z Grafana Cloud przez serwer mcp-grafana: instalacja, token konta serwisowego, konfiguracja, tryb tylko do odczytu i transport SSE.

Repozytorium
skills ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
23.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
4
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
7
Przestarzałość

Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Łączy agentów kodujących (Claude Code, Cursor, VS Code, OpenAI Codex) z Grafana Cloud przez serwer mcp-grafana: instalacja, token konta serwisowego, konfiguracja, tryb tylko do odczytu i transport SSE.

Oryginalny opis (EN)

Connect AI coding agents (Claude Code, Cursor, VS Code, OpenAI Codex) to Grafana Cloud via the `mcp-grafana` Model Context Protocol server. Installs the server with `go install`, generates a Grafana service-account token, wires `~/.claude/settings.json` or `~/.cursor/mcp.json` with the `command` + `env` block, runs `--disable-write` for safer read-only sessions, switches to SSE transport for team-shared / VS Code setups, and verifies with `/mcp` + a `list_datasources` round-trip. Use when connecting Claude Code to Grafana, setting up MCP for Grafana, configuring the Grafana MCP server, using G

Jak działa

  1. Common Workflows
  2. Security considerations
  3. References
  4. External resources
Sekcje z nagłówków SKILL.md, w oryginale · 103 linii, 503 słów
Podgląd SKILL.md
---
name: assistant-mcp
license: Apache-2.0
description: Connect AI coding agents (Claude Code, Cursor, VS Code, OpenAI Codex) to Grafana Cloud via the `mcp-grafana` Model Context Protocol server. Installs the server with `go install`, generates a Grafana service-account token, wires `~/.claude/settings.json` or `~/.cursor/mcp.json` with the `command` + `env` block, runs `--disable-write` for safer read-only sessions, switches to SSE transport for team-shared / VS Code setups, and verifies with `/mcp` + a `list_datasources` round-trip. Use when connecting Claude Code to Grafana, setting up MCP for Grafana, configuring the Grafana MCP server, using Grafana tools in Cursor/VS Code, querying Grafana from an AI agent, sharing the MCP server across a team — even when the user says "give my agent Grafana access", "let Claude see my metrics", or "Cursor + Grafana" without saying "MCP".
---

# Grafana Cloud MCP Server Setup

The Grafana MCP server exposes Grafana Cloud capabilities as tools that AI agents can call via the Model Context Protocol. Agents can then query metrics, search dashboards, manage alerts, investigate incidents, and interact with Fleet Management without leaving the coding environment.

Transports: `stdio` (agent spawns the server as a subprocess, simplest), or `SSE` (server runs independently, agents connect via HTTP — see [references/sse-transport.md](references/sse-transport.md)).

## Common Workflows

### Connecting Claude Code to Grafana (stdio)

```bash
# 1. Install the server
go install github.com/grafana/mcp-grafana/cmd/mcp-grafana@latest

# 2. Verify the binary
mcp-grafana --version
# If "command not found": ensure $GOPATH/bin (or $HOME/go/bin) is on PATH.
```

3. **Get a service-account token**: Grafana Cloud → Administration → Service Accounts → create with `Viewer` role (add `Editor` only if you need writes) → generate token. Note the Grafana URL (e.g. `https://myorg.grafana.net`).

4. **Wire `~/.claude/settings.json`** (or project-local `.claude/settings.json`):

   ```json
   {
     "mcpServers": {
       "grafana": {
         "command": "mcp-grafana",
         "args": ["--disable-write"],
         "env": {
           "GRAFANA_URL": "https://myorg.grafana.net",
           "GRAFANA_API_KEY": "glsa_xxxx"
         }
       }
     }
   }
   ```

   `--disable-write` is the safer default — drop it once you've verified the read path works.

5. **Restart Claude Code, then verify**:

   ```
   /mcp
   ```

   The `grafana` server should appear with its tool list. Then ask:

   ```
   What data sources are configured in my Grafana instance?
   ```

   A clean response = working. If the tool call fails:
   - Check `GRAFANA_URL` has no trailing slash
   - Confirm the API key hasn't expired
   - Re-run with `mcp-grafana --debug` to see raw request/response

### Connecting Cursor

Same Grafana token. Settings → Features → MCP Servers (or edit `~/.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "grafana": {
      "command": "mcp-grafana",
      "args": ["--disable-write"],
      "env": {
        "GRAFANA_URL": "https://myorg.grafana.net",
        "GRAFANA_API_KEY": "glsa_xxxx"
      }
    }
  }
}
```

Verify the same way — Cursor surfaces MCP servers in its agent panel; run a query like "list dashboards tagged kubernetes".

### Sharing the server across a team (SSE)

Switch from `stdio` to `SSE` so the server runs once and many agents connect to it. Full setup with VS Code config in [references/sse-transport.md](references/sse-transport.md).

## Security considerations

- API keys belong in env vars or a secrets manager — never in committed files.
- Use `--disable-write` for shared environments and CI; only lift it on the specific machine where the agent should be allowed to mutate Grafana.
- Scope service-account permissions to the minimum: `Viewer` is enough for queries and dashboard reads. Only grant `Editor` when the agent needs to create dashboards or annotations.
- Rotate tokens periodically via Administration → Service Accounts.

## References

- [`references/tools.md`](references/tools.md) — full list of MCP tools exposed (query / dashboard / alerting / Fleet Management / annotations) and how to discover the live set
- [`references/sse-transport.md`](references/sse-transport.md) — SSE setup for team sharing and VS Code, with stdio-vs-SSE decision matrix + common failure modes
- [`references/a2a.md`](references/a2a.md) — Agent-to-Agent (A2A) protocol for delegating reasoning to the Grafana Assistant (vs direct tool calls via MCP)

## External resources

- [Grafana MCP server (github.com/grafana/mcp-grafana)](https://github.com/grafana/mcp-grafana)
- [Model Context Protocol specification](https://spec.modelcontextprotocol.io/)
- [Grafana Cloud API documentation](https://grafana.com/docs/grafana-cloud/developer-resources/api-reference/)
- [Grafana Assistant documentation](https://grafana.com/docs/grafana-cloud/machine-learning/assistant/)
Pliki w paczce (4)
  • SKILL.md 5 KB
  • references/a2a.md 1 KB
  • references/sse-transport.md 1 KB
  • references/tools.md 2 KB

Wersje

W bazie nie ma innych skilli o nazwie assistant-mcp.

Migawka bazy z 28.10.2026 · wersja paczki 9e8243fefa69 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100grafana-cloud-mcp-tools
    Łączy się z serwerem Grafana Cloud MCP i obsługuje go: pytania do Grafana Assistant, dochodzenia w metrykach, logach, śladach i incydentach, autoryzacja OAuth, zakresy dostępu i oszczędzanie kontekstu.
  • 100grafana-assistant-cli
    Obsługuje CLI grafana-assistant do rozmowy z Grafana Assistant przez A2A API: instalacja, konfiguracja, zadawanie pytań, zachowanie kontekstu rozmowy i wzorce dochodzeń operacyjnych.
  • 95mcp-integration
    Pomaga podłączyć serwer MCP do wtyczki Claude Code, opisując typy SSE, stdio i HTTP oraz plik .mcp.json.
  • 100render-mcp
    Łączy i konfiguruje serwer Render MCP dla narzędzi AI do kodowania (Cursor, Claude Code, Codex): uwierzytelnianie, wybór workspace, katalog narzędzi i rozwiązywanie problemów.
  • 100configure-zymtrace-mcp
    Podłącza agenta kodującego (Claude Code, Codex, Cursor) do serwera MCP zymtrace, by analizować flamegraphy CPU i GPU zapytaniami w języku naturalnym: adres bramy, token i weryfikacja połączenia.
  • 100run-mcp-gateway
    Wystawia lokalny serwer MCP w trakcie rozwoju do zdalnych testów z dostawcami AI, z osobnym tokenem dla każdego dostawcy i bez publicznego dostępu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.