MCP Hub
Back to servers

misp-mcp

An MCP server that enables LLMs to interact with MISP for threat intelligence sharing, IOC lookups, and event management. It provides tools for investigating indicators, discovering correlations, and exporting intelligence in formats like STIX and Suricata.

Updated
Feb 7, 2026

misp-mcp

TypeScript Node.js MCP SDK License: MIT

An MCP (Model Context Protocol) server for MISP (Malware Information Sharing Platform & Threat Intelligence Sharing). Enables LLMs to perform IOC lookups, manage events, discover correlations, and export threat intelligence directly from your MISP instance.

Features

  • 18 MCP Tools - Full MISP API coverage: events, attributes, correlations, tags, exports, sightings, warninglists
  • 3 MCP Resources - Browse attribute types, instance statistics, and available taxonomies
  • 3 MCP Prompts - Guided workflows for IOC investigation, incident event creation, and threat reporting
  • SSL Flexibility - Handles self-signed certificates common in MISP deployments
  • Export Formats - CSV, STIX, Suricata, Snort, text, RPZ, and hash lists
  • Bulk Operations - Add multiple IOCs to events in a single call
  • Correlation Engine - Discover cross-event relationships through shared indicators

Prerequisites

  • Node.js 20 or later
  • A running MISP instance with API access
  • MISP API key (generated from MISP UI: Administration > List Auth Keys)

Installation

git clone https://github.com/solomonneas/misp-mcp.git
cd misp-mcp
npm install
npm run build

Configuration

Set the following environment variables:

export MISP_URL=https://misp.example.com
export MISP_API_KEY=your-api-key-here
export MISP_VERIFY_SSL=true  # Set to 'false' for self-signed certificates
VariableRequiredDefaultDescription
MISP_URLYes-MISP instance base URL
MISP_API_KEYYes-API authentication key
MISP_VERIFY_SSLNotrueSet false for self-signed certs

Usage

Claude Desktop

Add to your Claude Desktop MCP config (claude_desktop_config.json):

{
  "mcpServers": {
    "misp": {
      "command": "node",
      "args": ["/path/to/misp-mcp/dist/index.js"],
      "env": {
        "MISP_URL": "https://misp.example.com",
        "MISP_API_KEY": "your-api-key-here",
        "MISP_VERIFY_SSL": "true"
      }
    }
  }
}

Standalone

MISP_URL=https://misp.example.com MISP_API_KEY=your-key node dist/index.js

Development

MISP_URL=https://misp.example.com MISP_API_KEY=your-key npm run dev

Tools Reference

Event Tools

ToolDescription
misp_search_eventsSearch events by IOC value, type, tags, date range, organization
misp_get_eventGet full event details including attributes, objects, galaxies, related events
misp_create_eventCreate a new event with threat level, distribution, and analysis status
misp_update_eventUpdate event metadata (info, threat level, analysis, publish state)
misp_publish_eventPublish an event to trigger alerts to sharing partners
misp_tag_eventAdd or remove tags (TLP, MITRE ATT&CK, custom) from an event

Attribute Tools

ToolDescription
misp_search_attributesSearch IOCs across all events with type, category, and correlation filters
misp_add_attributeAdd a single IOC to an event
misp_add_attributes_bulkAdd multiple IOCs to an event in one operation
misp_delete_attributeSoft or hard delete an attribute

Correlation & Intelligence Tools

ToolDescription
misp_correlateFind all events and attributes matching a value, with cross-event correlations
misp_get_related_eventsDiscover events related through shared IOCs
misp_describe_typesGet all available attribute types and category mappings

Tag & Taxonomy Tools

ToolDescription
misp_list_tagsList available tags with usage statistics
misp_search_by_tagFind events or attributes by tag

Export Tools

ToolDescription
misp_export_iocsExport IOCs in CSV, STIX, Suricata, Snort, text, or RPZ format
misp_export_hashesExport file hashes (MD5, SHA1, SHA256) for HIDS integration

Sighting & Warninglist Tools

ToolDescription
misp_add_sightingReport a sighting, false positive, or expiration for an IOC
misp_check_warninglistsCheck if a value appears on known benign/false positive lists

Resources

Resource URIDescription
misp://typesAll supported attribute types, categories, and their mappings
misp://statisticsMISP instance statistics
misp://taxonomiesAvailable taxonomies (TLP, MITRE ATT&CK, etc.)

Prompts

PromptDescription
investigate-iocDeep IOC investigation: search, correlate, check warninglists, summarize threat context
create-incident-eventGuided event creation from an incident description with IOC ingestion
threat-reportGenerate a threat intelligence report from MISP data

Usage Examples

Search for an IOC

"Search MISP for the IP address 203.0.113.50"

Uses misp_search_events and misp_search_attributes to find all events and attributes referencing this IP.

Investigate a suspicious domain

"Investigate evil-domain.com in MISP"

Triggers the investigate-ioc prompt workflow: searches for the domain, checks correlations, queries warninglists, and provides a structured threat assessment.

Create an incident event

"Create a MISP event for a phishing campaign targeting our finance team. The phishing emails came from attacker@evil.com and linked to https://evil-login.com/harvest"

Uses misp_create_event followed by misp_add_attributes_bulk to create a fully populated event.

Export Suricata rules

"Export all IOCs from the last 7 days as Suricata rules"

Uses misp_export_iocs with format "suricata" and last "7d".

Check for false positives

"Is 8.8.8.8 on any MISP warninglists?"

Uses misp_check_warninglists to verify if the value is a known benign indicator.

Supported Attribute Types

TypeCategoryExample
ip-srcNetwork activitySource IP address
ip-dstNetwork activityDestination IP address
domainNetwork activityDomain name
hostnameNetwork activityHostname
urlNetwork activityFull URL
email-srcPayload deliverySender email address
md5Payload deliveryMD5 file hash
sha1Payload deliverySHA1 file hash
sha256Payload deliverySHA256 file hash
filenamePayload deliveryFile name

Use misp_describe_types for the complete list of supported types and categories.

Testing

npm test              # Run all tests
npm run test:watch    # Watch mode
npm run lint          # Type check

Project Structure

misp-mcp/
  src/
    index.ts              # MCP server entry point
    config.ts             # Environment config + validation
    client.ts             # MISP REST API client
    types.ts              # MISP API type definitions
    resources.ts          # MCP resources
    prompts.ts            # MCP prompts
    tools/
      events.ts           # Event CRUD tools
      attributes.ts       # Attribute management tools
      correlation.ts      # Correlation & intelligence tools
      tags.ts             # Tag and taxonomy tools
      exports.ts          # Export format tools
      sightings.ts        # Sighting tools
      warninglists.ts     # Warninglist checks
  tests/
    client.test.ts        # API client unit tests
    tools.test.ts         # Tool handler unit tests
  package.json
  tsconfig.json
  tsup.config.ts
  vitest.config.ts
  README.md

License

MIT

Reviews

No reviews yet

Sign in to write a review