logflare-mcp
logflare-mcp
Servidor MCP para la API de gestión de Logflare. Expone fuentes, endpoints y herramientas de consulta SQL ad-hoc a clientes MCP (Claude Code, Claude Desktop, Cursor, …) a través de stdio.
Construido sobre el @modelcontextprotocol/sdk oficial y se comunica directamente con la API REST pública de Logflare, sin proxies de autenticación de terceros.
Herramientas
Herramienta | Descripción |
| Lista todas las fuentes disponibles para la clave API |
| Obtiene una única fuente por token |
| Tipos de campo inferidos para una fuente |
| Eventos más recientes de una fuente |
| Endpoints de consultas guardadas |
| Ejecuta un endpoint guardado por UUID o nombre, con parámetros |
| Ejecuta SQL ad-hoc de BigQuery / Postgres / ClickHouse |
Related MCP server: Sumo Logic MCP Server
Instalación
git clone git@github.com:fasterv410/logflare-mcp.git
cd logflare-mcp
pnpm install
pnpm buildConfiguración
Obtenga su clave API de Logflare en https://logflare.app/access-tokens.
cp .env.example .env
# edit .env and paste your keyVariable | Requerido | Predeterminado | Notas |
| sí | — | Token de acceso |
| no |
| Para Logflare autohospedado |
| no |
| Use |
| no | — | Fuente predeterminada cuando se omite el argumento de la herramienta |
Registrar con Claude Code
claude mcp add logflare -- node /absolute/path/to/logflare-mcp/dist/index.jsO añádalo manualmente a ~/.claude.json:
{
"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"
}
}
}
}Registrar con Claude Desktop
Edite ~/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" }
}
}
}Desarrollo
pnpm dev # tsx watch mode
pnpm build # emit dist/
pnpm typecheckPrueba de humo desde el 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.jsNotas
La autenticación utiliza por defecto
Authorization: Bearer <key>(según la especificación OpenAPI de Logflare). EstablezcaLOGFLARE_AUTH_STYLE=x-api-keypara volver al encabezado heredadoX-API-KEY.execute_queryacepta exactamente uno debq_sql,pg_sql,ch_sql.Prefiera
query_endpointcon endpoints guardados en lugar deexecute_query; los endpoints guardados le ofrecen validación de parámetros y almacenamiento en caché del lado de Logflare.
Licencia
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