SuricataMCP是一个模型上下文协议服务器,允许MCP客户端自主地使用 suricata进行网络流量分析.
概览
SuricataMCP是一个模型上下文协议服务器,允许MCP客户端自主地使用 suricata进行网络流量分析. 它通过 get suricata version, get suricata help,以及取取取从 pcap files等工具,实现与Suricata的程序交互. 为了方便,我们制作了一个完整的中子文章, 引导你一步一步地安装和使用 SuricataMCP。 带有 SuricataMCP 的超级充电光标: 您指尖的网络安全 - 容易得到苏里卡塔的版本和帮助信息。 - 解析.pcap文件,并使用简单的工具接口检索警报。 - 🧠 与MCP协议相建,用于与Cursor等AI编码工具进行无缝集成. 要使用这个项目,你需要下载并安装Suricata: 去苏里卡塔官方网站:[[T0] 遵循您的操作系统( Linux, macOS, 或 Windows) 的安装指令 在Linux上,也可以通过软件包管理器安装,例如.
概述(AI 翻译)
SuricataMCP是一个模型上下文协议服务器,允许MCP客户端自主地使用 suricata进行网络流量分析. 它通过 get suricata version, get suricata help,以及取取取从 pcap files等工具,实现与Suricata的程序交互.
□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□·□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□
为了方便,我们制作了一个完整的中子文章, 引导你一步一步地安装和使用 SuricataMCP。 带有 SuricataMCP 的超级充电光标: 您指尖的网络安全
– – . . .
□ * * * * 特点
- 容易得到苏里卡塔的版本和帮助信息。
- 解析.pcap文件,并使用简单的工具接口检索警报。
- 与MCP协议相搭建,与Cursor等AI编码工具进行无缝集成.
– – . . .
□ 下载 Suricata
要使用这个项目,你需要下载并安装Suricata:
去苏里卡塔官方网站:[[T0]
遵循您的操作系统( Linux, macOS, 或 Windows) 的安装指令
在Linux上,您也可以通过软件包管理器安装,例如:
击打 sudo apt 安装 siicaata
安装后, 确定 Suricata 二进制和配置文件的位置, 这样您就可以在配置中设置正确的路径 .
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
SuricataMCP 🚀
SuricataMCP is a Model Context Protocol Server that allows MCP clients to autonomously use suricata for network traffic analysis. It enables programmatic interaction with Suricata through tools like get_suricata_version, get_suricata_help, and get_alerts_from_pcap_file.
📰 Full Guide on Medium
For your convenience, we created a full Medium article that walks you through how to install and use SuricataMCP with Cursor step by step. Supercharging Cursor with SuricataMCP: Network Security at Your Fingertips
📦 Features
- 🔡 Easily get Suricata version and help info.
- 📁 Parse .pcap files and retrieve alerts using a simple tool interface.
- 🧠 Built with the MCP protocol for seamless integration with AI coding tools like Cursor.
⬇️ Downloading Suricata
To use this project, you’ll need to download and install Suricata:
Go to the official Suricata site: https://suricata.io/download/
Follow installation instructions for your OS (Linux, macOS, or Windows)
On Linux, you can also install via package manager, e.g.:
bash sudo apt install suricata
After installation, locate the Suricata binary and configuration files so you can set the correct paths in config.py.
⚙️ Installation Guide
Installing via Smithery
To install Suricata Network Traffic Analysis Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @Medinios/SuricataMCP --client claude
Follow these steps to set up SuricataMCP on your system:
1. Clone the Repository
Open your terminal and run:
git clone https://github.com/medinios/SuricataMCP.git
cd SuricataMCP
2. Install dependencies (e.g., if using a virtual environment)
pip install -r requirements.txt
3. Edit the config.py file to specify your Suricata installation path:
SURICATA_DIR = "/path/to/suricata"
SURICATA_EXE_FILE = "suricata" # or "suricata.exe" on Windows
4. Add SuricataMCP to your AI platform with:
{
"mcpServers": {
"SuricataMcp": {
"command": "cmd",
"args": ["/c", "mcp", "run", "[YourPath]\\SuricataMcp\\suricata-mcp.py"]
}
}
}
🚀 Usage
Run the MCP server locally from your AI platform (like Cursor)
When running, the server exposes the following MCP tools:
- get_suricata_version(): Returns Suricata’s version string.
- get_suricata_help(): Returns Suricata CLI help output.
安装
npx -y @smithery/cli install @Medinios/SuricataMCP --client claude

