logflare-mcp
logflare-mcp
MCP-Server für die Logflare Management-API. Stellt Quellen, Endpunkte und Ad-hoc-SQL-Abfragetools für MCP-Clients (Claude Code, Claude Desktop, Cursor, …) über stdio bereit.
Basiert auf dem offiziellen @modelcontextprotocol/sdk und kommuniziert direkt mit der öffentlichen Logflare-REST-API – kein Drittanbieter-Authentifizierungs-Proxy.
Tools
Tool | Beschreibung |
| Listet alle für den API-Schlüssel verfügbaren Quellen auf |
| Ruft eine einzelne Quelle anhand des Tokens ab |
| Abgeleitete Feldtypen für eine Quelle |
| Die neuesten Ereignisse einer Quelle |
| Gespeicherte Abfrage-Endpunkte |
| Führt einen gespeicherten Endpunkt per UUID oder Name mit Parametern aus |
| Führt Ad-hoc BigQuery / Postgres / ClickHouse SQL aus |
Related MCP server: Sumo Logic MCP Server
Installation
git clone git@github.com:fasterv410/logflare-mcp.git
cd logflare-mcp
pnpm install
pnpm buildKonfiguration
Holen Sie sich Ihren Logflare-API-Schlüssel unter https://logflare.app/access-tokens.
cp .env.example .env
# edit .env and paste your keyVariable | Erforderlich | Standard | Hinweise |
| ja | — | Zugriffstoken |
| nein |
| Für selbst gehostetes Logflare |
| nein |
| Verwenden Sie |
| nein | — | Standardquelle, wenn das Tool-Argument weggelassen wird |
Registrierung bei Claude Code
claude mcp add logflare -- node /absolute/path/to/logflare-mcp/dist/index.jsOder manuell zu ~/.claude.json hinzufügen:
{
"mcpServers": {
"logflare": {
"command": "node",
"args": ["/absolute/path/to/logflare-mcp/dist/index.js"],
"env": {
"LOGFLARE_API_KEY": "lf-xxxxxxxx",
"LOGFLARE_DEFAULT_SOURCE_TOKEN": "optional-uuid"
}
}
}
}Registrierung bei Claude Desktop
Bearbeiten Sie ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"logflare": {
"command": "node",
"args": ["/absolute/path/to/logflare-mcp/dist/index.js"],
"env": { "LOGFLARE_API_KEY": "lf-xxxxxxxx" }
}
}
}Entwicklung
pnpm dev # tsx watch mode
pnpm build # emit dist/
pnpm typecheckSmoke-Test über die Shell:
LOGFLARE_API_KEY=xxx printf '%s\n' \
'{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"0"}}}' \
'{"jsonrpc":"2.0","method":"notifications/initialized"}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' \
| node dist/index.jsHinweise
Die Authentifizierung erfolgt standardmäßig über
Authorization: Bearer <key>(gemäß Logflares OpenAPI-Spezifikation). Setzen SieLOGFLARE_AUTH_STYLE=x-api-key, um auf den Legacy-HeaderX-API-KEYzurückzugreifen.execute_queryakzeptiert genau eines der Argumentebq_sql,pg_sqloderch_sql.Bevorzugen Sie
query_endpointmit gespeicherten Endpunkten gegenüberexecute_query; gespeicherte Endpunkte bieten Parametervalidierung und Caching auf Logflare-Seite.
Lizenz
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with InfluxDB v3 (Core/Enterprise/Cloud Dedicated) through MCP clients. Supports database management, data querying and writing, schema inspection, and token administration operations.1,176MIT
- AlicenseNot gradedqualityFmaintenanceEnables interaction with Sumo Logic's REST APIs through MCP, allowing log search, dashboard management, metrics querying, collector and monitor operations.5MIT
- FlicenseNot gradedqualityCmaintenanceEnables querying Humio/LogScale dashboards and executing search queries via MCP, with multi-cluster support and configurable time ranges.1
- AlicenseNot gradedqualityCmaintenanceExposes configured log files as MCP tools, enabling agents to list, query, and follow logs from local and SSH sources.MIT
Related MCP Connectors
MCP server for interacting with the Supabase platform
Query metrics, targets, entities, and team data in your Steep workspace via MCP.
MCP server for managing Prisma Postgres.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/fasterv410/logflare-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server