Splunk
Search Splunk logs and metrics from Claude, ChatGPT or Copilot through Splunk's official MCP Server: run SPL and saved searches, list indexes, hosts and sources, read knowledge objects, and draft SPL with Splunk AI Assistant.
7-day free trial · No credit card · EU-hosted
Ask Splunk anything
Try a real prompt against Splunk via AnythingMCP — Claude calls the tools, returns the answer. Press Enter on your own message to install on Cloud.
Install Splunk on CloudClaude is AI and can make mistakes. Please double-check responses.
Setup in 2 minutes
- 1Start a free trial on cloud.anythingmcp.com.
- 2Click Splunk in the connector store. Paste credentials when prompted.
- 3Mint an MCP API key and point your AI client at the generated MCP URL.
Guides for Splunk
Step-by-step setup for the most popular AI clients.
Setting up Splunk
From the connector definition itself: where to find the credentials, what they need to be allowed to do, and which API this adapter talks to.
This connector bridges the Splunk MCP Server, the official app by Splunk (Splunkbase app 7931), on your Splunk Cloud Platform or Splunk Enterprise search head. Splunk's own server provides the tools: SPL searches, saved searches, indexes, hosts and sources, knowledge objects, KV Store, users and, where Splunk AI Assistant is available, the saia_* tools that write, explain and optimise SPL. AnythingMCP puts them behind your MCP endpoint with OAuth for Claude and ChatGPT, per-tool roles, the audit log and response mapping, next to your other systems.
The tools come from your server. At install AnythingMCP asks your Splunk MCP Server which tools it has, so you get exactly the set of the app version you run. After upgrading the app in Splunk, open the connector and click Discover tools to pick up new ones.
Setup (about 10 minutes, needs a Splunk admin):
- Install Splunk MCP Server from Splunkbase on the search head (or search head cluster). Make sure REST API access and token authentication are enabled.
- Give the role that will run the tools the
mcp_tool_executecapability, and restrict that role to the indexes the AI may read. The role is the real boundary: the agent sees whatever this user sees. - In the Splunk MCP Server app, generate an encrypted MCP token for that user and copy it (Splunk shows it once). An ordinary Splunk user or service token does not work: Splunk refuses it with "invalid token audience" (HTTP 403).
- Fill in the variables and install:
SPLUNK_HOST: the search head's host name, withouthttps://and without a port, for exampleyourstack.splunkcloud.com. The connector callshttps://SPLUNK_HOST:8089/services/mcp, the address the app shows. If yours uses another port or path, change the base URL in the connector editor after installing.SPLUNK_MCP_TOKEN: the encrypted token from step 3. It is stored encrypted.
Network: AnythingMCP connects to the management port (8089). On Splunk Cloud Platform that port only answers addresses on your stack's IP allow list for the search API (Admin Config Service), so add the address AnythingMCP calls from (on AnythingMCP Cloud, ask support for the current egress IP). Splunk Enterprise needs a certificate on 8089 that the AnythingMCP server trusts.
Safety: Splunk marks splunk_run_query and splunk_run_saved_search as able to change data, because SPL can write (collect, outputlookup, delete). Give the token's user a role that cannot write to indexes or lookups. The two dashboard tools install switched off; turn them on per tool if the AI should create or change dashboards. Splunk admins can also disable tools for everyone in the app, and Invalidate all MCP access tokens there revokes every token at once.
Working with it: start with splunk_get_indexes or splunk_get_metadata to see what data exists, always give searches a time range (earliest/latest) and a row limit, and let saia_generate_spl draft SPL you are unsure about. A 403 on install means the token is not an MCP token or the role lacks mcp_tool_execute; a timeout usually means the allow list or a firewall blocks port 8089.
Your AI is two clicks away from Splunk.
Install the connector, paste your credentials, ask your AI a question. 7-day free trial, no credit card.