MCP Server for Splunk
About
An MCP server for Splunk to search, analyze, and visualize machine-generated data from your Splunk instance.
Details
- Author
- jkosik
- Downloads
- 177
- Categories
- Search, Other, Infrastructure
Jump to
- list_splunk_saved_searches – List saved searches with pagination.
- list_splunk_alerts – Query alerts, optionally filtered by title.
- list_splunk_fired_alerts – Retrieve fired alerts with time range filter.
- list_splunk_indexes – List Splunk indexes.
- list_splunk_macros – List Splunk macros.
- Includes a prompt to find alerts by keyword and a resource from a local CSV file.
Set the SPLUNK_URL and SPLUNK_TOKEN environment variables. Run in STDIO mode (default) or SSE mode using the -transport sse and -port flags. Send JSON-RPC requests to invoke tools. Alternatively, build a Docker image or deploy via Smithery. Cursor users configure the server in ~/.cursor/mcp.json.
MCP Server for Splunk
A Go implementation of the MCP server for Splunk.
Supports STDIO and SSE (Server-Sent Events HTTP API). Uses github.com/mark3labs/mcp-go SDK.
MCP Tools implemented
-list_splunk_saved_searches
- Parameters:
- count (number, optional): Number of results to return (max 100, default 100)
- offset (number, optional): Offset for pagination (default 0)
- list_splunk_alerts
- Parameters:
- count (number, optional): Number of results to return (max 100, default 10)
- offset (number, optional): Offset for pagination (default 0)
- title (string, optional): Case-insensitive substring to filter alert titles
- list_splunk_fired_alerts
- Parameters:
- count (number, optional): Number of results to return (max 100, default 10)
- offset (number, optional): Offset for pagination (default 0)
- ss_name (string, optional): Search name pattern to filter alerts (default "*")
- earliest (string, optional): Time range to look back (default "-24h")
- list_splunk_indexes
- Parameters:
- count (number, optional): Number of results to return (max 100, default 10)
- offset (number, optional): Offset for pagination (default 0)
- list_splunk_macros
- Parameters:
- count (number, optional): Number of results to return (max 100, default 10)
- offset (number, optional): Offset for pagination (default 0)
MCP Prompts and Resources
-internal/splunk/prompt.go implements an MCP Prompt to find Splunk alerts for a specific keyword (e.g. GitHub or OKTA) and instructs Cursor to utilise multiple MCP tools to review all Splunk alerts, indexes and macros first to provide the best answer.
- cmd/mcp/server/main.go implements MCP Resource in the form of local CSV file with Splunk related content, providing further context to the chat.
Usage
STDIO mode (default)
```bash export SPLUNK_URL=https://your-splunk-instance export SPLUNK_TOKEN=your-splunk-tokenSign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



