Skip to content

Menu

Splunk MCP Server logo

Splunk MCP Server

Published

At a glance

Hosted by the vendor
https://splunkbase.splunk.com/app/7931
Watch out for
splunk_run_query may refuse searches with commands it deems unsafe, and it fails if a search runs over 1 minute or returns more than 1000 events.

The Splunk MCP Server is a Splunk-supported app, published by Splunk LLC on Splunkbase, that lets AI agents work with data in Splunk Enterprise and Splunk Cloud Platform. You install it on a search head or search head cluster, and it exposes core Splunk functions as MCP tools: running SPL searches, listing indexes, reading metadata and pulling knowledge objects.

It is not a package you run on your laptop. The server lives inside your Splunk deployment and speaks streamable HTTP, so any client that supports that transport can connect with an encrypted bearer token created in the app. Splunk's sample client config wraps the endpoint with npx and mcp-remote for clients that only launch local commands.

Version 1.0.0 switched authentication to encrypted tokens only, which broke older clients. Version 1.1.0 added OAuth 2.1 support, and 1.2.1 made saved search runs and rate limiting generally available. Version 1.3.0 added SPL2 searches, role-to-tool mapping and a Create Tool screen. Version 2.0.0 (September 2026) added alert and throttle tools. Splunkbase now lists 2.1.0. If you still use the older cloud-hosted endpoint on *.api.scs.splunk.com, Splunk documents a migration to the app.

How it connects

Your AI app

An assistant or agent that supports MCP

Splunk MCP Server

Runs as

  • npx (Node.js)
  • Remote (HTTP)

Gives the agent

  • Run SPL searches
  • Instance and index details
  • Metadata for query building
  • Knowledge objects
  • Users and KV Store
  • SPL help from Splunk AI Assistant

Splunk

Signs in with

  • OAuth / browser sign-in
  • Token
Your AI app talks to Splunk MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Run SPL searches
splunk_run_query executes a search and returns results, intended for quick, non-destructive queries such as log retrieval and aggregations. Since version 1.3 it also accepts SPL2 searches that start with the @spl2 prefix.
Instance and index details
splunk_get_info reports version and system details, while splunk_get_indexes and splunk_get_index_info list indexes you can access and describe one in depth.
Metadata for query building
splunk_get_metadata returns hosts or sources across one or more indexes in a time window, and splunk_get_sourcetypes lists sourcetypes with event counts. Both help an agent write a scoped search.
Knowledge objects
splunk_get_knowledge_objects retrieves saved searches, alerts, lookups, macros, data models, MLTK models and other supported types.
Users and KV Store
splunk_get_user_info, splunk_get_user_list and splunk_get_kv_store_collections cover the current user, all users and KV Store collection statistics.
SPL help from Splunk AI Assistant
With Splunk AI Assistant for SPL installed, saia_generate_spl, saia_explain_spl, saia_optimize_spl and saia_ask_splunk_question become available.

Setting it up

Your Splunk deployment must allow token authentication. On Splunk Cloud Platform, add the client's source IP to the search-ui allowlist for the Splunk Web endpoint, or to search-api for the older management port endpoint. An admin installs the Splunk MCP Server app from Splunkbase on the search head (a restart may be needed), then adds the mcp_tool_execute capability to roles that should use the tools; mcp_tool_admin covers tool management and token creation. Optionally install Splunk AI Assistant to get the saia_ tools. Next, open the app and generate an encrypted token (creating one for yourself needs edit_tokens_own plus mcp_tool_admin); it is shown only once. Copy the endpoint and sample config from the app. Splunk's sample uses an mcpServers entry named splunk-mcp-server with command npx and args -y, mcp-remote, https://<MCP_SERVER_ENDPOINT>, --header and Authorization: Bearer <YOUR_ENCRYPTED_TOKEN>. Node.js and mcp-remote must be on your path. Splunk also has OAuth guides for Claude Code (claude mcp add with --transport http) and for Cursor, both using an OAuth client created under Settings, Authentication methods. For test setups with self-signed certificates, set ssl_verify in mcp.conf and add NODE_TLS_REJECT_UNAUTHORIZED=0 to the client env, never in production.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Ask an agent to list the indexes and sourcetypes it can see, then write and run a scoped SPL search for recent errors.
  • Have an agent explain or optimize an inherited SPL search using the Splunk AI Assistant tools.
  • Pull saved searches, alerts and macros with splunk_get_knowledge_objects, or check fired alerts and active throttles with the 2.0 alert tools, to document what a Splunk app already does.

Limitations and things to watch

  • splunk_run_query may refuse searches with commands it deems unsafe, and it fails if a search runs over 1 minute or returns more than 1000 events.
  • Encrypted tokens work only for MCP, not direct Splunk API calls, and the Invalidate Keys button revokes every user's token at once because one key pair signs them all.
  • Tools like splunk_get_user_list expose user and role details, so admins should disable tools they do not want agents to reach.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…