mcp-sumologic
Provides tools for searching Sumo Logic logs (raw and aggregate), querying metrics, managing monitors, and discovering data sources such as collectors, sources, partitions, fields, and scheduled views.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-sumologic search logs for 'error' in the last 24 hours"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Sumo Logic
A Model Context Protocol (MCP) server that integrates with Sumo Logic's API to perform log searches.
Features
Search Sumo Logic logs using custom queries
Configurable time ranges for searches
Error handling and detailed logging
stdio transport by default (works with MCP clients and
docker run -i)Optional Streamable HTTP transport for remote deployments
Related MCP server: vmware-aria-logs
Environment Variables
SUMO_API_ID=your_api_id # Required
SUMO_API_KEY=your_api_key # Required
ENDPOINT=https://api.us2.sumologic.com/api/v1 # Optional (defaults to gifthealth US2)
PORT=3006 # Optional (HTTP mode only)Quick Start (stdio)
Pull and run the published image from GHCR:
docker run -i --rm \
-e SUMO_API_ID=... \
-e SUMO_API_KEY=... \
ghcr.io/gifthealth/mcp-sumologicMCP Client Configuration
{
"mcpServers": {
"sumologic": {
"command": "docker run -i --rm -e SUMO_API_ID -e SUMO_API_KEY ghcr.io/gifthealth/mcp-sumologic",
"env": {
"SUMO_API_ID": "...",
"SUMO_API_KEY": "..."
}
}
}
}Transports
The server supports two transports, selected by CLI argument:
Mode | Command | Use case |
stdio (default) |
| MCP clients, |
http |
| Remote HTTP/SSE deployment on port 3006 |
Setup
Clone the repository
Install dependencies:
npm installCreate a
.envfile withSUMO_API_IDandSUMO_API_KEYBuild the project:
npm run buildStart the server:
npm start # stdio (default) npm run start:http # HTTP on port 3006
Docker Setup
stdio (default)
docker build -t ghcr.io/gifthealth/mcp-sumologic .
docker run -i --rm \
-e SUMO_API_ID=... \
-e SUMO_API_KEY=... \
ghcr.io/gifthealth/mcp-sumologicHTTP (opt-in)
docker run -p 3006:3006 --env-file .env \
ghcr.io/gifthealth/mcp-sumologic \
node dist/index.js httpOr use Docker Compose (runs HTTP mode on port 3006):
docker-compose up --build -dUsage
All tools are read-only. Search tools accept optional from/to ISO timestamps and limit (default 100).
Search
Tool | Description |
| Raw log messages (non-aggregation queries) |
| Aggregation records ( |
Example — list source categories:
query: _sourceCategory=* | count by _sourceCategory | sort by _count descUse search_aggregate for the above; use search_logs for raw log lines.
Data discovery
Tool | Description |
| List collectors |
| Get collector by ID |
| List sources for a collector |
| List partitions (index/source category routing) |
| List configured fields |
| List scheduled views |
Metrics
Tool | Description |
| Run a metrics query ( |
Monitoring
Tool | Description |
| Search monitors |
| Get monitor by ID |
| List health events |
Content
Tool | Description |
| Get library content by path |
| Get personal content folder |
| Get folder by ID |
Error Handling
The server includes comprehensive error handling and logging:
API errors are caught and logged with details
Search job status is monitored and logged
Network and authentication issues are properly handled
Development
To run in development mode:
npm run dev # stdio (default)
npm run dev:http # HTTP on port 3006For testing:
npm test # run Vitest suite once
npm run test:watch # watch modeMakefile
Common tasks are available via make:
Command | Description |
| Install dependencies |
| Build the project |
| Start the server (stdio) |
| Start in development mode (auto-reload) |
| Remove |
| Run ESLint |
| Run tests |
| Build Docker image |
| Run container with |
| Start services via Docker Compose |
| Stop Docker Compose services |
Available Tools
15 toolsget_collectorC
Get a Sumo Logic collector by ID.
Inputs: collectorId (required).
get_content_by_pathC
Get Sumo Logic library content by path.
Inputs: path (required).
get_folderC
Get a Sumo Logic content folder by ID.
Inputs: folderId (required).
get_monitorC
Get a Sumo Logic monitor by ID.
Inputs: monitorId (required).
get_personal_folderA
Get the personal content folder for the authenticated user.
Inputs: no named parameters.
list_collectorsC
List Sumo Logic collectors.
Inputs: limit, offset.
list_fieldsA
List configured Sumo Logic fields.
Inputs: no named parameters.
list_health_eventsC
List Sumo Logic health events.
Inputs: limit.
list_partitionsC
List Sumo Logic partitions (useful for discovering index and source category routing).
Inputs: limit, token.
list_scheduled_viewsB
List Sumo Logic scheduled views.
Inputs: no named parameters.
list_sourcesC
List sources for a Sumo Logic collector.
Inputs: collectorId (required), limit, offset.
query_metricsA
Run a Sumo Logic metrics query. Returns time-series data for the given metric query.
Inputs: query (required), to, from, rowId, +2 more.
search_aggregateC
Run a Sumo Logic aggregation query and return records (e.g. count by, group by).
Inputs: query (required), to, from, limit.
search_logsA
Run a Sumo Logic log search and return raw messages. Use for non-aggregation queries.
Inputs: query (required), to, from, limit.
search_monitorsC
Search Sumo Logic monitors.
Inputs: limit, query, offset.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
All 15 tools target distinct resources or actions: get_*, list_*, search_*, query_metrics. No overlap; each tool has a clear, unique purpose.
All tool names follow the verb_noun pattern in snake_case consistently. Even compound nouns like 'personal_folder' and 'health_events' are uniform.
15 tools cover a comprehensive range of Sumo Logic operations without being overwhelming. The count is well-scoped for the platform's query and management needs.
The toolset is strong for reading and querying (get, list, search, query) but lacks any create, update, or delete operations. This is a notable gap for a management server, limiting agents to read-only scenarios.
Related MCP Connectors
MCP server for AI access to Swagger by SmartBear.
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
MCP server for AI access to SmartBear tools, including BugSnag, Reflect, Swagger, PactFlow, QTM4J.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables querying logs and metrics from Graylog, Prometheus, and InfluxDB 2.x. It provides tools for executing Lucene log searches, PromQL queries, and Flux queries directly within MCP-compatible clients.MIT
- AlicenseAqualityDmaintenanceMCP server for querying and analyzing logs from VMware Aria Operations for Logs, enabling log search, incident detection, and vROps correlation.64MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Sumo Logic's REST APIs through MCP, allowing log search, dashboard management, metrics querying, collector and monitor operations.5MIT
- AlicenseAqualityCmaintenanceMCP server for Sumo Logic — 37 tools for searching logs, managing monitors, alerts, dashboards, collectors, and metrics. Zero hardcoded org-specific values.481MIT