{"repo":"grafana/loki-mcp","free":true,"listed":false,"github":"https://github.com/grafana/loki-mcp","clone":"git clone https://github.com/grafana/loki-mcp.git","description":"An MCP ( Model Context Protocol ) Server for Grafana Loki","language":"Go","stars":165,"topics":["golang","loki","mcp","mcp-server","agentic-ai","agentic-workflow","grafana"],"license":null,"category":"mcp-servers","readme_excerpt":"Loki MCP Server A Go-based server implementation for the Model Context Protocol (MCP) with Grafana Loki integration. Getting Started Prerequisites - Go 1.16 or higher Building and Running Build and run the server: Or run directly with Go: The server communicates using stdin/stdout and SSE following the Model Context Protocol (MCP). This makes it suitable for use with Claude Desktop and other MCP-compatible clients. Project Structure MCP Server The Loki MCP Server implements the Model Context Protocol (MCP) and provides the following tools: Loki Query Tool The loki query tool allows you to query Grafana Loki log data: - Required parameters: - query : LogQL query string - Optional parameters: - url : The Loki server URL (default: from LOKI URL environment variable or http://localhost:3100) - start : Start time for the query (default: 1h ago) - end : End time for the query (default: now) - limit : Maximum number of entries to return (default: 100) - org : Organization ID for the query (sent as X-Scope-OrgID header) Environment Variables The Loki query tool supports the following environment variables: - LOKI URL : Default Loki server URL to use if not specified in the request - LOKI ORG ID : Default organization ID to use if not specified in the request - LOKI USERNAME : Default username for basic authentication if not specified in the request - LOKI PASSWORD : Default password for basic authentication if not specified in the request - LOKI TOKEN : Default bearer token for authe","default_branch":null,"files":null,"tree":[],"storefront":"/r/grafana","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/grafana/loki-mcp/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}