| Section | Parameter | Description |
[server] | transport | "http" (recommended), "sse", or "stdio" |
host | HTTP bind address — 127.0.0.1 (localhost only) or 0.0.0.0 (all interfaces) |
port | HTTP port, 1–65535 (default: 8080) |
public_url | External URL clients use to reach the server (e.g. https://mcp.example.com:8080). Used for OAuth discovery (.well-known/oauth-protected-resource) and the Client MCP Wizard. Required when host = 0.0.0.0 and the server is behind a reverse proxy or exposed via a public DNS name — otherwise the server advertises the literal bind address and remote clients fail to follow the discovery URL. See Public URL and reverse-proxy deployments below. |
log_level | debug, info, warning, error, or critical |
log_file | Path to log file (parent directory must exist) |
auth_token | Bearer token for HTTP/SSE authentication (supports ${ENV_VAR}) |
rate_limit | Max Zabbix API calls per minute per client, counted per MCP token (or client address) since 1.42.2 (default: 300, set to 0 to disable) |
require_auth | Refuse to start over HTTP on an address other than loopback when no client authentication is configured (no token, no auth_token, no OAuth). Default false: only a warning. Also in the admin portal (Settings, TLS and access) |
tools | Filter exposed tools by category or prefix - e.g. ["monitoring", "alerts"] (default: all 255 tools) |
disabled_tools | Denylist counterpart to tools — exclude specific tool groups or prefixes |
tls_cert_file / tls_key_file | Enable native HTTPS — paths to TLS certificate and private key (see TLS / HTTPS below) |
cors_origins | List of allowed CORS origins (default: disabled) |
allowed_hosts | IP allowlist — IPs and CIDR ranges (e.g. ["10.0.0.0/24"]) |
trusted_proxies | The reverse proxies in front of the server, e.g. ["127.0.0.1"]. Only a peer listed here is believed when it sends X-Forwarded-For / -Proto / -Host; a proxy on the server's own host has to be listed too (default: none, the TCP peer is the client) |
allowed_import_dirs | Directories for source_file imports (default: disabled) |
compact_output | Return only key fields from get methods (default: true); set to false to always return all fields |
validate_get_params | Refuse a get request the method's contract says Zabbix would reject or silently ignore, with the allowed values in the message (default: true); set to false to forward every request as-is. See Common Parameters |
schema_constraints | State the same contract in the JSON Schema of tools/list: enums for sortfield / sortorder, output as extend / count or a list of the object's properties, filter / search / extra_params limited to the keys the method takes (default: true); set to false for plain string / object types, for a client that cannot digest propertyNames |
reject_unknown_arguments | Refuse a tool call that carries an argument the tool does not have, and say where the value belongs (default: true). false drops such an argument and runs the rest of the call, as before v1.42 (a misspelt filter then returns every row); only for a client that adds keys of its own to every call |
register_write_tools | Register the write tools at all (default: true). false leaves every *_create / *_update / *_delete / mass tool, action_prepare / action_confirm and zabbix_raw_api_call out of the catalog, the set a read-only token never sees. Independent of this switch, a caller whose reachable servers are all read_only does not get the write tools listed (see Token Budget) |
strip_write_params | Drop, before a create / update tool call, the keys the get tool returns but Zabbix refuses on write (read-only properties, nested row identifiers, selectXxx sub-objects), as measured per release (default: true); set to false to send the measured keys as they are. The hand-written rules described in the section below (an action's operation IDs and escalation fields, a script's or a maintenance period's fields by type, a host's select echoes, a filter's formula / formulaid) apply either way. See Read it, change one thing, write it back |
response_max_chars | Maximum characters per tool response before truncation (default: 50000, min: 5000). Increase for template export workflows: 200000 for medium templates, 500000 for large built-in templates. See Token Budget |
health_check_interval | Seconds between two background checks of every configured Zabbix server (default: 60, minimum 10, 0 = off: a server is checked when somebody asks). See Health Check |
health_check_timeout | Seconds one health check may take before the server is reported as unreachable (default: 10) |
allow_user_token | Whether any Zabbix server may take a caller's own Zabbix token (default: false). While it is false, no server takes a caller's token: one set to "allowed" behaves as "off", one set to "required" refuses its tool calls. See Calls under the caller's own Zabbix user. Since v1.46 |
audit_tool_calls | Which MCP tool calls get a row in the audit log: "writes" (default), "all" or "off". See Audit log. Since v1.46 |
usage_stats | Count requests per MCP token and tool for the Usage page (default: true). See Usage statistics |
usage_retention_days | Days the hourly request counts are kept (default: 30, 1 to 3650) |
timezone | Zone for the <field>_local output fields and for date-times sent without a zone - IANA name (Europe/London), UTC or system. Fallback for every Zabbix server; [zabbix.<name>].timezone and [tokens.<id>].timezone override it. Empty (default) = ask Zabbix. See Time zones |
[zabbix.<name>] | url | Zabbix frontend URL (must start with http:// or https://) |
api_token | API token (supports ${ENV_VAR}) — required, except on an entry with legacy_auth = true |
legacy_auth | Explicit switch for password login on Zabbix 5.0 / 5.2 only (no API tokens there). Refused against Zabbix 5.4+, refused together with api_token. Unsupported upstream release and a security risk - see Legacy auth. Default false |
username / password | Zabbix login credentials, only honoured when legacy_auth = true (supports ${ENV_VAR}) |
read_only | Block write operations (default: true) |
verify_ssl | Verify TLS certificates (default: true) |
skip_version_check | Skip zabbix-utils version compatibility check (default: false) |
user_token | Whose Zabbix identity a tool call uses: "off" (default, the shared api_token), "allowed" (the caller's own Zabbix API token from the X-Zabbix-Token header when sent) or "required" (calls without it are refused). See Calls under the caller's own Zabbix user. Since v1.46 |
timezone | Zone for this server's timestamps. Overrides [server].timezone; a token's timezone overrides this. Empty (default) = the zone Zabbix reports for the API user, then the frontend default |
[oauth] | enabled | Turn the embedded OAuth 2.1 authorization server on (default: false). Required by ChatGPT custom apps and Claude Desktop remote connectors. Login uses [admin.users.*]; needs [server].public_url. See OAuth 2.1 Authorization Server |
auth_code_ttl_seconds | Lifetime of single-use authorization codes (default: 600 = 10 min) |
access_token_ttl_seconds | Default access-token lifetime (default: 3600 = 1 h). Per-client override via [oauth_clients.<id>].access_token_ttl_seconds |
refresh_token_ttl_seconds | Default refresh-token lifetime (default: 2592000 = 30 days). Per-client override via [oauth_clients.<id>].refresh_token_ttl_seconds |
dynamic_registration_enabled | Allow RFC 7591 /register calls so clients self-register (default: true). Set false to lock down to manually pre-registered [oauth_clients.*] entries |
[oauth_clients.<id>] | scope | RFC 7591 space-separated scope cap (e.g. "monitoring extensions"). Empty = client may request any scope; consent screen still enforces the operator's role cap |
allowed_ips | Per-client IP allowlist (CIDR supported). Token rejected at /token if the client's IP is outside the list |
access_token_ttl_seconds | Override the global access-token TTL for this client only |
refresh_token_ttl_seconds | Override the global refresh-token TTL for this client only |
## Changing the configuration without a restart
Since v1.45 a change of `config.toml` is taken over by the running server. MCP sessions and client connections stay as they are, a tool call that is running finishes with the settings it started with.
**How a change gets in**
| Where the change is made | What applies it |
|---|---|
| Admin portal | Saving. The message says "In effect now, no restart needed", or names what waits for a restart |
| `config.toml` edited by hand | `sudo systemctl reload zabbix-mcp-server`, or `sudo ./deploy/install.sh reload` (checks the file first and prints what the server made of it), or "Apply now" in the portal, which notices the changed file |
| Docker | `docker compose kill -s HUP zabbix-mcp-server` |
| Anything else | `SIGHUP` to the server process |
**A save in the portal does not apply what was edited by hand.** If `config.toml` already holds changes made outside the portal that were not applied yet, a save applies nothing; it says so, and "Apply now" (or a reload) applies all of it together. A reload asked for while the server is still starting is carried out as soon as it is up.
**A file that does not load changes nothing.** The file is run through the same checks as at start. If it fails, not even its valid part is applied: the server keeps the configuration it runs with, the reason is in the log (`Configuration reload (...) failed: ...`) and in a red banner in the portal until the file is fixed. A single `[zabbix.