Logz.io MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Server for Logz.io
Open source Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with Logz.io's log management platform. Includes tools for simple log search, Lucene query search, and fetching basic statistics from Logz.io.
π Quick Start
Add this to your Claude/Cursor/etc configuration file:
{
"mcpServers": {
# other servers ...
"logzio": {
"command": "npx",
"args": [
"-y",
"mcp-server-logzio",
"apiKey", "YOUR_LOGZIO_API_KEY"
]
}
}
}US is the default region. For other regions:
{
"mcpServers": {
# other servers ...
"logzio": {
"command": "npx",
"args": [
"-y",
"mcp-server-logzio",
"apiKey", "YOUR_LOGZIO_API_KEY",
"region", "eu" # add this for example
]
}
}
}Related MCP server: Graylog MCP Server
π οΈ Advanced Configuration
Command Line Arguments
Argument | Description | Default | Required |
| Your Logz.io API key | - | Yes |
| Logz.io region (us, us-west, eu, ca, au, uk) | us | No |
| Custom Logz.io API URL (overrides region) | - | No |
| Request timeout | 30000 | No |
| Retry attempts | 3 | No |
| Max results per query | 1000 | No |
Supported Regions
The server automatically maps region codes to the correct Logz.io API endpoints:
Region Code | Description | API Endpoint |
| US East (default) |
|
| US West |
|
| Europe |
|
| Canada |
|
| Australia |
|
| United Kingdom |
|
Finding Your Region: Log into your Logz.io account and check the URL in your browser:
https://app.logz.ioβ use regionushttps://app-eu.logz.ioβ use regioneuhttps://app-ca.logz.ioβ use regioncaetc.
π§ Available Tools
These are the tools your agent will see.
search_logs
Search through logs with simple queries and filters.
Parameters:
query(required): Search query stringtimeRange: Time range (1h, 6h, 12h, 24h, 3d, 7d, 30d)from/to: Custom time range (ISO 8601)logType: Filter by log typeseverity: Filter by severity levellimit: Maximum results (1-1000)sort: Sort order (asc/desc)
query_logs
For more advanced search using Lucene queries
Parameters:
luceneQuery(required): Lucene query stringfrom/to: Time range (ISO 8601)size: Maximum results (1-1000)sort: Sort order (asc/desc)
get_log_stats
Retrieve aggregated log statistics and metrics.
Parameters:
timeRange: Time range (1h, 6h, 12h, 24h, 3d, 7d, 30d)from/to: Custom time range (ISO 8601)groupBy: Fields to group by
ποΈ Development, if you want to mess with the code
Prerequisites
Node.js 24.14.0+
TypeScript 5.8+
Valid Logz.io account and API key
Setup
# Clone the repository
git clone https://github.com/jklnr/logzio-mcp-server.git
cd mcp-server-logzio
# Install dependencies
npm install
# Build the project
npm run build
# Run tests
npm test
# Run in development mode
npm run devScripts
npm run build- Compile TypeScriptnpm run dev- Run in development modenpm test- Run test suitenpm run format- Format code with Prettiernpm run type-check- Type check without emission
π Project Structure
mcp-server-logzio/
βββ src/
β βββ api/ # Logz.io API client and types
β βββ tools/ # MCP tool implementations
β βββ utils/ # Utilities (logging, errors)
β βββ config.ts # Configuration management
β βββ server.ts # MCP server implementation
β βββ index.ts # Entry point
βββ tests/ # Test suites
βββ examples/ # Usage examples
βββ docs/ # Documentation
βββ dist/ # Compiled outputTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Search logs, metrics, traces, alerts and incidents in Epok observability from your AI agent.
1Ingest and search LogsLoom logs from coding agents.
Query your Logspot analytics, companies, and revenue from any AI assistant, and run your actions.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to query and analyze logs from Graylog instances using universal search with relative or absolute time windows, supporting both full result retrieval and lightweight count-only queries.70 npm1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search and analyze logs in Graylog using three powerful tools: generic log search with Lucene queries, smart UUID/trace ID lookup across multiple fields, and stream-specific message retrieval with automatic field normalization.39 npmMIT
- FlicenseAqualityDmaintenanceEnables AI assistants to search Elasticsearch logs, retrieve log details, analyze service health, scan local codebases for APIs, and create Kibana dashboards.5-
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible AI clients to search and retrieve Elasticsearch application logs through a provided search tool.Apache 2.0