SuperAPIAI Directory

log10x-mcp

github.com · AI developer platforms

log10x-mcp is an open-source MCP server from Log10x that lets MCP-compatible AI assistants such as Claude query log costs, log patterns, and events in natural language and receive structured answers based on per-pattern metrics. It groups logs by message type and ranks them by volume and cost, enabling compression, tiering, or offload plans for each pattern. The server runs locally, and only pre-aggregated per-pattern volume and cost metrics leave the machine; raw log content is never sent to log10x. The project is MIT-licensed, published on npm, and requires Node 20 or later. Without an API key, the server connects in read-only mode to a public demo dataset for direct tool exploration; account-level tools require a Log10x product license (API key).

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · API

About this tool

Purpose log10x-mcp is an MCP (Model Context Protocol) server that exposes the Log10x 10x platform as a set of tools to Claude and other MCP-compatible AI assistants. Users can ask questions in natural language, such as "why did log costs rise this week", "what is driving up the volume of payments-svc", or "pull payment_retry events for acme-corp from January 15 to April 15", and receive structured answers based on per-pattern metrics.

Key capabilities 10x groups logs by message type: repeated lines that differ only in timestamps or request IDs while otherwise being nearly identical are merged into a single message type and ranked by volume and cost. Names are derived from symbols compiled from the code, so under the same engine, libraries, and configuration, the same line gets the same name across different nodes. The server provides per-pattern ranking, trend viewing, event retrieval, batch local triage, offload and recall configuration, and backfilling per-pattern volume and cost series into tools such as Datadog or Prometheus. Some tools support include_chart to generate chart images, but this requires additionally installing the optional chart.js and chartjs-node-canvas dependencies; otherwise charts are rendered as text.

Usage In Claude Desktop, add the server entry to ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\Claude\claude_desktop_config.json on Windows. In other MCP clients such as Cursor and Windsurf, add an mcpServers entry with the same structure: "command": "npx", "args": ["-y", "log10x-mcp"], and set LOG10X_API_KEY in env; omit the key to run in read-only demo mode. Verify with /mcp. For full setup instructions, see https://doc.log10x.com/apps/mcp/。

Account-level tools require a Log10x API key, which can be obtained in two ways: sign in with GitHub, run log10x_signin_start, complete the flow and then run log10x_signin_complete; the key will be saved, and log10x_login_status shows the currently connected identity; or set the LOG10X_API_KEY environment variable directly. Without a key, the server connects in read-only mode to the public 10x demo dataset; analysis, discovery and install-advisor tools can be used directly, while mutating tools are disabled in this mode. Setting LOG10X_DEMO_FALLBACK=off enters pure POC mode, which performs savings estimates on your own files without an account; the mode is fixed at startup and the server must be restarted to re-detect it.

Connecting your own data (optional) 10x keeps logs queryable without paying indexing fees for all content. The Receiver sends noise data beyond budget to the user's own S3, and the Retriever fetches those exact events on demand when needed; log10x_offload_add and log10x_retriever_register configure the offload and retrieval paths, and log10x_backfill_metric pushes pattern-based volume and cost series to existing Datadog or Prometheus. The Elasticsearch, Azure Monitor and GCP Cloud Logging connectors, as well as the Azure App Configuration and GCP Secret Manager config stores, use optional SDKs; the default install stays lean, and they can be added on demand at startup, for example npx -y -p log10x-mcp -p @azure/monitor-query -p @azure/identity log10x-mcp; when a package is missing, the connector prompts for the required package name.

Use cases Suitable for teams that need to understand logs from a cost and volume perspective, locate log cost anomalies, plan compression/tiering/offload by pattern, and complete log investigations in natural language within an AI assistant.

Limitations and security The server runs as a local subprocess of the AI client; only pre-aggregated pattern-based volume and cost queries leave the machine, and raw log content is never sent out; log10x_resolve_batch's local triage is completedentirely on the local machine via stdin/stdout; connecting to your own log platform uses read-only credentials. Setting LOG10X_MCP_READ_ONLY=true rejects all mutating tools. The project also provides a verifiable offline fenced POC: the MCP server and log engine run in the same container, started with --network none, using log samples exported by the user; there is no npx variant for this approach because npx resolves and executes packages at runtime, and its postinstall scripts are unrestricted code. The license is generated by the user via a single visible curl before any log data comes into scope; in this configuration the server does not issue a license on its own. The project is MIT-licensed with public source code, and the npm package name is log10x-mcp (Node 20+). MCP clients run the server as a long-lived subprocess, so after upgrading the package the client must be restarted for the change to take effect.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools