Splunk MCP Server
Enables users to interact with Splunk instances to execute SPL queries, manage saved searches, and monitor system health. It provides a clean interface for listing dashboards, indexes, and logs through the Model Context Protocol.
README
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.txt
Configuration
For the Splunk MCP server, copy and configure environment variables:
cp .env.example .env
Edit .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 production
Alternatively, use an API token:
SPLUNK_API_TOKEN=your-api-token
Running
Splunk MCP Server:
python splunk_mcp.py
Features
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
- Parameters:
- list_saved_searches: List all saved searches in Splunk
- run_saved_search: Run a saved search by name
- Parameters:
search_name(required),max_results
- Parameters:
- 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 definitions - Type 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/password
Development
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.