G
Grafana Loki
Query Grafana Loki logs with LogQL.
·No reviews yet
Share:
About
Auto-generated
Grafana Loki is a Model Context Protocol server in the Developer Tools category. It lets AI assistants that speak MCP call its tools and read its resources over STDIO.
Example tools
Illustrative tool names — the actual tool set is defined by the server at runtime.
list_resources
Enumerate resources exposed by this MCP
get_resource
Fetch a resource by ID
invoke
Invoke the primary action of this MCP
Screenshots
No screenshots yet.
Frequently Asked Questions
Common questions about Grafana Loki.
- What does the Grafana Loki MCP do?
- The Grafana Loki MCP allows you to query logs using LogQL, Grafana Loki's query language. It acts as an interface to interact with your Loki instance, enabling log analysis directly through a client application.
- How do I configure this MCP in a client like Claude Desktop?
- To configure it, you would typically add the 'loki' MCP from the available MCP list in Claude Desktop. You will need to provide the Loki instance's endpoint and your API key for authentication.
- Does the Grafana Loki MCP require an API key?
- Yes, this MCP requires an API key for authentication. This key grants the necessary permissions to query and access logs from your Grafana Loki instance.
- What are the key capabilities exposed by this MCP?
- This MCP primarily exposes capabilities for querying Grafana Loki logs using LogQL. This includes features for filtering, aggregating, and analyzing log data, similar to what's available directly in Loki.
- What is the licensing/cost model for the Grafana Loki MCP?
- The Grafana Loki MCP itself is likely open-source given its community provider, aligning with Loki's open-source nature. However, the cost of the underlying Grafana Loki service depends on your deployment and infrastructure choices.
- What is a major prerequisite for using this MCP?
- A major prerequisite is having a running Grafana Loki instance accessible from where you are using the MCP client. Without a Loki instance to connect to, the MCP cannot function.
Install Grafana Loki
Claude Desktop
Add this to claude_desktop_config.json.
{
"mcpServers": {
"loki": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-loki"
]
}
}
}Cursor
Add this to ~/.cursor/mcp.json.
{
"mcpServers": {
"loki": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-loki"
]
}
}
}VS Code
Add this to your workspace settings.json.
{
"mcp.servers": {
"loki": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-loki"
]
}
}
}Reviews
Sign in to leave a review.
No reviews yet. Be the first!
Discussion(0)
No comments yet.