KnowBe4 MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@KnowBe4 MCP Servershow me our account risk score and latest phishing results"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
KnowBe4 MCP Server
An MCP server for the KnowBe4 Reporting API (v1), the security awareness training platform MSPs use to phish-test and train their clients' users. It lets an AI agent read the account and risk scores, users and groups, phishing campaigns with their security tests and per-recipient results, training campaigns and enrollments, purchased content and policies, and summaries across them. The API is read-only, so every tool is too.
Transport: MCP Streamable HTTP at
POST /mcp, health probe atGET /healthStateless and multi-tenant: credentials arrive on every request as HTTP headers and are never stored; every tool is listed from the first
tools/listPython 3.12, uv, FastMCP, httpx
License: Apache-2.0, Copyright 2026 MSPbots.ai
Authentication headers
Header | Required | Type | Default | Allowed values | Description | Example |
| Yes | string | none | - | Reporting API key |
|
| No | string |
|
| Server hosting the account |
|
Where to get them: generate the key in the KnowBe4 console's Reporting API management page (User
Event API keys are different and do not work here). The region is the server the console runs on:
training.knowbe4.com is us, eu.knowbe4.com is eu, and so on.
How the key is sent: every call goes to https://{region}.api.knowbe4.com/v1/... with
Authorization: Bearer <key>.
A request to /mcp without the key gets HTTP 401; an unknown region gets HTTP 400.
Related MCP server: Inforcer MCP Server
Tools
All tools return a JSON string. Lists take page (from 1) and per_page (max 500) and return
{count, page, has_more, next_page}.
Area | Tools |
Overview |
|
Account |
|
Users |
|
Groups |
|
Phishing |
|
Training |
|
Reporting |
|
Errors come back as a JSON envelope instead of an exception:
{"error": {"code": "unauthorized", "message": "KnowBe4 returned HTTP 401 for v1/users", "retryable": false}}code is one of not_configured, unauthorized, not_found, invalid_argument,
rate_limited, upstream_error. Requests are retried with backoff on 429, 5xx and network
errors. KnowBe4 allows 2,000 calls per day plus one per licensed user, at most 4 per second and
50 per minute in bursts.
Run locally
uv sync
uv run python -m knowbe4_mcp # listens on 0.0.0.0:8080or with Docker:
docker build --platform linux/amd64 -t knowbe4-mcp:dev .
docker run --rm -p 8080:8080 knowbe4-mcp:devConfiguration (environment variables, all optional): MCP_HTTP_HOST (default 0.0.0.0),
MCP_HTTP_PORT (default 8080), LOG_LEVEL (default INFO). Credentials are never read
from the environment.
Testing example
# list tools
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-KnowBe4-API-Key: your-api-key" \
-H "X-KnowBe4-Region: us" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
# phishing results across all security tests
curl -s http://localhost:8080/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-KnowBe4-API-Key: your-api-key" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"knowbe4_reporting_phishing_summary","arguments":{}}}'Unit tests (no network access needed):
uv run pytestDelivery notes
Tool count (30). Kept as is because the tool names are an existing contract; every earlier parameter is still accepted. (The optional "lazy loading" meta-tools of older versions, off by default, are not included: every tool is listed directly.)
API source. The official OpenAPI document behind KnowBe4's developer portal (
https://developer.knowbe4.com/elvis-swagger.yml, Reporting API).Routes fixed. Store purchases are
/v1/training/store_purchasesand policies/v1/training/policies; older versions called/v1/store/purchasesand/v1/policies.New optional parameters from the official API:
fullon the risk score histories,expand_groupson users,campaign_type: callbackon the phishing tests, and the user / campaign / content / archived filters on enrollments.Summaries cover everything by default. The phishing and training summaries read every page (up to 2,000 records) unless
page/per_pageis passed; older versions summarised only the first page.Paging. KnowBe4 announced that the
pageparameter will be retired in November 2026 in favour of cursor paging; the tools still usepagetoday, as the published reference does.Not included: the user "card" UI resource of older versions (an MCP Apps HTML view); the tools return the same data as JSON.
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Assess AI-discovery readiness, plan visibility fixes, and summarize scan evidence. Read-only.
Read-only access to your MetaTrader 4 and 5 accounts for AI agents: balances, open positions, trade history with win rate, live quotes, symbol specs and candles. It cannot place, modify or close orders.
CTEM for your Trusteed tenant: security summary, findings, compliance gaps, and scans via OAuth.
Read-only Google Search Console and Google Analytics for AI agents.
Related MCP Servers
- AlicenseBqualityCmaintenanceEnables AI assistants to interact with KnowBe4 security awareness training data via the KnowBe4 Reporting REST API.2411 npm5MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read managed Microsoft 365 client tenants, baselines, alignment scores, policies, Secure Score, Entra users/groups/roles, and audit activity, and on explicit request run assessments and queue reports. Access is read-only apart from those two run tools, which never modify tenant policies.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to read Microsoft 365 backup data through the Spanning API on a read-only basis, covering which users are licensed for backup, per-user and per-service daily backup results, and tenant license usage. Runs as a stateless, multi-tenant MCP Streamable HTTP endpoint where credentials arrive as per-request headers and are never stored.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to ask Purple AI hunting questions, run PowerQueries over the Singularity Data Lake, and read alerts, vulnerabilities, misconfigurations and asset inventory from a SentinelOne console, plus VirusTotal and public CVE lookups. It is read-only and accepts per-request console credentials, making it stateless and multi-tenant.Apache 2.0