Splunk MCP Server
Provides tools for querying logs and data using SPL, managing saved searches, listing dashboards and indexes, and monitoring Splunk instance health.
Click on "Install 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 Serversearch for failed login attempts 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.
MCP Server Suite
A Model Context Protocol (MCP) server implementation built with FastMCP for simplified tool development.
Overview
This suite includes:
splunk_mcp.py: Splunk integration for querying logs and data (built with FastMCP)
FastMCP provides a cleaner, decorator-based API for building MCP servers compared to the lower-level MCP SDK.
Getting Started
Prerequisites
Python 3.8+
pip
Installation
pip install -r requirements.txtConfiguration
For the Splunk MCP server, copy and configure environment variables:
cp .env.example .envEdit .env with your Splunk instance details:
SPLUNK_HOST=your-splunk-host.com
SPLUNK_PORT=8089
SPLUNK_USERNAME=your-username
SPLUNK_PASSWORD=your-password
SPLUNK_VERIFY_SSL=false # Set to true in productionAlternatively, use an API token:
SPLUNK_API_TOKEN=your-api-tokenRunning
Splunk MCP Server:
python splunk_mcp.pyFeatures
Splunk MCP Server (splunk_mcp.py)
Built with FastMCP for clean, pythonic tool definitions.
Available tools:
search_splunk: Execute SPL queries with time range support
Parameters:
query(required),earliest_time,latest_time,max_results
list_saved_searches: List all saved searches in Splunk
run_saved_search: Run a saved search by name
Parameters:
search_name(required),max_results
list_dashboards: List all dashboards
list_indexes: List all indexes
splunk_health: Check Splunk instance health and version
FastMCP Benefits
The migration to FastMCP provides:
Cleaner Syntax: Use
@mcp.tool()decorators instead of manual Tool definitionsType Hints: Better IDE support and automatic parameter documentation
Less Boilerplate: No need for separate handler functions or tool routing logic
Simpler Returns: Return strings directly instead of TextContent objects
Automatic Validation: Parameter types and descriptions are inferred from function signatures
SPLUNK_HOST=localhost # Splunk hostname or IP
SPLUNK_PORT=8089 # Splunk management port
SPLUNK_USERNAME=admin # Username
SPLUNK_PASSWORD=changeme # Password
SPLUNK_VERIFY_SSL=false # SSL verification (use true in production)
SPLUNK_API_TOKEN=your-token # Alternative to username/passwordDevelopment
The servers use:
mcp - Anthropic's Model Context Protocol SDK
splunk-sdk - Official Splunk Python SDK
aiohttp - Async HTTP client
python-dotenv - Environment variable management
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
List datasets, schemas, run APL queries, and use prompts for exploration, anomalies, and monitoring.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
The Google GKE MCP server is a managed Model Context Protocol server that provides AI applications with tools to manage Google Kubernetes Engine (GKE) clusters and Kubernetes resources. It exposes a structured, discoverable interface that allows AI agents to interact with GKE and Kubernetes APIs, enabling them to inspect cluster configurations, retrieve Kubernetes resource YAMLs, monitor operations like cluster upgrades, diagnose issues, and optimize costs—all without needing to parse text output or use complex kubectl commands.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/datamann119/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server