SIEMLite

AI agents (MCP)

AI agents can connect to SIEMLite through the Model Context Protocol: the endpoint is POST https://<your SIEMLite>/mcp (streamable HTTP, JSON answers), and any MCP client can use it. Turn it on and make tokens on the Integrations page under AI agents (MCP). Each token has a name and a level, is shown once, and can be removed at any time (the agent using it is refused straight away). The switch on the card keeps all agents out while leaving the tokens in place.

Level Tools
Read-only search_events (the Database search with its filters, newest first, 200 at most; the original line only with include_raw), get_stats (the dashboard's numbers for the last N hours), list_alerts, list_rules, list_sources
Analyst the above, and set_alert_status (acknowledge, close or reopen an alert)
Admin the above, and list_parsers, get_parser, draft_parser, test_parser, save_parser, delete_parser, create_source, update_source, delete_source

Agents can't reach users, passwords, sign-in settings, Microsoft sign-in, certificates, email, backups, retention or alert rules (they can read rules). A tool the token's level doesn't allow isn't listed, and calling it by name is refused. The tools run the same checks as the web pages, so a bad search, a missing name or a parser that doesn't compile comes back as a message the agent can act on. To connect Claude Code:

claude mcp add --transport http siemlite https://siemlite.example.com/mcp --header "Authorization: Bearer slmcp_..."

For the Gemini CLI: gemini mcp add --transport http --header "Authorization: Bearer slmcp_..." siemlite https://siemlite.example.com/mcp (or "httpUrl" and "headers" in its settings.json). For OpenCode, add the server to opencode.json:

{ "mcp": { "siemlite": { "type": "remote", "url": "https://siemlite.example.com/mcp", "enabled": true,
                          "headers": { "Authorization": "Bearer slmcp_..." } } } }

Other clients take the same URL and an Authorization: Bearer slmcp_... header. The dialog shown with a new token has ready-to-copy snippets for all of these, with the token filled in. With a self-signed certificate the agent's computer must trust siemlite.crt.

Things to know:

The same settings are in the API (admin only): GET /api/v1/integrations/mcp, POST /api/v1/integrations/mcp/tokens ({"name", "level"}; the answer holds the token once), DELETE /api/v1/integrations/mcp/tokens/{id}, and POST /api/v1/integrations/{id}/enabled with mcp as the id ({"enabled": false}).