
用于与Splunk Enterprise集成的MCP服务器
概览
将您的 Splunk 实例转变为 AI 原生平台。我们由社区驱动的 MCP 服务器通过单一标准化协议,连接大型语言模型和 Splunk 企业/云,提供 20+ 工具、16 种资源(包括 CIM 数据模型)和生产环境安全。 - : 一个协议将任何 AI 连接到 Splunk 数据 - : 无需再花几个月时间开发定制 - : 客户端权限访问且无凭证暴露 - : 智能故障排除代理,像专家一样工作 - : 可扩展框架,附贡献示例 - 将反应式消防转化为智能、系统化的问题解决,采用专业的人工智能工作流程。 - Python 3.10+ 和 UV 包管理器 - Nodejs(可选用于 mcp 检查器)- Docker(可选但推荐全栈) - 带有 API 访问权限的 Splunk 实例(或使用内置的 Docker Splunk) Python UV run MCP-server --local --detached uv run mcp-server --test uv run mcp-server --test --detailed bash git clone https://github.
概述(AI 翻译)
通过模型上下文协议(MCP)使AI代理能够无缝与Splunk环境交互
将您的 Splunk 实例转变为 AI 原生平台。我们由社区驱动的 MCP 服务器通过单一标准化协议,连接大型语言模型和 Splunk 企业/云,提供 20+ 工具、16 种资源(包括 CIM 数据模型)和生产环境安全。
🌟 为什么这很重要
- ** 🔌 通用AI连接**:一个协议将任意AI连接到Splunk数据
- ** ⚡ 零自定义集成**:无需再花几个月时间开发自定义API开发
- ** 🛡️ 生产准备安全**:客户端范围访问且无凭据暴露
- ** 🤖 AI驱动工作流程**:像专家一样工作的智能故障排除代理
- ** 🤝 社区驱动**:可扩展框架,附有贡献示例
** 🚀 新:AI驱动的故障排除流程** - 将被动消防转化为智能、系统化的问题解决,采用专业AI工作流程。
📋 目录
- 🚀 快速入门
- 先决条件
- 配置
- 一命令设置
- 🎯 你能做的事
- 🤖 人工智能驱动的故障排除
- 🛡️ ITSI MCP 服务器
- 📚 文档中心
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP for Splunk: open-source Splunk MCP server
An open-source Splunk MCP server (Model Context Protocol) that lets AI assistants and agents search, explore and manage Splunk Enterprise and Splunk Cloud Platform.
Python integrations: see the package namespace migration guide.
mcp-for-splunk exposes Splunk’s REST API as MCP tools, resources and prompts. Any MCP-compatible client, such as Cursor, Claude Desktop, VS Code or your own 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.
- 📖 Setup guide and tools reference: deslicer.ai/docs/integrations/splunk-mcp
- ⚖️ How it compares with Splunk’s own MCP Server app: deslicer.ai/compare/splunk-mcp-server
- 📦 PyPI:
mcp-server-for-splunk· ITSI companion:mcp-itsi-server
Looking for Splunk’s vendor-supported MCP server? That’s the Splunk MCP Server app on Splunkbase (app 7931), which runs inside Splunk at
/services/mcp. This project is a separate, community-maintained server that runs outside Splunk and talks to the management port (8089).
Contents
- Quickstart
- Configuration
- Connect a client
- Tools
- Resources and prompts
- ITSI MCP server
- Run with Docker
- Optional: Sentry and OpenTelemetry
- Contributing
- License
Quickstart
Requirements: Python 3.11+ (Python 3.10 is no longer supported), uv or pip, and a Splunk Enterprise or Splunk Cloud Platform instance with REST API (port 8089) access. Docker is optional.
Option A: install from PyPI
pip install mcp-server-for-splunk # or: uv tool install mcp-server-for-splunk
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"splunk": {
"command": "mcp-server",
"args": ["--transport", "stdio"],
"env": {
"MCP_SPLUNK_HOST": "your-splunk.example.com",
"MCP_SPLUNK_PORT": "8089",
"MCP_SPLUNK_TOKEN": "<splunk-bearer-token>",
"MCP_SPLUNK_VERIFY_SSL": "true"
}
}
}
}