Connector guide6-minute read15 MCP tools7 languages

Connect Wazuh to Gemini CLI via MCP: Agents and Files

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

HCBy HelpCode teamUpdated 6 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

Wazuh

Wazuh

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

tools

15

Region

INTL

Category

Monitoring

Authentication

Sign-in token

Required env vars

WAZUH_URLWAZUH_USERNAMEWAZUH_PASSWORD
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the Wazuh in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

Try asking

Example prompts for Wazuh

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

Wazuh · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Wazuh, paste your credentials, mint an MCP API key — done. No Docker, no git clone, no local server.

Wazuh + Gemini

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

Prerequisites

See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:

WAZUH_URL, WAZUH_USERNAME, WAZUH_PASSWORD

Step 1 — Get credentials

Setting up takes about 5 minutes. You need a Wazuh 4.x server API (the manager, port 55000 by default) that AnythingMCP can reach with a certificate it trusts, and an API user with the built-in readonly role.

  1. Set WAZUH_URL to the server API address, normally https://<manager-host>:55000, without a trailing slash. Not the dashboard (port 443) and not the indexer (port 9200).
  2. Create a dedicated API user for the AI and give it the built-in readonly role: in the Wazuh dashboard under Server management → Security → Users, or with POST /security/users and POST /security/users/{user_id}/roles.
  3. Put that user's name in WAZUH_USERNAME and its password in WAZUH_PASSWORD. The connector signs in with them and renews the session token itself (Wazuh tokens last 900 seconds by default).
  4. Install the connector and run wazuh_get_manager_info: it returns the manager version and confirms that address and sign-in work.

Read-only: every tool is a GET request. The connector cannot restart anything, run active responses, add, remove or upgrade agents, or edit rules, decoders, users or configuration. The readonly role covers every permission it needs (manager:read, agent:read, rules:read, decoders:read, sca:read and syscheck:read).

What it reads: manager and API versions and the state of each manager daemon; agents with status, IP, OS, version, groups and last keep-alive, counts by status (wazuh_get_agents_summary), OS platforms and agents older than the manager; the ruleset by level, group, compliance mapping (PCI DSS, GDPR, HIPAA, NIST 800-53, TSC) or MITRE id, and the decoders; Security Configuration Assessment (CIS benchmark) policies and failed checks per agent, with rationale and remediation; File Integrity Monitoring (syscheck) files, hashes and the last scan per agent. Agent ids have at least three digits (001); 000 is the manager itself.

Certificate: Wazuh installs a self-signed certificate on port 55000, and a self-signed certificate fails: the connector has no switch to trust any certificate. Give the API a certificate whose name matches WAZUH_URL (https.cert and https.key in Wazuh's api.yaml), put a reverse proxy with a valid certificate in front of it, or, on self-hosted, start AnythingMCP with NODE_EXTRA_CA_CERTS pointing to your internal CA.

Where Wazuh runs: on a self-hosted AnythingMCP, a Wazuh on a private address (https://10.0.0.5:55000, https://wazuh.intern:55000) needs an administrator to allow the host in SSRF_ALLOWED_HOSTS or in the allowlist in the admin settings. AnythingMCP Cloud can only reach a Wazuh API exposed on the public internet over HTTPS with a publicly trusted certificate.

Privacy: agent names, IP addresses, operating systems, file paths and hashes describe your infrastructure. Assign the connector only to MCP servers whose users may see that.

Limits: list tools return 50 items by default and at most 500 per call. Wazuh allows 300 requests per minute by default and answers 429 above that, and by default 50 failed logins within 5 minutes block the address for 300 seconds.

Common errors: 401 "Invalid credentials" means a wrong WAZUH_USERNAME or WAZUH_PASSWORD. 403 means the API user lacks a read permission: give it the readonly role. 404 on every call means WAZUH_URL points at the dashboard or the indexer instead of the server API. "Agent does not exist" (Wazuh error 1701) means no agent has that id. 400 "There is no database for agent" means the agent never connected, so it has no SCA or FIM data yet. "self-signed certificate" or "unable to verify the first certificate" is the certificate problem above.

The connector does not read alerts and events or vulnerability detection results (they live in the Wazuh indexer, not in this API), does not write anything, does not cover cluster configuration, and does not support Wazuh 5.x, which removes most of these endpoints.

Step 2 — Install the adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Step 3 — Add the connector in Gemini

Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide shows YOUR_SERVER_ID.

Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:

{
  "mcpServers": {
    "anythingmcp": {
      "httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
      "headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
    }
  }
}
  1. Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of YOUR_MCP_API_KEY.
  2. Save the file and restart gemini.
  3. Run /mcp inside Gemini CLI (or gemini mcp list in your shell) — anythingmcp should show as connected.
  4. Start prompting — Gemini CLI can now call the Wazuh tools.

Available tools

ToolWhat it does
wazuh_get_api_infoGet the Wazuh server API's own info: API version (e.g. 4.14.9), revision, license, hostname and server time
wazuh_get_manager_infoGet the Wazuh manager's basic information: version, installation path, type (server), max agents, OpenSSL support, time zone and uuid
wazuh_get_manager_statusGet the state of every Wazuh manager daemon (wazuh-analysisd, wazuh-remoted, wazuh-db, wazuh-modulesd, wazuh-apid and others): running or…
wazuh_list_agentsList Wazuh agents with id, name, IP, status, OS name and version, agent version, last keep-alive, groups, cluster node and registration…
wazuh_get_agentGet one Wazuh agent by id with every field Wazuh keeps: name, IP and registration IP, status, OS (name, version, platform, arch, uname)…
wazuh_get_agents_summaryCount Wazuh agents by connection status (active, disconnected, never_connected, pending, total) and by configuration sync state (synced…
wazuh_get_agents_os_summaryList the operating system platforms present among the Wazuh agents, e.g. ubuntu, windows, darwin, with the total
wazuh_list_outdated_agentsList Wazuh agents whose version is older than the manager's, with id, name and version, plus the total
wazuh_list_rulesSearch the Wazuh ruleset: rule id, level, description, groups, file, status and MITRE technique ids, plus the total
wazuh_list_rule_groupsList the group names used in the Wazuh ruleset (e.g. authentication_failed, syscheck, web), plus the total; a group is what…
wazuh_list_decodersList Wazuh decoders: name, file, directory, status and parent decoder, plus the total
wazuh_list_sca_policiesList the Security Configuration Assessment (SCA) policies scanned on one agent, e.g. a CIS benchmark: policy_id, name, passed, failed and…
wazuh_list_sca_checksList the checks of one SCA policy on one agent: check id, title, result (passed, failed, not applicable), rationale and remediation, plus…
wazuh_list_syscheck_filesList what File Integrity Monitoring (FIM, syscheck) recorded on one agent: file or registry path, type, size, owner, permissions, hashes…
wazuh_get_syscheck_last_scanGet the start and end time of the last File Integrity Monitoring (syscheck) scan on one agent

FAQ

Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.

Next steps

Was this guide helpful?

Your Wazuh agent is one click away.

Install the connector, paste the key, prompt Gemini. Free for 7 days, no credit card.

Related guides

Connectors

Connect Wazuh to ChatGPT via MCP: Agents and Rules

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

Connectors

Connect Wazuh to Claude via MCP: Agents and CIS Checks

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

Connectors

Connect Wazuh to Microsoft Copilot via MCP

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

Connectors

Connect Wazuh to Cursor via MCP: Rules and Agents

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

Connectors

Connect Wazuh to Meta Muse via MCP: Agents and Files

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.

Connectors

Wazuh MCP Server: Agents, CIS Checks and Files

Let your AI read your Wazuh 4.x security platform through the server API: manager version and daemon status, agents and their connection status, the detection rules and decoders, Security Configuration Assessment (CIS benchmark) results and File Integrity Monitoring data per agent. Read-only: it never restarts, changes or deletes anything. Alerts and vulnerabilities live in the Wazuh indexer and are not covered.