splunk-mcp-server
Provides tools for interacting with Splunk Enterprise, enabling searches, retrieving indexes, knowledge objects, user information, and error logs.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@splunk-mcp-server search for errors in the last 24 hours"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
splunk-mcp-server
A lightweight, extensible Model Context Protocol (MCP) server for Splunk Enterprise, designed to integrate with Claude Desktop or any MCP-compatible agent. Enables secure, async, chat-based interaction with your Splunk data using FastMCP.
π§ Supported Tools
get_knowledge_objectssearch_splunkget_splunk_indexesget_log_statsget_all_usersget_user_infosearch_errors
Related MCP server: Splunk MCP Server
β‘ Features
β‘ Async HTTP client via
httpxπ§© Simple plugin-style architecture for adding tools
π» Designed for local development or integration with Claude Desktop
π Built with FastMCP and Python 3.13
π Installation Guide
1. Install Claude Desktop
Download and install from Anthropic Claude Desktop (macOS only for now).
2. Install uv (Python package manager by Astral)
sudo curl -LsSf https://astral.sh/uv/install.sh | env UV_INSTALL_DIR="/opt" sh
3. Clone the repository
git clone https://github.com/balajifunny/splunk-mcp-server.git
cd splunk-mcp-server
4. Set your Splunk Configurations
Update the Splunk configuration section in main.py
SPLUNK_HOST=127.0.0.1
SPLUNK_PORT=8089
SPLUNK_USERNAME=<your_splunk_username>
SPLUNK_PASSWORD=<your_splunk_password>
SPLUNK_SCHEME=https5. Update Claude Desktop configuration
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"splunk-mcp-demo": {
"command": "/opt/uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/Users/<your_user_name>/splunk-mcp-server/main.py"
]
}
}
}
Available Tools
7 toolsget_all_usersA
Fetch all Splunk users.
Inputs: no named parameters. Returns: result
get_knowledge_objectsC
Get knowledge objects from Splunk. Supported types include saved_searches, lookups, macros, etc.
Inputs: type (required), count.
get_log_statsC
Get log statistics for a specific index.
Inputs: index (required), time_range. Returns: result
get_splunk_indexesA
Get list of available Splunk indexes.
Inputs: no named parameters. Returns: result
get_user_infoC
Get detailed information about a specific Splunk user.
Inputs: username (required). Returns: result
search_errorsC
Search for error logs across indexes.
Inputs: index, time_range, max_count. Returns: result
search_splunkC
Search Splunk logs with the given query.
Inputs: query (required), earliest_time, latest_time, max_count. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 7 tools
Each tool targets a distinct resource or operation: users (all vs specific), indexes, knowledge objects, log statistics, general search, and error search. No overlapping purposes.
Most tools follow 'get_' prefix (5 tools), but two use 'search_' prefix. There is a clear verb_noun pattern, though the verb varies between get and search.
7 tools is well-scoped for a Splunk MCP server, covering essential read and search operations without being excessive or minimal.
The toolset covers core retrieval and search operations, but lacks create/update/delete for knowledge objects and users, which are common Splunk operations.
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
Hosted Slack MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Talk to your public-facing AI from any MCP client β Claude, ChatGPT, Cursor, Cline, Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis read-only MCP Server allows you to connect to Splunk data from Claude Desktop through CData JDBC Drivers. For full CRUD support, check out the first managed MCP platform: CData Connect AI (https://www.cdata.com/ai/).1MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Splunk Enterprise and Splunk Cloud instances through standardized MCP interface. Supports executing SPL queries, managing indexes and saved searches, listing applications, and retrieving server information with flexible authentication options.-
- AlicenseNot gradedqualityDmaintenanceA dead simple MCP server for exposing your app functions to AI agents like Claude Desktop.13 npm6MIT
- FlicenseBqualityDmaintenanceMCP server for Slack workspace integration, exposing 40+ Slack operations as tools for Claude Desktop and providing a clean async Python API.641-