sumologic-mcp
Enables AI assistants to run Sumo Logic log searches via HTTP using the Search Job API.
README
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)
Setup
- Install dependencies:
npm install
- Copy the example env file and fill in your credentials:
cp .env.example .env
- 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 |
- Build and start:
npm run build
npm start
For development with auto-reload:
npm run dev
The server listens on http://localhost:3006 by default.
Cursor MCP configuration
Add this to your Cursor MCP config (~/.cursor/mcp.json):
{
"mcpServers": {
"sumologic": {
"url": "http://localhost:3006/mcp"
}
}
}
Restart the MCP server in Cursor after starting the local server.
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
fromandtoparams 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 |
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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.