splunk-mcp-readonly
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SPLUNK_URL | Yes | Management URL for Splunk, e.g. https://splunk.example.com:8089 | |
| SPLUNK_TOKEN | No | Splunk bearer token (preferred authentication method) | |
| SPLUNK_MAX_ROWS | No | Row cap per search; hard cap is 1000 | 200 |
| SPLUNK_PASSWORD | No | Splunk password for basic authentication, used when no token is set | |
| SPLUNK_USERNAME | No | Splunk username for basic authentication, used when no token is set | |
| SPLUNK_TIMEOUT_S | No | HTTP timeout in seconds | 60 |
| SPLUNK_VERIFY_TLS | No | Whether to verify the TLS certificate | true |
| SPLUNK_MCP_AUDIT_LOG | No | Path to a JSON Lines audit log file; one line is appended per tool call when set | |
| SPLUNK_ALLOWED_INDEXES | No | Comma-separated list of indexes that searches may reference | |
| SPLUNK_DEFAULT_EARLIEST | No | Default start of the search time range | -24h |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Read-only access to Splunk. Use explain_spl to validate a search, then search to run it. Always bound searches with an index and a time range. Searches that write, delete or execute anything are refused. Results are capped; prefer stats/table over raw events.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| searchA | Run a read-only SPL search and return the result rows. The search is validated first: commands that write, delete, export or execute (delete,
outputlookup, collect, sendemail, script, map, ...) are refused. A leading Args:
spl: The SPL query, e.g. Returns a dict with |
| explain_splA | Check an SPL query against the safety rules without running it. Use this to validate a search before Args: spl: The SPL query to validate. Returns |
| list_indexesA | List the Splunk indexes with event count, size in MB and retention in days. Use it to discover which indexes exist before writing a search. Takes no parameters.
Returns |
| list_saved_searchesA | List saved searches and alerts (name, SPL, cron schedule, app, owner). Args: filter: Optional substring to match against the saved search name. limit: Maximum number of saved searches (default 50). Returns |
| server_infoA | Return the Splunk version, server name, product type, OS and CPU architecture. |
| healthA | Return the splunkd health status and the status of each health feature. Returns |
| notablesA | List recent Enterprise Security notable events (requires Splunk ES). Uses the ES Args: hours: How many hours back to look (default 24). limit: Maximum notables to return (default 50, server cap applies). Returns |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| triage_notable | Investigation checklist for a notable event raised by a given correlation rule. |
| coverage_question | Ask which saved searches cover a given attack technique. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| indexes_resource | The Splunk indexes as JSON text. |
TDQS
Scored across 7 tools
Each tool has a distinct role: search runs a query, explain_spl only validates one, list_indexes/list_saved_searches target different collections, and notables is ES-specific. The only mild overlap is server_info vs health, both being 'status' tools, though their descriptions separate version/OS metadata from splunkd health features.
There is a readable but mixed convention: list_indexes and list_saved_searches use verb_noun, explain_spl is verb_noun too, but search is a bare verb and health, notables, and server_info are bare nouns. No uniform pattern, though nothing is confusing or cryptic.
Seven tools is well-scoped for a read-only Splunk interface, with each tool earning its place across search, validation, discovery, and status. Nothing feels redundant or missing at the count level.
The surface covers the core read-only lifecycle: discover indexes, inspect saved searches, validate and run SPL, and check server/ES state. Minor gaps exist (e.g. no direct sourcetype/field discovery or saved-search detail/run endpoint), but agents can work around these with SPL queries such as metadata or fieldsummary.