MCP Sumo Logic Server
by samwang0723
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
- Docker support for easy deployment
Environment Variables
Copy
Setup
- Clone the repository
- Install dependencies:Copy
- Create a
.env
file with the required environment variables - Build the project:Copy
- Start the server:Copy
Docker Setup
- Build the Docker image:Copy
- Run the container (choose one method):a. Using environment variables directly:b. Using a .env file:CopyNote: Make sure your .env file contains the required environment variables:CopyCopy
Usage
The server exposes a search-sumologic
tool that accepts the following parameters:
query
(required): The Sumo Logic search queryfrom
(optional): Start time in ISO 8601 formatto
(optional): End time in ISO 8601 format
Example query:
Copy
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:
Copy
For testing:
Copy
This server cannot be installed
Integrates with Sumo Logic's API to enable log search with configurable queries and time ranges, supporting error handling and easy deployment via Docker.