OpenCTI MCP Server
OpenCTI MCP 服务器
概述
OpenCTI MCP 服务器是一个模型上下文协议 (MCP) 服务器,可与 OpenCTI(开放网络威胁情报)平台无缝集成。它支持通过标准化接口查询和检索威胁情报数据。
Related MCP server: MCP Boilerplate
特征
获取并搜索威胁情报数据
获取最新报告并通过 ID 搜索
搜索恶意软件信息
查询妥协指标
搜寻威胁行为者
用户和组管理
列出所有用户和组
通过ID获取用户详细信息
STIX 对象操作
列出攻击模式
通过名称获取活动信息
系统管理
列出连接器
查看状态模板
文件操作
列出所有文件
通过 ID 获取文件详细信息
参考数据访问
列出标记定义
查看可用标签
可自定义的查询限制
完整的 GraphQL 查询支持
先决条件
Node.js 16 或更高版本
访问 OpenCTI 实例
OpenCTI API 令牌
安装
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 OpenCTI 服务器:
npx -y @smithery/cli install opencti-server --client claude手动安装
# Clone the repository
git clone https://github.com/yourusername/opencti-mcp-server.git
# Install dependencies
cd opencti-mcp-server
npm install
# Build the project
npm run build配置
环境变量
将.env.example复制到.env并使用您的 OpenCTI 凭证进行更新:
cp .env.example .env所需的环境变量:
OPENCTI_URL:您的 OpenCTI 实例 URLOPENCTI_TOKEN:您的 OpenCTI API 令牌
MCP 设置
在您的 MCP 设置位置创建一个配置文件:
{
"mcpServers": {
"opencti": {
"command": "node",
"args": ["path/to/opencti-server/build/index.js"],
"env": {
"OPENCTI_URL": "${OPENCTI_URL}", // Will be loaded from .env
"OPENCTI_TOKEN": "${OPENCTI_TOKEN}" // Will be loaded from .env
}
}
}
}安全说明
切勿将
.env文件或 API 令牌提交到版本控制确保您的 OpenCTI 凭证安全
.gitignore文件配置为排除敏感文件
可用工具
可用工具
报告
获取最新报告
检索最新的威胁情报报告。
{
"name": "get_latest_reports",
"arguments": {
"first": 10 // Optional, defaults to 10
}
}通过 ID 获取报告
通过 ID 检索特定报告。
{
"name": "get_report_by_id",
"arguments": {
"id": "report-uuid" // Required
}
}搜索行动
搜索恶意软件
在 OpenCTI 数据库中搜索恶意软件信息。
{
"name": "search_malware",
"arguments": {
"query": "ransomware",
"first": 10 // Optional, defaults to 10
}
}搜索指标
搜索妥协指标。
{
"name": "search_indicators",
"arguments": {
"query": "domain",
"first": 10 // Optional, defaults to 10
}
}搜索威胁因素
搜索威胁行为者信息。
{
"name": "search_threat_actors",
"arguments": {
"query": "APT",
"first": 10 // Optional, defaults to 10
}
}用户管理
通过 ID 获取用户
通过 ID 检索用户信息。
{
"name": "get_user_by_id",
"arguments": {
"id": "user-uuid" // Required
}
}列出用户
列出系统中的所有用户。
{
"name": "list_users",
"arguments": {}
}列表组
列出所有组及其成员。
{
"name": "list_groups",
"arguments": {
"first": 10 // Optional, defaults to 10
}
}STIX 对象
列表攻击模式
列出系统中的所有攻击模式。
{
"name": "list_attack_patterns",
"arguments": {
"first": 10 // Optional, defaults to 10
}
}按名称获取活动
按名称检索活动信息。
{
"name": "get_campaign_by_name",
"arguments": {
"name": "campaign-name" // Required
}
}系统管理
列表连接器
列出所有系统连接器。
{
"name": "list_connectors",
"arguments": {}
}列表状态模板
列出所有状态模板。
{
"name": "list_status_templates",
"arguments": {}
}文件操作
通过id获取文件
通过 ID 检索文件信息。
{
"name": "get_file_by_id",
"arguments": {
"id": "file-uuid" // Required
}
}列表文件
列出系统中的所有文件。
{
"name": "list_files",
"arguments": {}
}参考数据
列表标记定义
列出所有标记定义。
{
"name": "list_marking_definitions",
"arguments": {}
}列表标签
列出所有可用的标签。
{
"name": "list_labels",
"arguments": {}
}贡献
欢迎贡献代码!欢迎随时提交 Pull Request。
执照
MIT 许可证
Available Tools
13 toolsget_campaign_by_nameB
根據名稱獲取行動資訊
Inputs: name (required).
get_file_by_idA
根據ID獲取檔案資訊
Inputs: id (required).
get_user_by_idB
根據ID獲取使用者資訊
Inputs: id (required).
list_attack_patternsC
列出所有攻擊模式
Inputs: first.
list_connectorsA
列出所有連接器
Inputs: no named parameters.
list_filesC
列出所有檔案
Inputs: no named parameters.
list_groupsB
列出所有群組
Inputs: first.
list_labelsB
列出所有標籤
Inputs: no named parameters.
list_marking_definitionsB
列出所有標記定義
Inputs: no named parameters.
list_status_templatesB
列出所有狀態模板
Inputs: no named parameters.
list_usersA
列出所有使用者
Inputs: no named parameters.
search_malwareC
搜尋OpenCTI中的惡意程式
Inputs: query (required), first.
search_threat_actorsB
搜尋OpenCTI中的威脅行為者
Inputs: query (required), first.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 13 tools
每個工具都有明確的目標實體和操作(獲取、列出、搜尋),沒有重疊的職責。例如,get_campaign_by_name 與 search_threat_actors 針對不同實體,list_files 與 get_file_by_id 分別是列表和單一獲取,區分明確。
工具名稱遵循一致的 verb_noun 模式:get_entity_by_field、list_entity、search_entity。例如 get_campaign_by_name、list_users、search_malware,風格統一且可預測。
13 個工具涵蓋了 OpenCTI 平台的主要實體(如行動、檔案、使用者、攻擊模式等),數量合理且範圍適中,沒有過多或過少的問題。
工具集僅提供讀取和搜尋操作(get、list、search),缺乏建立、更新、刪除等寫入功能。雖然可能設計為唯讀介面,但對於完整的威脅情報生命週期來說有明顯缺口。
Related MCP Connectors
Cybersecurity MCP server for URL scanning, threat intelligence, and domain reputation.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
A Model Context Protocol server for Wix AI tools
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that integrates with the MISP (Malware Information Sharing Platform) to provide threat intelligence capabilities to Large Language Models.13-
- AlicenseNot gradedqualityDmaintenanceA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.12MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that integrates TAK Server with AI systems, providing geospatial-aware tools for querying, analyzing, and interacting with tactical data.11MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that connects AI assistants to MISP threat intelligence platforms. It enables threat intelligence search, IOC lookup, and event analysis through natural conversation.-