Skip to main content
Glama
DarkAngel-agents

MISP MCP Server

MISP MCP 服务器

一个用于 MISP模型上下文协议 (MCP) 服务器——MISP 是北约、CERT 以及全球 6000 多家组织使用的开源威胁情报平台。

将您的 AI 助手连接到您的 MISP 实例,通过自然语言对话进行威胁情报搜索、IOC 查询和事件分析。

工具

工具

描述

search_events

按关键字、标签或日期范围搜索事件

get_event

获取包括属性和对象在内的完整事件详情

search_attributes

按类型、值、类别或标签搜索 IOC

get_statistics

实例统计信息:事件、属性、组织、标签

submit_ioc

向现有事件提交新的 IOC

recent_feeds

列出已配置的订阅源及其状态

Related MCP server: MISP-MCP-SERVER

快速入门

环境变量

变量

必需

默认值

描述

MISP_URL

您的 MISP 实例 URL

MISP_API_KEY

MISP 自动化 API 密钥

MISP_VERIFY_SSL

true

验证 SSL 证书

MCP_TRANSPORT

stdio

传输方式:stdiohttp

MCP_HOST

0.0.0.0

绑定主机 (http 模式)

MCP_PORT

8000

绑定端口 (http 模式)

LOG_LEVEL

INFO

日志级别

Docker

# Clone and run
git clone https://github.com/DarkAngel-agents/misp-mcp.git
cd misp-mcp

# Set your MISP credentials
export MISP_URL=https://your-misp-instance.com
export MISP_API_KEY=your-api-key

# Run with Docker Compose
docker compose up -d

MCP 端点将在 http://localhost:8000/mcp 可用。

本地运行 (不使用 Docker)

pip install -r requirements.txt

export MISP_URL=https://your-misp-instance.com
export MISP_API_KEY=your-api-key

# stdio mode (for Claude Desktop, Claude Code, etc.)
python server.py

# http mode (for remote access)
MCP_TRANSPORT=http python server.py

Claude Desktop

添加到您的 Claude Desktop 配置文件 (~/.config/Claude/claude_desktop_config.json) 中:

{
  "mcpServers": {
    "misp": {
      "command": "python",
      "args": ["/path/to/misp-mcp/server.py"],
      "env": {
        "MISP_URL": "https://your-misp-instance.com",
        "MISP_API_KEY": "your-api-key"
      }
    }
  }
}

Claude Code

claude mcp add misp -- python /path/to/misp-mcp/server.py

VS Code

添加到 .vscode/mcp.json 中:

{
  "servers": {
    "misp": {
      "url": "http://localhost:8000/mcp",
      "type": "http"
    }
  }
}

示例提示词

  • "在 MISP 中搜索过去一个月内与勒索软件相关的任何事件"

  • "在 MISP 中查找此哈希值:abc123def456..."

  • "向我展示 MISP 事件 1234 的详细信息"

  • "我们 MISP 实例的统计数据是什么?"

  • "将此 IP 作为 IOC 提交到事件 5678:192.168.1.100"

  • "列出所有已配置的 MISP 订阅源"

要求

  • Python 3.10+

  • 一个正在运行且具有 API 访问权限的 MISP 实例

  • MISP 自动化 API 密钥 (可在 MISP → Administration → Auth Keys 中找到)

许可证

MIT

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    A Model Context Protocol server that facilitates integration with OpenCTI, allowing users to query and retrieve cyber threat intelligence data via a standardized interface.
    16
    40
    MIT
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server that integrates with the MISP (Malware Information Sharing Platform) to provide threat intelligence capabilities to Large Language Models.
    12
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    A comprehensive implementation of Model Context Protocol servers enabling natural language interactions with security platforms including Splunk SIEM, CrowdStrike EDR, and Microsoft MISP for threat intelligence querying and analysis.
    5 npm
    22
    MIT