Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

A Model Context Protocol (MCP) server that provides comprehensive access to IBM QRadar security intelligence platform. Query logs, events, offenses, agents, assets, and more directly from your AI assistant.

README.md

IBM QRadar MCP Server

A Model Context Protocol (MCP) server that provides comprehensive access to IBM QRadar security intelligence platform. Query logs, events, offenses, agents (log sources), assets, and more directly from your AI assistant.

Features

Core Capabilities (16 tools)

🔍 Event & Log Queries

  • Custom AQL Queries: Execute Ariel Query Language (AQL) queries against events and flows
  • Recent Events: Quickly retrieve the latest security events
  • Network Flows: Query network traffic data

🚨 Offense Management

  • List Offenses: Get all security offenses with filtering options
  • Offense Details: Retrieve detailed information about specific offenses
  • Filter by Status: Query open, closed, or offenses by severity

🖥️ Log Sources (Agents)

  • List Log Sources: View all agents/collectors sending data to QRadar
  • Log Source Details: Get configuration and status of specific log sources
  • Log Source Types: Browse available log source types

🌐 Asset Management

  • List Assets: Query discovered network assets
  • Search by IP: Find assets by IP address
  • Asset Details: Get detailed asset information

📊 Analytics & Rules

  • List Rules: Browse detection rules
  • Rule Details: View rule configuration and logic
  • Filter Rules: Find enabled/disabled rules

🗂️ Reference Data

  • Reference Sets: Access threat intelligence lists
  • Reference Data: Query specific reference set contents

⚙️ System Information

  • System Info: QRadar version and configuration
  • Server Status: Check QRadar server health

Advanced Features (25 additional tools) 🆕

  • 📝 Offense Management: Add notes, update status, assign offenses, close with reasons
  • 💾 Saved Searches: Execute and manage pre-configured AQL queries
  • 🎨 Custom Properties: Work with user-defined event/flow enrichments
  • 🏢 Domain Management: Multi-tenant domain configuration and queries
  • 🌐 Network Hierarchy: Access network topology and segment definitions
  • 🔍 Discovery Tools: Introspect available fields, categories, and databases
  • 🧩 Building Blocks: Manage reusable rule components
  • 👥 User Management: View users for offense assignment and collaboration
  • 📊 Reports: Access installed applications and report templates

Total: 41 comprehensive tools for complete security operations

See ADVANCED_FEATURES.md for detailed documentation on all advanced capabilities

Installation

🚀 Quick Start Guides

Prerequisites

  • Python 3.10 or higher
  • IBM QRadar instance with API access
  • API authentication token from QRadar
  • AI Client: Claude Desktop, or any local LLM (Ollama, LM Studio, etc.)

💡 New: You can now use local open-source LLMs instead of Claude! See LOCAL_LLM_GUIDE.md for setup.

Setup

  1. Clone the repository:
git clone <repository-url>
cd IBMQradarMCP
  1. Install dependencies:
pip install -r requirements.txt
  1. Configure environment variables:
cp .env.example .env

Edit .env file with your QRadar credentials: ``env QRADAR_HOST=your-qradar-host.com QRADAR_API_TOKEN=your-api-token-here QRADAR_VERIFY_SSL=true ``

Getting QRadar API Token

  1. Log into your QRadar console
  2. Navigate to Admin > Authorized Services
  3. Click Create Authorized Service
  4. Provide a name and select appropriate permissions
  5. Copy the generated token to your .env file

Usage

Running the MCP Server

python -m src.server

The server will start and communicate via stdio (standard input/output) as per the MCP protocol.

Configuration with AI Clients

Option 1: Claude Desktop

Add this configuration to your Claude Desktop config file:

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

{
  "mcpServers": {
    "qradar": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "/path/to/IBMQradarMCP",
      "env": {
        "QRADAR_HOST": "your-qradar-host.com",
        "QRADAR_API_TOKEN": "your-api-token",
        "QRADAR_VERIFY_SSL": "true"
      }
    }
  }
}

Option 2: Local LLMs (Ollama, LM Studio, etc.) 🆕

Quick Start with Ollama: ```bash

1. Install Ollama

brew install ollama # or visit ollama.com

2. Download a model

ollama pull llama3.1:8b

3. Run setup script

./setup_local_llm.sh

4. Start the local client (choose one):

Option A: Web UI (recommended - beautiful interface) 🌟

./start_webui.sh

Then open http://localhost:5000

Option B: Terminal client (simple, lightweight)

python3 local_llm_client.py ```

Local LLM Interfaces Available:

  • 🌟 Web UI - Beautiful, modern web interface (NEW!)
  • 💻 Terminal Client - Command-line interface
  • 🔧 Continue.dev - VS Code integration
  • 🖥️ LM Studio - Desktop app with GUI
  • 🌐 Open WebUI - Advanced web interface
  • 🔐 Jan.ai - Privacy-focused desktop app

Supported Local LLMs:

  • ✅ Ollama (recommended)
  • ✅ LM Studio
  • ✅ Continue.dev (VS Code)
  • ✅ Open WebUI
  • ✅ Jan.ai

📖 Guides: - WEB_UI_GUIDE.md - Beautiful web interface setup 🌟 - LOCAL_LLM_GUIDE.md - Complete local LLM guide

Available Tools

Event & Log Query Tools

qradar_search_events

Search events using AQL (Ariel Query Language).

Parameters:

  • query (required): AQL query string
  • timeout (optional): Query timeout in seconds (default: 60)
  • max_wait (optional): Maximum wait time for results (default: 300)

Example: `` Search for failed login attempts in the last 24 hours: SELECT sourceip, username, eventcount FROM events WHERE category=1003 LAST 24 HOURS ``

qradar_get_recent_events

Get the most recent security events.

Parameters:

  • limit (optional): Number of events to return (default: 50)
  • fields (optional): Array of field names to return

qradar_search_flows

Search network flows using AQL.

Parameters:

  • query (required): AQL query string for flows
  • timeout (optional): Query timeout in seconds
  • max_wait (optional): Maximum wait time for results

Offense Tools

qradar_get_offenses

Get offenses (security incidents) from QRadar.

Parameters:

  • filter (optional): Filter string (e.g., "status=OPEN")
  • fields (optional): Comma-separated list of fields
  • range (optional): Result range (e.g., "0-49")

qradar_get_offense_by_id

Get detailed information about a specific offense.

Parameters:

  • offense_id (required): The offense ID

Log Source (Agent) Tools

qradar_get_log_sources

List all log sources (agents/collectors).

Parameters:

  • filter (optional): Filter string (e.g., "enabled=true")
  • fields (optional): Comma-separated list of fields

qradar_get_log_source_by_id

Get details of a specific log source.

Parameters:

  • log_source_id (required): The log source ID

qradar_get_log_source_types

Get available log source types.

Asset Tools

qradar_get_assets

List network assets discovered by QRadar.

Parameters:

  • filter (optional): Filter string
  • fields (optional): Comma-separated list of fields

qradar_search_assets_by_ip

Search for assets by IP address.

Parameters:

  • ip_address (required): IP address to search

Reference Data Tools

qradar_get_reference_sets

List all reference data sets.

qradar_get_reference_set_data

Get data from a specific reference set.

Parameters:

  • ref_set_name (required): Name of the reference set

System Information Tools

qradar_get_system_info

Get QRadar system information.

qradar_get_servers

Get QRadar server/host information.

Rules Tools

qradar_get_rules

List analytics rules.

Parameters:

  • filter (optional): Filter string
  • fields (optional): Comma-separated list of fields

qradar_get_rule_by_id

Get details of a specific rule.

Parameters:

  • rule_id (required): The rule ID

Example Queries

Here are some example queries you can ask your AI assistant once the MCP server is configured:

Security Monitoring

  • "Show me all open offenses with high severity"
  • "What are the most recent security events in the last hour?"
  • "Search for failed SSH login attempts in the last 24 hours"

Network Analysis

  • "Show me all network flows from IP 192.168.1.100"
  • "What are the top source IPs in network traffic today?"

Asset Management

  • "List all assets in my network"
  • "Find information about the asset with IP 10.0.0.50"
  • "What log sources are currently connected?"

Threat Investigation

  • "Show me details of offense ID 1234"
  • "What reference sets contain the IP 8.8.8.8?"
  • "List all enabled detection rules"

AQL Query Examples

Event Queries

Failed login attempts: ``sql SELECT sourceip, username, eventcount FROM events WHERE category=1003 LAST 24 HOURS ``

High severity events: ``sql SELECT sourceip, destinationip, qid FROM events WHERE severity >= 7 LAST 1 HOURS ``

Events from specific IP: ``sql SELECT * FROM events WHERE sourceip='192.168.1.100' LAST 7 DAYS ``

Flow Queries

Top talkers by bytes: ``sql SELECT sourceip, destinationip, SUM(sourcebytes) as total_bytes FROM flows GROUP BY sourceip, destinationip ORDER BY total_bytes DESC LAST 1 HOURS ``

Connections to specific port: ``sql SELECT sourceip, destinationip, destinationport FROM flows WHERE destinationport=443 LAST 24 HOURS ``

Security Considerations

  1. API Token Security: Never commit your API token to version control
  2. SSL Verification: Keep QRADAR_VERIFY_SSL=true in production
  3. Least Privilege: Use QRadar authorized services with minimal required permissions
  4. Network Security: Ensure secure network connection to QRadar
  5. Token Rotation: Regularly rotate API tokens

Troubleshooting

Connection Issues

Error: QRadar API request failed
  • Verify QRADAR_HOST is correct (without https://)
  • Check firewall rules allow connection to QRadar
  • Ensure API port (typically 443) is accessible

Authentication Errors

Error: 401 Unauthorized
  • Verify QRADAR_API_TOKEN is correct
  • Check token hasn't expired in QRadar
  • Ensure authorized service has required permissions

SSL Certificate Errors

Error: SSL verification failed
  • For development, set QRADAR_VERIFY_SSL=false
  • For production, add QRadar certificate to trusted certificates

Query Timeout

Error: Search timed out
  • Increase max_wait parameter
  • Narrow your query time range
  • Use more specific filters in AQL

Development

Project Structure

IBMQradarMCP/
├── src/
│   ├── __init__.py
│   ├── qradar_client.py    # QRadar API client
│   └── server.py            # MCP server implementation
├── pyproject.toml           # Project metadata
├── requirements.txt         # Dependencies
├── .env.example            # Environment template
└── README.md               # Documentation

Testing

Run the server in debug mode: ``bash python -m src.server ``

Test with sample MCP client or integrate with Claude Desktop.

API Reference

This MCP server uses IBM QRadar REST API v15.0. For more information:

Author

Ram Krishna Katakwar

License

See LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues.

Support

For issues and questions:

  1. Check the troubleshooting section
  2. Review QRadar API documentation
  3. Open an issue on GitHub

Changelog

Version 0.2.0

  • 🎉 25 new advanced tools added (total: 41 tools)
  • ✨ Enhanced offense management: notes, status updates, assignment, closing
  • 💾 Saved search execution and management
  • 🎨 Custom property discovery and querying
  • 🏢 Domain management for multi-tenancy
  • 🌐 Network hierarchy access
  • 🔍 Discovery tools: fields, categories, databases
  • 🧩 Building block management
  • 👥 User management for assignment
  • 📊 Reports and applications listing
  • 📚 Comprehensive advanced features documentation

Version 0.1.0

  • Initial release
  • Event and flow queries with AQL support
  • Offense management
  • Log source (agent) information
  • Asset queries
  • Reference data access
  • System information
  • Rules browsing

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Observability servers.