SS

splunk/splunk-mcp-server2

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

39 stars 14 forks 质量 46 趋势 0

splunk/splunk-mcp-server2 是从 https://github.com/splunk/splunk-mcp-server2. 导入的 MCP 服务器候选

概览

splunk/splunk-mcp-server2 是从 https://github.com/splunk/splunk-mcp-server2. 导入的 MCP 服务器候选

概述(AI 翻译)

一款模型上下文协议(MCP)服务器,使AI助手能够安全搜索、分析和验证带有内置安全防护的Splunk查询。

概述

Splunk MCP 服务器为 AI 助手(如 Claude、GitHub Copilot 等)提供了与 Splunk Enterprise 或 Splunk Cloud 交互的标准化界面。它实现了模型上下文协议(Model Context Protocol),实现了 AI 工具与 Splunk 数据之间的无缝集成。

主要特色

  • 智能搜索集成:执行多种输出格式(JSON、Markdown、CSV、摘要)的SPL查询
  • 内置安全护栏:自动验证以防止破坏性或资源密集查询
  • 数据保护:敏感数据(信用卡、社会安全号码)的自动净化
  • 双重传输支持:同时支持SSE(服务器发送事件)和stdio传输
  • 丰富的Splunk特性:访问索引、保存的搜索并执行复杂查询
  • Docker Ready:两种实现的容器化部署选项

什么是MCP?

模型上下文协议(MCP)是一个开放标准,能够实现人工智能助手与外部数据源之间的无缝集成。它提供:

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Splunk MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to securely search, analyze, and validate Splunk queries with built-in safety guardrails.

Overview

The Splunk MCP Server provides a standardized interface for AI assistants (like Claude, GitHub Copilot, etc.) to interact with Splunk Enterprise or Splunk Cloud. It implements the Model Context Protocol, allowing seamless integration between AI tools and your Splunk data.

Key Features

  • Smart Search Integration: Execute SPL queries with multiple output formats (JSON, Markdown, CSV, Summary)
  • Built-in Safety Guardrails: Automatic validation to prevent destructive or resource-intensive queries
  • Data Protection: Automatic sanitization of sensitive data (credit cards, SSNs)
  • Dual Transport Support: Both SSE (Server-Sent Events) and stdio transports
  • Rich Splunk Features: Access indexes, saved searches, and execute complex queries
  • Docker Ready: Containerized deployment options for both implementations

What is MCP?

The Model Context Protocol (MCP) is an open standard that enables seamless integration between AI assistants and external data sources. It provides:

  • Standardized Communication: A common protocol for AI assistants to interact with external tools
  • Security: Built-in authentication and authorization mechanisms
  • Flexibility: Support for various transport mechanisms (stdio, SSE, WebSocket)
  • Tool Discovery: Assistants can discover available tools and their capabilities

Available Implementations

This project provides two feature-complete implementations:

Python Implementation

  • Built with FastMCP framework for simplified development
  • Async/await architecture for efficient performance
  • Includes comprehensive test suite and interactive tools
  • Docker support with management scripts

View Python Documentation

TypeScript Implementation

  • Full type safety with TypeScript
  • Built on the official MCP SDK
  • Compatible with Node.js 18+
  • Production-ready with compiled JavaScript output

View TypeScript Documentation

Quick Start

Choose your preferred implementation:

Python Quick Start

cd python
cp .env.example .env
# Edit .env with your Splunk credentials
pip install -e .
python server.py

TypeScript Quick Start

cd typescript
cp .env.example .env
# Edit .env with your Splunk credentials
npm install
npm start

Core Capabilities

Available Tools

  1. validate_spl - Validate SPL queries for risks before execution
  2. search_oneshot - Execute blocking searches with immediate results
  3. search_export - Stream large result sets efficiently
  4. get_indexes - List available Splunk indexes with metadata
  5. get_saved_searches - Access saved search configurations
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →