Skip to main content
Glama
luisguareschi-arb

sumologic-mcp

sumologic-mcp

A local MCP server that lets AI assistants run Sumo Logic log searches over HTTP.

Prerequisites

  • Node.js 18+

  • A Sumo Logic Enterprise account with Search Job API access

  • Sumo Logic API access key and ID (create one here)

Related MCP server: LogScale MCP Server

Setup

  1. Install dependencies:

npm install
  1. Copy the example env file and fill in your credentials:

cp .env.example .env
  1. Set your deployment endpoint in .env. Examples:

Deployment

ENDPOINT

US1

https://api.sumologic.com/api/v1

US2

https://api.us2.sumologic.com/api/v1

EU

https://api.eu.sumologic.com/api/v1

  1. Build:

npm run build

Cursor can spawn the MCP process for you over stdio — no need to run npm start manually.

Add this to your Cursor MCP config (~/.cursor/mcp.json):

{
  "mcpServers": {
    "sumologic": {
      "command": "node",
      "args": ["/absolute/path/to/sumologic-mcp/dist/index.js", "--stdio"],
      "env": {
        "ENDPOINT": "https://api.sumologic.com/api/v1",
        "SUMO_API_ID": "your-access-id",
        "SUMO_API_KEY": "your-access-key"
      }
    }
  }
}

Replace /absolute/path/to/sumologic-mcp with the real path to this repo. Credentials can also live in the project's .env file (loaded automatically from the project root).

For development without building, use npx tsx:

{
  "mcpServers": {
    "sumologic": {
      "command": "npx",
      "args": ["tsx", "/absolute/path/to/sumologic-mcp/src/index.ts", "--stdio"]
    }
  }
}

Restart or reload MCP servers in Cursor after changing the config.

Option B: HTTP server (local development)

Start the server manually:

npm start

For development with auto-reload:

npm run dev

HTTP mode requires MCP_API_KEY in your .env. Generate one with:

openssl rand -hex 32

The server listens on http://localhost:3006 by default.

Add this to your Cursor MCP config:

{
  "mcpServers": {
    "sumologic": {
      "url": "http://localhost:3006/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SUMOLOGIC_MCP_API_KEY}"
      }
    }
  }
}

Set SUMOLOGIC_MCP_API_KEY in your shell to match MCP_API_KEY in .env.

Restart the MCP server in Cursor after starting the local server.

Option C: Docker (public cloud hosting)

Run the MCP server on a cloud VM with TLS and API key authentication. Caddy terminates HTTPS and proxies to the app container; port 3006 is not exposed to the host.

Prerequisites

  • A domain name (e.g. mcp.yourcompany.com) with an A record pointing to your VM's public IP

  • Firewall rules allowing inbound traffic on ports 80 and 443 only

  • Docker and Docker Compose installed on the VM

Setup

  1. Copy and configure environment variables on the VM:

cp .env.example .env

Set these values in .env:

Variable

Description

ENDPOINT

Sumo Logic API base URL

SUMO_API_ID

Sumo Logic access ID

SUMO_API_KEY

Sumo Logic access key

MCP_API_KEY

Shared Bearer token for MCP clients (openssl rand -hex 32)

MCP_DOMAIN

Public hostname (e.g. mcp.yourcompany.com)

  1. Start the stack:

docker compose up -d

Caddy obtains a Let's Encrypt certificate automatically for MCP_DOMAIN.

Verify deployment

Health check (no auth required):

curl https://mcp.yourcompany.com/health

MCP endpoint rejects unauthenticated requests:

curl -s -o /dev/null -w "%{http_code}" -X POST https://mcp.yourcompany.com/mcp
# Expected: 401

Authenticated request:

curl -X POST https://mcp.yourcompany.com/mcp \
  -H "Authorization: Bearer $MCP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0.0"}},"id":1}'

Cursor client config (remote)

{
  "mcpServers": {
    "sumologic": {
      "url": "https://mcp.yourcompany.com/mcp",
      "headers": {
        "Authorization": "Bearer ${env:SUMOLOGIC_MCP_API_KEY}"
      }
    }
  }
}

Set SUMOLOGIC_MCP_API_KEY in your local shell to match MCP_API_KEY on the server.

Security notes

  • Never commit .env or expose MCP_API_KEY in client configs — use ${env:...} interpolation

  • Rotate MCP_API_KEY if it is leaked; all clients must update their env var

  • Restrict the VM security group to known IP ranges if your team has fixed egress

  • Sumo credentials stay server-side; clients only need the MCP Bearer token

Available tools

search_sumologic

Run a Sumo Logic search and return results.

Parameter

Type

Default

Description

query

string

required

Sumo Logic search query

from

string

24h ago

ISO 8601 start time

to

string

now

ISO 8601 end time

limit

number

100

Max results (1–10000)

offset

number

0

Pagination offset

resultType

string

messages

messages, records, or both

Example queries:

  • Raw logs: * | where severity = "error" | limit 20

  • Count by service: * | count by _sourceCategory

  • Time-bounded: use from and to params with ISO 8601 timestamps

Use resultType: "messages" for raw log lines, records for aggregate/tabular results, and both when unsure.

Environment variables

Variable

Required

Default

Description

ENDPOINT

yes

Sumo Logic API base URL

SUMO_API_ID

yes

Access ID

SUMO_API_KEY

yes

Access key

MCP_API_KEY

HTTP only

Bearer token for /mcp requests

MCP_DOMAIN

Docker

Public hostname for Caddy TLS

PORT

no

3006

HTTP server port

TIMEZONE

no

UTC

Timezone for search jobs

SEARCH_TIMEOUT_MS

no

300000

Max wait time for search completion (5 min)

Health check

curl http://localhost:3006/health

Notes

  • Search results have PII fields (_raw, response) automatically redacted before being returned to the AI.

  • The Search Job API requires session cookies across requests; this server handles that automatically.

  • If you get a 403 error, your account may not have Enterprise Search Job API access.

F
license - not found
-
quality - not tested
B
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

  • A
    license
    -
    quality
    B
    maintenance
    Enables 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.
    Last updated
    52
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables searching Sumo Logic logs using the search_logs tool, with support for query parameters such as time range and maximum results.
    Last updated
    1
    1
  • A
    license
    -
    quality
    F
    maintenance
    Enables interaction with Sumo Logic's REST APIs through MCP, allowing log search, dashboard management, metrics querying, collector and monitor operations.
    Last updated
    5
    MIT

View all related MCP servers

Related MCP Connectors

  • Search your knowledge bases from any AI assistant using hybrid RAG.

  • Web search, AI agent, and content extraction via You.com APIs

  • SEO research, audits, backlinks, GSC, and content workflow tools for AI agents.

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

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