Sumologic
БесплатноНе проверенEnables AI assistants to run Sumo Logic log searches via HTTP using the Search Job API.
Описание
Enables AI assistants to run Sumo Logic log searches via HTTP using the Search Job API.
README
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:
npm run build
Option A: Cursor launches the server automatically (recommended)
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 (for remote hosting)
Start the server manually:
npm start
For development with auto-reload:
npm run dev
The server listens on http://localhost:3006 by default.
Add this to your Cursor MCP config:
{
"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.
Установка Sumologic
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/luisguareschi-arb/sumologic-mcpFAQ
Sumologic MCP бесплатный?
Да, Sumologic MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Sumologic?
Нет, Sumologic работает без API-ключей и переменных окружения.
Sumologic — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Sumologic в Claude Desktop, Claude Code или Cursor?
Открой Sumologic на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Sumologic with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
