tiny-loki-mcp
Enables read-only querying of Grafana Loki logs through tools like label discovery, LogQL queries, and recent log retrieval, without requiring knowledge of the Loki API.
README
tiny-loki-mcp
tiny-loki-mcp is a small read-only Model Context Protocol server for Grafana
Loki. It exposes a narrow set of tools for agents that need to inspect recent
logs without learning Loki's HTTP API.
Tools
loki_labels: list available label names.loki_label_values: list values for one label.loki_query: run a bounded LogQL range query.loki_recent: fetch recent logs by optional host and service labels.
All tools are read-only. The server does not expose Loki delete, admin, or push APIs.
Configuration
Environment variables:
LOKI_URL: Loki base URL. Defaults tohttp://127.0.0.1:3100.LOKI_MAX_LIMIT: maximum entries per query. Defaults to500.LOKI_MAX_LOOKBACK_SECONDS: maximum lookback window. Defaults to86400.LOKI_TIMEOUT_MS: HTTP request timeout. Defaults to10000.
Run
npm install
npm run build
LOKI_URL=http://127.0.0.1:3100 node dist/index.js
MCP Client Example
{
"mcpServers": {
"tiny-loki": {
"command": "node",
"args": ["/path/to/tiny-loki-mcp/dist/index.js"],
"env": {
"LOKI_URL": "http://127.0.0.1:3100"
}
}
}
}
Safety
The server caps query limits and lookback windows. It returns compact records with labels, timestamp, and line content instead of raw Loki responses.
Dependency Updates
Dependency updates are managed by Dependabot through .github/dependabot.yml.
Dependabot opens weekly grouped PRs for npm and GitHub Actions updates. These
PRs are never auto-merged; review and run the normal verification path before
merge.
Releases
Releases use semantic versioning with vMAJOR.MINOR.PATCH tags. Release notes
are tracked in CHANGELOG.md. Package publishing is not enabled.
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.