Sandbox
@4R9UN/fastmcp-threatintel

MCP server for threat intelligence analysis

FastMCP ThreatIntel connects an agent to threat-intelligence sources through MCP and a standalone CLI. It looks up indicators such as IPs, domains, URLs, and hashes, then returns analysis, attribution hints, and reports in formats like HTML, JSON, and STIX.

39 starsβ€’12 forksβ€’Pythonβ€’Updated 1y ago
Who it's for

Builders who want their agent to inspect suspicious indicators and return threat-intel findings.

What it delivers

You can ask an MCP-capable agent to investigate IOCs without switching between separate threat-intelligence sites.

What it does

Multi-source IOC analysis

Checks IPs, domains, URLs, and file hashes against VirusTotal, AlienVault OTX, AbuseIPDB, and IPinfo.

Natural-language threat hunting

Lets you query threats in plain English and auto-detect common indicator types.

APT attribution and MITRE mapping

Adds confidence-scored attribution and MITRE ATT&CK context to findings.

Interactive and batch CLI

Supports single IOC analysis, batch file analysis, and interactive sessions through `threatintel`.

MCP server integration

Exposes the threat-intel engine to Claude Desktop, VS Code Roo-Cline, and other MCP clients.

Report exports

Generates Markdown, JSON, HTML, STIX, PDF, and CSV outputs for sharing or downstream use.

How to get it

  1. 1Run
    # Install from PyPI
    pip install fastmcp-threatintel
    
    # Interactive setup wizard
    threatintel setup
    
    # Analyze your first IOC
    threatintel analyze 8.8.8.8 --output-format table --verbose
  2. 2Run
    # Pull and run with your API keys
    docker pull arjuntrivedi/fastmcp-threatintel:latest
    docker run -e VIRUSTOTAL_API_KEY=your_key \
               -e OTX_API_KEY=your_key \
               arjuntrivedi/fastmcp-threatintel:latest \
               analyze 192.168.1.1
  3. 3Run
    # Clone and install with Poetry
    git clone https://github.com/4R9UN/fastmcp-threatintel.git
    cd fastmcp-threatintel
    poetry install
    
    # Activate and run
    poetry shell
    threatintel analyze example.com --output-format html --open-browser
  4. 4Run
    "Analyze IP 8.8.8.8 for security threats and provide geolocation data"
    "Check if domain example.com has any malicious associations"
    "Perform comprehensive threat analysis on 185.220.101.1 with APT attribution"
    "Generate a security incident report for these IOCs: [list]"

README

MseeP.ai Security Assessment Badge

πŸ›‘οΈ FastMCP ThreatIntel - AI-Powered Threat Intelligence

CI/CD Pipeline codecov PyPI version Python 3.10+ License: Apache-2.0 Docker Pulls Verified on MseeP

πŸš€ MCP AI Powered Threat Intelligence - Revolutionizing Cybersecurity Built by Arjun Trivedi (4R9UN) - Enterprise-Grade Threat Intelligence Platform

A comprehensive Model Context Protocol (MCP) server that provides enterprise-grade threat intelligence capabilities through natural language AI prompts. Analyze IPs, domains, URLs, and file hashes across multiple threat intelligence platforms with advanced APT attribution and interactive reporting.

Demo

✨ Why FastMCP ThreatIntel?

🎯 Purpose-Built for Modern Security Teams

  • πŸ€– AI-First Design: Natural language queries with intelligent IOC detection
  • πŸ”— MCP Integration: Seamless integration with Claude Desktop, VSCode (Roo-Cline), and other AI assistants
  • ⚑ Lightning Fast: UV-powered development with optimized async processing
  • 🏒 Enterprise Ready: Production-grade Docker containers and Kubernetes support

πŸ” Multi-Source Intelligence

  • VirusTotal: File and URL reputation analysis with 70+ antivirus engines
  • AlienVault OTX: Community-driven threat intelligence and IOC feeds
  • AbuseIPDB: IP reputation and geolocation with abuse confidence scoring
  • IPinfo: Enhanced geolocation, ASN, and infrastructure data

πŸ€– AI-Powered Analysis

  • Natural Language Interface: Query threats using plain English
  • Advanced APT Attribution: Confidence-scored attribution with MITRE ATT&CK mapping
  • Intelligent IOC Detection: Auto-detects IP addresses, domains, URLs, and file hashes
  • Context-Aware Reporting: Generates comprehensive threat intelligence reports

πŸ“Š Rich Reporting & Visualization

  • Interactive HTML Reports: Modern, responsive design with dark/light modes
  • D3.js Network Graphs: Visual IOC relationship mapping
  • Multiple Output Formats: Markdown, JSON, HTML, and STIX-compliant outputs
  • Export Capabilities: PDF, CSV, and JSON export for integration

πŸš€ Flexible Deployment Options

  • πŸ”Œ MCP Server: Direct integration with AI assistants
  • πŸ’» Standalone CLI: Interactive and batch processing modes
  • 🐳 Docker Container: Production-ready containerization
  • πŸ“¦ Python Package: Embed in your applications and workflows

πŸ—οΈ Architecture

graph TB
    A[AI Assistant] --> B[MCP Protocol]
    C[CLI Interface] --> D[Core Engine]
    B --> D
    
    D --> E[IOC Processor]
    D --> F[Attribution Engine]
    D --> G[Report Generator]
    
    E --> H[VirusTotal API]
    E --> I[OTX API]
    E --> J[AbuseIPDB API]
    E --> K[IPinfo API]
    
    F --> L[APT Patterns]
    F --> M[MITRE ATT&CK]
    
    G --> N[HTML Reports]
    G --> O[JSON Export]
    G --> P[STIX Output]

πŸš€ Quick Start

Choose your preferred installation method and get started in minutes:

🐍 pip (Fastest)

# Install from PyPI
pip install fastmcp-threatintel

# Interactive setup wizard
threatintel setup

# Analyze your first IOC
threatintel analyze 8.8.8.8 --output-format table --verbose

🐳 Docker (Production Ready)

# Pull and run with your API keys
docker pull arjuntrivedi/fastmcp-threatintel:latest
docker run -e VIRUSTOTAL_API_KEY=your_key \
           -e OTX_API_KEY=your_key \
           arjuntrivedi/fastmcp-threatintel:latest \
           analyze 192.168.1.1

πŸ”₯ UV (Developer Recommended)

# Clone and install with UV
git clone https://github.com/4R9UN/fastmcp-threatintel.git
cd fastmcp-threatintel
uv sync

# Run interactive setup
uv run threatintel setup

# Start analyzing
uv run threatintel interactive

πŸ“¦ Poetry (Traditional)

# Clone and install with Poetry
git clone https://github.com/4R9UN/fastmcp-threatintel.git
cd fastmcp-threatintel
poetry install

# Activate and run
poetry shell
threatintel analyze example.com --output-format html --open-browser

βš™οΈ Configuration

πŸ”‘ API Keys Setup

Get your free API keys and unlock the full potential:

ServiceStatusFree Tier LimitGet Your Key
VirusTotalRequired1,000 requests/daySign Up β†’
OTXRequiredUnlimitedSign Up β†’
AbuseIPDBOptional1,000 requests/daySign Up β†’
IPinfoOptional50,000 requests/monthSign Up β†’

πŸ› οΈ Environment Configuration

Create a .env file in your project directory:

# Required API Keys
VIRUSTOTAL_API_KEY=your_virustotal_api_key
OTX_API_KEY=your_alienvault_otx_api_key

# Optional API Keys (for enhanced functionality)
ABUSEIPDB_API_KEY=your_abuseipdb_api_key
IPINFO_API_KEY=your_ipinfo_api_key

# Performance Tuning
CACHE_TTL=3600              # Cache duration (seconds)
MAX_RETRIES=3               # API retry attempts
REQUEST_TIMEOUT=30          # Request timeout (seconds)

πŸ’» Usage Examples

CLI Analysis

# Quick single IOC analysis
threatintel analyze 192.168.1.1 --verbose

# Batch analysis from file
threatintel batch iocs.txt --output-file report.html --output-format html

# Interactive threat hunting session
threatintel interactive

# Start MCP server for AI integration
threatintel server --host 0.0.0.0 --port 8000

πŸ”Œ MCP Integration

Integrate with AI assistants for natural language threat intelligence:

VSCode with Roo-Cline

{
  "mcpServers": {
    "threatintel": {
      "command": "threatintel",
      "args": ["server", "--port", "8001"],
      "env": {
        "VIRUSTOTAL_API_KEY": "your_key",
        "OTX_API_KEY": "your_key"
      }
    }
  }
}

Claude Desktop

{
  "mcpServers": {
    "threatintel": {
      "command": "threatintel",
      "args": ["server"],
      "env": {
        "VIRUSTOTAL_API_KEY": "your_key",
        "OTX_API_KEY": "your_key"
      }
    }
  }
}

πŸ”— Complete MCP Integration Guide β†’

🎯 AI Prompt Examples

"Analyze IP 8.8.8.8 for security threats and provide geolocation data"
"Check if domain example.com has any malicious associations"
"Perform comprehensive threat analysis on 185.220.101.1 with APT attribution"
"Generate a security incident report for these IOCs: [list]"

πŸ“š Documentation

πŸ“– User Guides

πŸ› οΈ Developer Resources

🌟 What Makes It Special

**πŸ”₯ MCP Functionality **

  • MCP AI Powered: Cutting-edge threat intelligence automation
  • Revolutionizing Cybersecurity: Enterprise-grade AI-powered platform
  • Community-Focused: Open source with professional quality

πŸš€ Production-Ready Features

  • Multi-Architecture Docker: ARM64 and AMD64 support
  • Kubernetes Ready: Helm charts and deployment manifests
  • Comprehensive Testing: 80%+ code coverage with CI/CD pipeline
  • Security First: Secure by design with best practices

⚑ Performance Optimized

  • Async Everything: Non-blocking I/O for maximum throughput
  • Intelligent Caching: Redis-compatible caching layer
  • Rate Limiting: Built-in API rate limit management
  • Batch Processing: Efficient bulk IOC analysis

🀝 Contributing

We welcome contributions from the cybersecurity community!

Quick Start

# Fork and clone
git clone https://github.com/YOUR_USERNAME/fastmcp-threatintel.git
cd fastmcp-threatintel

# Setup development environment
uv sync --dev
uv run pre-commit install

# Make your changes and test
uv run pytest
uv run ruff format . && uv run ruff check .

# Submit your PR
git push origin feature/your-feature

πŸ“– Complete Contributing Guide β†’

πŸ“œ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

πŸ™ Acknowledgments

Special thanks to the cybersecurity community and these amazing projects:

πŸ”— Links & Resources

🌟 Star this repo if you find it useful! 🌟

GitHub stars GitHub forks

πŸ“š Documentation β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature β€’ πŸ’¬ Discussions

πŸ“¦ PyPI Package β€’ 🐳 Docker Hub


Built with ❀️ by Arjun Trivedi (4R9UN) for the cybersecurity community

Files in the repo

Repository payloadβ€’17 top-level entries
  • .git_disabled
  • .github
  • docs
  • scripts
  • src
  • tests
  • .gitignore
  • .pre-commit-config.yaml
  • CHANGELOG.md
  • codecov.yml
  • docker-compose.yml
  • Dockerfile
  • mkdocs.yml
  • poetry.lock
  • pyproject.toml
  • README.md
  • uv.lock

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

86k

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph β€” average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code β€” use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300Β΅s in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
2akouwu/
reverify

Stop your AI from making things up β€” it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k

x64dbg-MCP Server is a native MCP (Model Context Protocol) plugin for x64dbg that exposes the debugger's full functionality over HTTP. Connect any MCP-compatible AI assistant and control x64dbg programmatically: set breakpoints, step through code, read memory, dump registers, and more. Built with Zig β€” zero dependencies, single-binary output, cros

1.9k