
zxzinn/opencti-mcp 是从 https://github.com/zxzinn/opencti-mcp. 导入的 MCP 服务器候选服务器。
概览
zxzinn/opencti-mcp 是从 https://github.com/zxzinn/opencti-mcp. 导入的 MCP 服务器候选服务器。
概述(AI 翻译)
繁体中文(繁體中文)
概述
OpenCTI MCP 服务器是一款模型上下文协议(MCP)服务器,提供与 OpenCTI(开放网络威胁情报)平台的无缝集成。它通过标准化接口支持查询和检索威胁情报数据。
特色
- 获取和搜索威胁情报数据
- 获取最新报告并按ID搜索
- 搜索恶意软件信息
- 查询的攻破指标
- 搜索威胁行为者
- 用户和组管理
- 列出所有用户和组
- 按ID获取用户信息
- STIX 对象操作
- 列表攻击模式
- 按名称获取活动信息
- 系统管理
- 列表连接器
- 查看状态模板
- 文件操作
- 列出所有文件
- 按ID获取文件详情
- 参考数据访问
- 列表标记定义
- 查看可用标签
- 可自定义查询限制
- 完整的GraphQL查询支持
先修条件
- Node.js 16岁及以上
- 访问OpenCTI实例
- OpenCTI API 令牌
安装
通过Smithery安装
通过Smithery自动安装Claude Desktop的OpenCTI服务器:
手动安装
配置
环境变量
收到。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
OpenCTI MCP Server
Overview
OpenCTI MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with OpenCTI (Open Cyber Threat Intelligence) platform. It enables querying and retrieving threat intelligence data through a standardized interface.
Features
- Fetch and search threat intelligence data
- Get latest reports and search by ID
- Search for malware information
- Query indicators of compromise
- Search for threat actors
- User and group management
- List all users and groups
- Get user details by ID
- STIX object operations
- List attack patterns
- Get campaign information by name
- System management
- List connectors
- View status templates
- File operations
- List all files
- Get file details by ID
- Reference data access
- List marking definitions
- View available labels
- Customizable query limits
- Full GraphQL query support
Prerequisites
- Node.js 16 or higher
- Access to an OpenCTI instance
- OpenCTI API token
Installation
Installing via Smithery
To install OpenCTI Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install opencti-server --client claude
Manual Installation
# 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
Configuration
Environment Variables
Copy .env.example to .env and update with your OpenCTI credentials:
cp .env.example .env
Required environment variables:
OPENCTI_URL: Your OpenCTI instance URLOPENCTI_TOKEN: Your OpenCTI API token
MCP Settings
Create a configuration file in your MCP settings location:
{
"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
}
}
}
}
Security Notes
- Never commit
.envfile or API tokens to version control - Keep your OpenCTI credentials secure
- The
.gitignorefile is configured to exclude sensitive files
Available Tools
Available Tools
Reports
get_latest_reports
Retrieves the most recent threat intelligence reports.
{
"name": "get_latest_reports",
"arguments": {
"first": 10 // Optional, defaults to 10
}
}
get_report_by_id
Retrieves a specific report by its ID.
{
"name": "get_report_by_id",
安装
npx -y @smithery/cli install opencti-server --client claude配置
{
"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
}
}
}
}