sumologic-mcp
Allows AI assistants to run Sumo Logic log searches over HTTP, supporting raw log queries, aggregate results, and pagination.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@sumologic-mcpsearch for error logs from the past hour"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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: sumo-mcp
Setup
Install dependencies:
npm installCopy the example env file and fill in your credentials:
cp .env.example .envSet your deployment endpoint in
.env. Examples:
Deployment | ENDPOINT |
US1 |
|
US2 |
|
EU |
|
Build:
npm run buildOption 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 (local development)
Start the server manually:
npm startFor development with auto-reload:
npm run devHTTP mode requires MCP_API_KEY in your .env. Generate one with:
openssl rand -hex 32The 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 IPFirewall rules allowing inbound traffic on ports 80 and 443 only
Docker and Docker Compose installed on the VM
Setup
Copy and configure environment variables on the VM:
cp .env.example .envSet these values in .env:
Variable | Description |
| Sumo Logic API base URL |
| Sumo Logic access ID |
| Sumo Logic access key |
| Shared Bearer token for MCP clients ( |
| Public hostname (e.g. |
Start the stack:
docker compose up -dCaddy obtains a Let's Encrypt certificate automatically for MCP_DOMAIN.
Verify deployment
Health check (no auth required):
curl https://mcp.yourcompany.com/healthMCP endpoint rejects unauthenticated requests:
curl -s -o /dev/null -w "%{http_code}" -X POST https://mcp.yourcompany.com/mcp
# Expected: 401Authenticated 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
.envor exposeMCP_API_KEYin client configs — use${env:...}interpolationRotate
MCP_API_KEYif it is leaked; all clients must update their env varRestrict 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 |
| string | required | Sumo Logic search query |
| string | 24h ago | ISO 8601 start time |
| string | now | ISO 8601 end time |
| number | 100 | Max results (1–10000) |
| number | 0 | Pagination offset |
| string |
|
|
Example queries:
Raw logs:
* | where severity = "error" | limit 20Count by service:
* | count by _sourceCategoryTime-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 |
| yes | — | Sumo Logic API base URL |
| yes | — | Access ID |
| yes | — | Access key |
| HTTP only | — | Bearer token for |
| Docker | — | Public hostname for Caddy TLS |
| no |
| HTTP server port |
| no |
| Timezone for search jobs |
| no |
| Max wait time for search completion (5 min) |
Health check
curl http://localhost:3006/healthNotes
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
SOAR security playbooks for AI agents: fetch, full-text search, and count. Metered via Stripe.
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Search log events, investigate anomalies, and manage cases in your Knowledge Grid tenant.
Web search and page-reading for AI agents. One-click OAuth connect, or a Caesar API key.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables 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.10 npm1MIT
- FlicenseAqualityDmaintenanceEnables searching Sumo Logic logs using the search_logs tool, with support for query parameters such as time range and maximum results.11-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Sumo Logic's REST APIs through MCP, allowing log search, dashboard management, metrics querying, collector and monitor operations.5MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with SumoLogic for log management and analytics, with contextual awareness through a configuration file that maps your environment.Apache 2.0