AcademyMCP serversOperations

grafana-loki-mcp

Operations and support teams that check application logs while investigating an incident or a customer report.

  • Recommendedour rating
  • 29gitHub stars
  • MITlicence
  • 11 months agolast update
claude mcp add loki -- uvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEY
README.md

Loading the file...

Custom AI agents

Want this running in your company?

We build AI agents like this around your own processes, connect them to your tools and data, and keep them running. The same team builds and runs them.

  • Free 20-minute call to look at your use case
  • Connected to your systems, with the right permissions
  • Built and run by the same team, in English or Spanish

What it does

grafana-loki-mcp lets an AI assistant query Loki logs through the Grafana API. It lists log labels and their values, runs queries, and returns results as text, JSON or Markdown. The server works over stdio or SSE transport.

Use cases

  1. 01Find recent error lines for one service
  2. 02List the labels available in a log stream
  3. 03Export query results as JSON for a ticket

Questions about
grafana-loki-mcp.

What is grafana-loki-mcp used for?

Operations and support teams that check application logs while investigating an incident or a customer report. grafana-loki-mcp lets an AI assistant query Loki logs through the Grafana API. It lists log labels and their values, runs queries, and returns results as text, JSON or Markdown. The server works over stdio or SSE transport.

How do I install grafana-loki-mcp?

Run this in your terminal: claude mcp add loki -- uvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEY

Is grafana-loki-mcp open source?

Yes. The code is on GitHub (tumf/grafana-loki-mcp) under the MIT licence.

Is grafana-loki-mcp safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.