一款适用于AlienVault OTX(开放威胁交换)的模型上下文协议(MCP)服务器,提供与OTX API的全面接口。
概览
一款适用于AlienVault OTX(开放威胁交换)的模型上下文协议(MCP)服务器,提供与OTX API的全面接口。 该MCP服务器允许您通过模型上下文协议与AlienVault OTX平台交互。模型上下文协议(MCP)是一种创新标准,使应用程序能够以安全、标准化的方式为大型语言模型(LLM)提供上下文和功能。可以把它想象成专门为大型语言模型交互设计的网络API。 MCP服务器可以:- 通过(用于将信息加载到LLM上下文)- 通过(用于执行代码或产生副作用)提供功能 - 通过(用于重用的LLM交互模板)定义交互模式 该服务器实现了MCP的工具功能,提供了一套全面的工具,用于与OTX平台交互。它允许像Claude这样的AI系统实时检索和分析威胁指标和脉冲。
概述(AI 翻译)
一款适用于AlienVault OTX(开放威胁交换)的模型上下文协议(MCP)服务器,提供与OTX API的全面接口。
概述
该MCP服务器允许您通过模型上下文协议与AlienVault OTX平台交互。模型上下文协议(MCP)是一种创新标准,使应用程序能够以安全、标准化的方式为大型语言模型(LLM)提供上下文和功能。可以把它想象成专门为大型语言模型交互设计的网络API。
MCP服务器可以:
- 通过Resources(用于将信息加载到LLM上下文)来暴露数据
- 通过工具提供功能(用于执行代码或产生副作用)
- 通过**提示词*(LLM交互的可重用模板)定义交互模式
该服务器实现了MCP的工具功能,提供了一套全面的工具,用于与OTX平台交互。它允许像Claude这样的AI系统实时检索和分析威胁指标和脉冲。
特色
- 指标搜索与分析:搜索指标,获取具体指标的详细信息,并验证指标
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
OTX MCP Server
A Model Context Protocol (MCP) server for AlienVault OTX (Open Threat Exchange) that provides a comprehensive interface to the OTX API.
Overview
This MCP server allows you to interact with the AlienVault OTX platform through the Model Context Protocol. The Model Context Protocol (MCP) is an innovative standard that enables applications to provide context and functionality to Large Language Models (LLMs) in a secure, standardized way. Think of it like a web API specifically designed for LLM interactions.
MCP servers can:
- Expose data through Resources (used to load information into the LLM’s context)
- Provide functionality through Tools (used to execute code or produce side effects)
- Define interaction patterns through Prompts (reusable templates for LLM interactions)
This server implements the Tools functionality of MCP, providing a comprehensive set of tools for interacting with the OTX platform. It allows AI systems like Claude to retrieve and analyze threat indicators and Pulses in real-time.
Features
- Indicator Search and Analysis: Search for indicators, get detailed information about specific indicators, and validate indicators
- Pulse Management: Create, edit, and manage threat intelligence pulses
- User Interaction: Follow users, subscribe to pulses, and manage your OTX network
- URL Analysis: Submit URLs for analysis to identify potential threats
- Event Monitoring: Track recent events and activities on OTX
Installation
Option 1: Using Docker (Recommended)
-
Export your OTX API key as an environment variable:
export OTX_API_KEY=your_api_key_here -
Authenticate with GitHub Container Registry:
# Create a GitHub Personal Access Token (PAT) with at least 'read:packages' scope # Go to GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic) # Generate a new token with 'read:packages' scope # Login to GitHub Container Registry docker login ghcr.io -u YOUR_GITHUB_USERNAME # When prompted, enter your Personal Access Token as the password -
Pull the Docker image from GitHub Container Registry:
docker pull ghcr.io/mrwadams/otx-mcp:main
Option 2: Local Installation
- Clone this repository
- Install the required dependencies:
pip install -r requirements.txt - Export your OTX API key as an environment variable:
Or create aexport OTX_API_KEY=your_api_key_here.envfile with:OTX_API_KEY=your_api_key_here
Usage
Using with Claude Desktop
To use this MCP server with Claude Desktop, add the following to your Claude Desktop config file (claude_desktop_config.json):
"mcpServers": {
"otx": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OTX_API_KEY",
"ghcr.io/mrwadams/otx-mcp:main"
],
"env": {
安装
docker run -i --rm -e OTX_API_KEY ghcr.io/mrwadams/otx-mcp:main配置
"mcpServers": {
"otx": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"OTX_API_KEY",
"ghcr.io/mrwadams/otx-mcp:main"
],
"env": {
"OTX_API_KEY": "your_api_key_here"
}
}
}