MCP for splunk
MCP server by deslicer Verified · gh:deslicer
Connects AI assistants such as Cursor, Claude Desktop and VS Code to Splunk Enterprise and Splunk Cloud Platform through the Model Context Protocol. Built for Splunk users who want to run SPL, manage saved searches and alerts, and read Splunk docs from an assistant.
Install MCP for splunk
Built from the published package, never by AI.
claude mcp add mcp-for-splunk -- uvx mcp-server-for-splunkRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-for-splunk": {
"args": [
"mcp-server-for-splunk"
],
"command": "uvx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-for-splunk": {
"args": [
"mcp-server-for-splunk"
],
"command": "uvx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-for-splunk": {
"args": [
"mcp-server-for-splunk"
],
"command": "uvx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-for-splunk -- uvx mcp-server-for-splunk{
"mcpServers": {
"mcp-for-splunk": {
"args": [
"mcp-server-for-splunk"
],
"command": "uvx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-for-splunk uvx mcp-server-for-splunkGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-for-splunk block.
About
MCP for Splunk is an open-source MCP server that exposes Splunk's REST API as MCP tools, resources and prompts. Clients such as Cursor, Claude Desktop, VS Code or a custom agent can run SPL, discover indexes and sourcetypes, read configuration, manage saved searches, alerts, dashboards and KV Store, and look up Splunk and CIM documentation.
It runs over stdio or Streamable HTTP. In HTTP mode, each request can carry its own Splunk credentials in headers, so one server can serve several users or Splunk environments. The project is community-maintained and runs outside Splunk, talking to the management port 8089. It suits Splunk users and developers who want an assistant to query and administer their Splunk deployment.
Written from the project's README and checked against it.
Tools it gives your assistant
run_oneshot_searchRuns SPL and waits up to MCP_SEARCH_WAIT_SECONDS for results.run_splunk_searchRuns SPL as a tracked job with progress and stats.get_search_job_resultsReturns one page of results from a completed job.list_saved_searchesLists saved searches with owner, schedule and permissions.create_saved_searchCreates a saved search, optionally scheduled. Writes to Splunk.list_triggered_alertsLists fired alerts and their details.list_indexesLists the indexes the user can access.list_sourcetypesLists sourcetypes using the metadata endpoint, paged.get_kvstore_dataQueries KV Store documents with filters.list_dashboardsLists Simple XML and Dashboard Studio dashboards.
What you need
- Python 3.11 or newer
- uv or pip
- Splunk Enterprise or Splunk Cloud Platform with REST API access on port 8089
- Docker (optional)
Try asking
- Run an SPL search for failed logins in the last hour
- List my saved searches with their schedules
- Show the indexes and sourcetypes I can access
Good to know
- Community-maintained, not Splunk's vendor-supported MCP server app.
- Python 3.10 is no longer supported.
- Tools that write to Splunk are marked and still follow the Splunk role's permissions.
- The built-in workflow_runner was removed in the move to FastMCP 4 and MCP SDK v2.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to MCP for splunk
All alternatives →World Monitor is a real-time global intelligence dashboard covering conflict, markets, energy, trade, shipping and cyber. Its MCP server gives AI assistants access to that data, and it is aimed at analysts, agents and scripts.
Lets AI agents create and change Power BI semantic models through a local MCP server. Built for developers who want natural language modeling in Power BI Desktop, Fabric workspaces and PBIP files.
Seal Open Data serves French public datasets from data.gouv.fr to AI assistants. It covers topics such as territories, companies, housing and population. It is aimed at users who want to query French open data from clients like Claude.
OpenMetadata MCP server lets MCP-compatible assistants search metadata, inspect lineage, and manage data quality tests. It is for data teams and AI agents that need governed context about enterprise data.
Compiles, validates and renders semantic chart specs for AI assistants through the Model Context Protocol. It is for agents that need reliable, good-looking and interactive charts across several chart libraries.
Query PostHog analytics, manage feature flags and experiments, and investigate errors from your AI assistant. It suits product teams and developers who already use PostHog for analytics, replays, and error tracking.
Compare with World Monitor, Power BI Authoring MCP Server (Local) or Seal Open Data
MCP for splunk: common questions
Is this the official Splunk MCP server?
No. The source says this is a separate, community-maintained server. Splunk's vendor-supported option is the Splunk MCP Server app on Splunkbase (app 7931), which runs inside Splunk.
Can the assistant change data in Splunk?
Some tools do, such as create_saved_search and manage_apps, and they are marked in the tool list. The source says your Splunk role's permissions still apply.
Which connection types does it support?
It runs over stdio for desktop clients that spawn the server, or over Streamable HTTP for remote or multi-user setups.
How do I install MCP for splunk?
In Claude Code run claude mcp add mcp-for-splunk -- uvx mcp-server-for-splunk. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is MCP for splunk the official server?
MCP for splunk is published by gh:deslicer from its verified domain in the official MCP Registry.
Is MCP for splunk free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is MCP for splunk safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality C. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to MCP for splunk?
Similar MCP servers: World Monitor, Power BI Authoring MCP Server (Local), Seal Open Data, OpenMetadata.
Does MCP for splunk work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
