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 "Install 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-sumologicsearch 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: SolarWinds Logs MCP Server
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 --pull=always -i --rm \
-e SUMO_API_ID=... \
-e SUMO_API_KEY=... \
ghcr.io/gifthealth/mcp-sumologicMCP Client Configuration
{
"mcpServers": {
"sumologic": {
"command": "docker run --pull=always -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 --pull=always -i --rm \
-e SUMO_API_ID=... \
-e SUMO_API_KEY=... \
ghcr.io/gifthealth/mcp-sumologicHTTP (opt-in)
docker run --pull=always -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 |
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/giftHEALTH/mcp-sumologic'
If you have feedback or need assistance with the MCP directory API, please join our Discord server