Overview
What is Grafana-Loki MCP?
Grafana-Loki MCP is a server that allows users to query Loki logs from Grafana, providing a seamless integration for log management and analysis.
How to use Grafana-Loki MCP?
To use Grafana-Loki MCP, set up your Grafana instance and provide the necessary environment variables or command line arguments to run the server. You can query logs using the provided tools and format the results as needed.
Key features of Grafana-Loki MCP?
- Query Loki logs through the Grafana API.
- Retrieve Loki labels and their values.
- Format query results in various formats (text, JSON, markdown).
- Support for both standard input/output and Server-Sent Events (SSE) transport protocols.
Use cases of Grafana-Loki MCP?
- Monitoring application logs in real-time.
- Analyzing error logs for troubleshooting.
- Generating reports based on log data.
FAQ from Grafana-Loki MCP?
- What are the requirements to run Grafana-Loki MCP?
You need Python 3.10+, FastMCP, and Requests libraries installed.
- How do I install Grafana-Loki MCP?
You can install it using pip:
pip install grafana-loki-mcp.
- Can I use Grafana-Loki MCP with any Grafana instance?
Yes, as long as you have the correct API key and permissions.