MISP MCP Server

MISP MCP Server

misp-mcp-server•bysairambokka

An MCP server that exposes MISP IOC retrieval functions, such as recent IOC fetching, type filtering, summaries, and file export, to MCP-compatible clients.

License: Not specified•Runtime: Awaiting documentation review•Category: auth security

WHAT IT DOES

  • •Retrieves IOCs added to MISP in the last 24 hours.
  • •Provides IOC summary statistics with counts by type.
  • •Filters IOCs by a specified type such as IP, domain, URL, or hash.
  • •Saves recent IOCs to a JSON file and exposes MCP resources.

BEST FOR

  • •Asking an MCP client for a summary of recent IOCs from MISP.
  • •Requesting IP address IOCs from the last 24 hours through an MCP client.
  • •Saving recent threat-intelligence IOCs to a JSON file.

ABOUT MISP-MCP-SERVER

MISP MCP Server is cataloged as an MCP server attributed to sairambokka. An MCP server that exposes MISP IOC retrieval functions, such as recent IOC fetching, type filtering, summaries, and file export, to MCP-compatible clients. It is categorized under auth security. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MISP MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which MCP clients can use this server?

It is intended for MCP-compatible clients such as Claude Desktop.

What MISP configuration is required?

It requires a MISP instance URL and an API key with appropriate permissions.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 598ae5aa2ade · 采集于 2026-11-13 10:14:40 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

MISP MCP Server

A simple Model Context Protocol (MCP) server that exposes MISP (Malware Information Sharing Platform) IOC retrieval functions to MCP-compatible clients like Claude Desktop.

Features

  • Get Recent IOCs: Retrieve IOCs added to MISP in the last 24 hours
  • IOC Summary: Get statistics and counts by IOC type
  • Filter by Type: Get IOCs filtered by specific types (IP, domain, URL, etc.)
  • Save to File: Export IOCs to JSON files
  • Connection Check: Verify MISP connectivity and configuration

Prerequisites

  • Python 3.8+
  • Access to a MISP instance
  • MISP API key with appropriate permissions

Installation

  1. Clone or download the project files:

    git clone <your-repo-url>
    cd misp-mcp-server
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Set up environment variables: Create a .env file with your MISP credentials:

    MISP_URL=https://your-misp-instance.com
    MISP_API_KEY=your-api-key-here
    

Usage

Running the MCP Server

python misp_mcp_server.py

The server will start and listen for MCP connections via STDIO.

Connecting to Claude Desktop

Add the following to your Claude Desktop MCP configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "misp-server": {
      "command": "python",
      "args": ["/absolute/path/to/misp_mcp_server.py"],
      "env": {
        "MISP_URL": "https://your-misp-instance.com",
        "MISP_API_KEY": "your-api-key-here"
      }
    }
  }
}

Testing with MCP Inspector

# Install MCP tools (optional)
pip install mcp

# Run the inspector
mcp-inspector python misp_mcp_server.py

Available Tools

get_recent_iocs()

Get all IOCs from MISP added in the last 24 hours.

Returns: List of IOC dictionaries with fields: value, type, timestamp, category, tags, event

get_ioc_summary()

Get summary statistics of recent IOCs.

Returns: Dictionary with total count, counts by type, and sample IOCs

get_iocs_by_type(ioc_type: str)

Filter IOCs by a specific type.

Parameters:

  • ioc_type: Type of IOC to filter for (e.g., 'ip-dst', 'domain', 'url', 'md5', 'sha256')

Returns: List of IOCs matching the specified type

save_iocs_to_file(filename: str = None)

Save recent IOCs to a JSON file.

Parameters:

  • filename: Optional custom filename (auto-generated if not provided)

Returns: Status dictionary with save results

check_misp_connection()

Verify MISP connection and configuration.

Returns: Connection status and configuration information

Available Resources

misp://server-info

Get information about the MCP server, including available tools and descriptions.

Example Interactions

Once connected to Claude Desktop, you can ask:

  • "Get a summary of recent IOCs from MISP"
  • "Show me all IP address IOCs from the last 24 hours"
  • "Save the recent IOCs to a file called 'threats_today.json'"
  • "Check if my MISP connection is working properly"
  • "How many domain IOCs were added recently?"

File Structure

misp-mcp-server/
├── misp_to_json.py          # Original MISP IOC retrieval functions
├── misp_mcp_server.py       # MCP server implementation
├── requirements.txt         # Python dependencies
├── README.md               # This file
├── .env                    # Environment variables (create this)
└── .env.example           # Example environment file

Configuration

Environment Variables

VariableDescriptionRequired
MISP_URLURL of your MISP instanceYes
MISP_API_KEYYour MISP API authentication keyYes

MISP Permissions

Your MISP API key needs the following permissions:

  • Read access to attributes
  • Access to events (for context)
  • Tag viewing permissions (if using tags)

Troubleshooting

Common Issues

"MISP_API_KEY not found"

  • Ensure your .env file is in the same directory as the script
  • Verify the API key is correctly formatted

"Failed to connect to MISP"

  • Check your MISP_URL in the .env file
  • Verify the MISP instance is accessible from your network
  • Check for SSL certificate issues (script uses ssl=False for local instances)

"No IOCs found"

  • This is normal if no IOCs were added in the last 24 hours
  • Check your MISP instance for recent activity

Pydantic validation errors

  • Ensure you're using fastmcp 2.0 or later
  • Check that all function parameters have proper type hints

Debug Mode

Enable debug logging by adding this to the top of misp_mcp_server.py:

import logging
logging.basicConfig(level=logging.DEBUG)

Development

Adding New Tools

To add a new MCP tool, decorate a function with @mcp.tool():

@mcp.tool()
def your_new_function(param: str) -> dict:
    """Description of what this tool does"""
    # Your implementation here
    return {"result": "success"}

Adding New Resources

To add a new MCP resource, use @mcp.resource():

@mcp.resource("misp://your-resource")
def your_resource() -> str:
    """Resource description"""
    return "Resource content"

License

This project is provided as-is for educational and operational use. Ensure compliance with your organization's security policies when handling IOC data.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test with MCP inspector
  5. Submit a pull request

Support

For issues related to:


Note: This server is designed for internal use with trusted MISP instances. Always follow your organization's security guidelines when handling threat intelligence data.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MISP MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/misp-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related auth security MCP Servers

Alternative and complementary servers in the same category

View all in auth security →

A modular FastMCP server for interacting with Microsoft Graph API, supporting advanced queries for users, sign-in logs, MFA status, and privileged users.

Repository stats unavailable
Security & Secrets
Keycloak MCP Server
keycloak-mcp-server•sshaaf

A Model Context Protocol (MCP) server that provides programmatic access to Keycloak administration functionality.

Repository stats unavailable
Security & Secrets

An MCP server for LLM-driven penetration testing that wraps Kali tools and adds scope enforcement, engagement tracking, and structured output.

Repository stats unavailable
Security & Secrets