mcp-server-logs-sieve
An MCP server that connects Claude (or any MCP compatible client) to your existing log infrastructure. Query, summarize, and trace logs in plain English across GCP Cloud Logging, AWS CloudWatch, Azure Log Analytics, Grafana Loki, and Elasticsearch without writing filter expressions or leaving your editor.
README
mcp-server-logs-sieve
mcp-server-logs-sieve is an MCP server that lets AI assistants query logs directly from your observability backend.
Ask debugging questions in plain language, and let Logs Sieve pull the exact logs and context for you.
Why this exists
During incidents, a lot of time goes into repetitive steps:
- finding the right log source
- narrowing the time window
- spotting recurring failure patterns
- following one trace across services
Logs Sieve packages those workflows into four tools: query_logs, summarize_logs, trace_request, and list_log_sources.
Supported providers
- Google Cloud Logging (
gcp) - AWS CloudWatch Logs (
aws) - Azure Monitor Logs (
azure) - Grafana Loki (
loki) - Elasticsearch (
elasticsearch)
Prerequisites
⚠️ Node.js 20 or above is required.
This package uses ES modules and dependencies that need Node.js 20+. If you see
ERR_MODULE_NOT_FOUNDerrors, check your Node version withnode -vand upgrade if needed.This applies whether you run via
npx, install globally, or use from source.
Quick MCP config
Example .mcp.json:
{
"mcpServers": {
"logs-sieve": {
"command": "npx",
"args": ["-y", "mcp-server-logs-sieve@latest", "--provider", "gcp"]
}
}
}
If you are running from this repo source directly, you can still use node ./bin/mcp-server-logs-sieve.js --provider gcp.
First-time setup: On first use, npx needs to download and install the package (~40s). Claude Code may time out waiting for this. Run the following once in your terminal to prime the cache before adding it to your MCP config:
npx mcp-server-logs-sieve@latest --provider gcp
# (Ctrl+C once it starts — you just need the install to complete)
After that, Claude Code will start the server instantly from the npx cache.
After updating config, restart your MCP client and confirm with /mcp.
Provider auth and env vars
See provider-specific setup and auth docs:
For Elasticsearch API compatibility headers:
export ELASTICSEARCH_COMPAT_VERSION=8
CLI usage
The package also includes a CLI for direct terminal usage:
mcp-server-logs-sieve query --provider gcp --scope my-project --last 1h --filter "payment failed"
mcp-server-logs-sieve summarize --provider gcp --scope my-project --last 24h
mcp-server-logs-sieve trace --provider gcp --scope my-project --trace <trace-id>
mcp-server-logs-sieve sources --provider gcp --scope my-project
Documentation
- Docs home
- Getting started
- MCP client setup (Claude Code, Claude Desktop, Cursor, Windsurf)
- Tool reference
- Troubleshooting
- Compatibility matrix
Contributing
Contributions are welcome.
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.
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.
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.
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.