Skip to main content
Glama
samwang0723

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

Related MCP server: sumo-mcp

Environment Variables

ENDPOINT=https://{host}/api/v1  # Sumo Logic API endpoint
SUMO_API_ID=your_api_id                       # Sumo Logic API ID
SUMO_API_KEY=your_api_key                     # Sumo Logic API Key

Setup

  1. Clone the repository

  2. Install dependencies:

    npm install
  3. Create a .env file with the required environment variables

  4. Build the project:

    npm run build
  5. Start the server:

    npm start

Docker Setup

  1. Build the Docker image:

    docker build -t mcp/sumologic .
  2. Run the container (choose one method):

    a. Using environment variables directly:

    docker run -e ENDPOINT=your_endpoint -e SUMO_API_ID=your_api_id -e SUMO_API_KEY=your_api_key mcp/sumologic

    b. Using a .env file:

    docker run --env-file .env mcp/sumologic

    Note: Make sure your .env file contains the required environment variables:

    ENDPOINT=your_endpoint
    SUMO_API_ID=your_api_id
    SUMO_API_KEY=your_api_key

Usage

The server exposes a search-sumologic tool that accepts the following parameters:

  • query (required): The Sumo Logic search query

  • from (optional): Start time in ISO 8601 format

  • to (optional): End time in ISO 8601 format

Example query:

const query = '_index={index} | json auto | fields log_identifier';
const results = await search(sumoClient, query, {
  from: '2024-02-23T00:00:00Z',
  to: '2024-02-24T00:00:00Z',
});

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

For testing:

npm test

Makefile

Common tasks are available via make:

Command

Description

make install

Install dependencies

make build

Build the project

make start

Start the server

make dev

Start in development mode (auto-reload)

make clean

Remove dist/ and node_modules/

make lint

Run ESLint

make test

Run tests

make docker-build

Build Docker image

make docker-run

Run container with .env file on port 3006

make docker-compose

Start services via Docker Compose

make docker-down

Stop Docker Compose services

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Investigate errors, track deployments, analyze performance, and manage application monitoring

  • Debug production issues using Shipbook logs and Loglytics error insights.

  • Read-only access to Auralogs production logs: search logs, inspect errors, review AI analyses.

View all MCP Connectors

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/samwang0723/mcp-sumologic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server