tiny-loki-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOKI_URL | No | Loki base URL | http://127.0.0.1:3100 |
| LOKI_MAX_LIMIT | No | Maximum entries per query | 500 |
| LOKI_TIMEOUT_MS | No | HTTP request timeout | 10000 |
| LOKI_MAX_LOOKBACK_SECONDS | No | Maximum lookback window | 86400 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| loki_labelsA | List Loki label names. Use this before querying when you need to discover available dimensions such as host, service, or level. This is read-only and returns only label names. |
| loki_label_valuesA | List values for one Loki label, such as host or service. Use this to discover valid filter values before running a log query. This is read-only. |
| loki_queryA | Run a bounded LogQL range query and return compact log records. Use this when you already know the LogQL selector or need text filters. Do not use this for unbounded or long-history searches; since and limit are capped by server configuration. |
| loki_recentA | Fetch recent logs by optional host and service labels. Use this for common troubleshooting when you do not need raw LogQL. At least one of host or service should normally be supplied to avoid broad queries. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/myers-gh1328/tiny-loki-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server