Skip to main content

Official MCP server for Automox

Project description

Automox MCP Server

CI Security Scans Publish Release PyPI version

The official MCP server for Automox. Talk to your Automox console using natural language — this MCP server connects AI assistants like Claude to your Automox environment so you can manage devices, check compliance, run policies, and more, just by asking.

You:   "Are we ready for Patch Tuesday?"
Claude: Here's your readiness summary — 3 devices need patches,
        2 approvals are pending, and your patch policies run tonight at 2 AM...

[!IMPORTANT] Contributions, bug reports, and feature requests are welcome via GitHub Issues and the Automox Community.

[!CAUTION] AI assistants can make mistakes. Data produced by the MCP server may be incorrect or incomplete. If you see this happening consistently, please open an issue.

Quick Start

1. Get your Automox credentials

You need three values from the Automox Console:

Value Where to find it
API Key Settings > Secrets & Keys > Add API Key (docs)
Account UUID Settings > Secrets & Keys (shown on the page)
Org ID The numeric ID in the URL when viewing your organization

Both global and org-scoped API keys work. API Key and Account UUID are always required. Org ID is recommended but optional — some tools that don't require org context will work without it.

2. Create a .env file

AUTOMOX_API_KEY=your-api-key
AUTOMOX_ACCOUNT_UUID=your-account-uuid
AUTOMOX_ORG_ID=your-org-id

3. Connect to your AI assistant

Claude Desktop (recommended) — one-click MCPB install:

  1. Download the latest automox-mcp-<version>.mcpb from the GitHub Releases page.
  2. Open Claude Desktop → Settings → Extensions.
  3. Drag the .mcpb file into the Extensions window.
  4. Paste your API key, Account UUID, and (optionally) Org ID into the prompts.

No .env file, no terminal — credentials are stored in Claude Desktop's secure config. The bundle pulls the matching automox-mcp release from PyPI on first run.

Claude Code (CLI):

claude mcp add automox-mcp uvx -- --env-file /path/to/.env automox-mcp

Cursor / any other MCP client — add to your MCP config:

{
  "mcpServers": {
    "automox-mcp": {
      "command": "uvx",
      "args": ["--env-file", "/path/to/.env", "automox-mcp"]
    }
  }
}

That's it. Start asking questions.

What Can I Ask?

The server exposes 79 tools across devices, policies, patches, groups, webhooks, worklets, vulnerability sync, maintenance windows, and more. You don't need to know the tool names — just describe what you want:

Ask this What happens
"Are we ready for Patch Tuesday?" Checks pending patches, approvals, and policy schedules
"What is our compliance posture?" Returns compliance rates, non-compliant devices, and health breakdown
"Give me the full profile for the Caldera server" Combines device details, inventory, packages, and policy status
"What devices need attention?" Surfaces devices flagged for immediate action
"Reboot the device 'Testing box'" Searches for the device and issues a reboot command
"Create a patch policy for Firefox targeting the 'MCP testing' group" Creates the policy with sensible defaults
"What did Mark Hansen do in Automox last week?" Queries the audit trail across the date range
"Find all Windows devices not seen in 30 days" Uses advanced device search with structured queries
"Show me vulnerability remediation status" Lists action sets with issues, solutions, and progress
"Search the worklet catalog for USB security" Browses community worklets with evaluation/remediation code

For the full list of tools, parameters, and MCP resources, see the Tool Reference.

Tip: You can also ask the server itself — the discover_capabilities tool returns all available tools organized by domain.

Configuration

Environment Variables

Variable Required Default Description
AUTOMOX_API_KEY Yes Automox API key
AUTOMOX_ACCOUNT_UUID Yes Account UUID from Secrets & Keys
AUTOMOX_ORG_ID Recommended Numeric organization ID (required by most tools)
AUTOMOX_MCP_READ_ONLY No false Disable all write operations (57 of 79 tools remain)
AUTOMOX_MCP_MODULES No all Comma-separated list of modules to load (see below)
AUTOMOX_MCP_TOKEN_BUDGET No 4000 Max estimated tokens per response before truncation
AUTOMOX_MCP_SANITIZE_RESPONSES No true Sanitize API data to mitigate prompt injection
AUTOMOX_MCP_TOOL_PREFIX No Prefix all tool names (e.g., automox) to prevent cross-server collisions
AUTOMOX_MCP_LOG_FORMAT No text Log format: text or json (structured JSON for SIEM integration)
AUTOMOX_MCP_TRANSPORT No stdio Transport: stdio, http, sse, or streamable-http
AUTOMOX_MCP_HOST No 127.0.0.1 Bind address for HTTP/SSE
AUTOMOX_MCP_PORT No 8000 Bind port for HTTP/SSE
AUTOMOX_MCP_API_KEYS No Comma-separated MCP endpoint API keys for HTTP/SSE Bearer-token auth (e.g., key1,label:key2)
AUTOMOX_MCP_API_KEY_FILE No Path to a file containing MCP endpoint API keys (one per line)
AUTOMOX_MCP_OAUTH_ISSUER No OIDC issuer URL for JWT auth (e.g., https://auth.example.com/realms/main)
AUTOMOX_MCP_OAUTH_JWKS_URI No JWKS endpoint for JWT key rotation (auto-derived from issuer if omitted)
AUTOMOX_MCP_OAUTH_AUDIENCE When JWT auth Expected JWT audience claim (prevents token passthrough); required when AUTOMOX_MCP_OAUTH_ISSUER is set
AUTOMOX_MCP_OAUTH_SERVER_URL No Canonical server URL; enables RFC 9728 Protected Resource Metadata
AUTOMOX_MCP_OAUTH_SCOPES No Comma-separated required OAuth scopes
AUTOMOX_MCP_ALLOWED_ORIGINS No Extra allowed Origin headers for DNS rebinding protection (comma-separated)
AUTOMOX_MCP_ALLOWED_HOSTS No Extra allowed Host headers for DNS rebinding protection (comma-separated)
AUTOMOX_MCP_DNS_REBINDING_PROTECTION No true Set to false to disable DNS rebinding protection (not recommended)
AUTOMOX_MCP_ALLOW_REMOTE_BIND No false Allow binding to non-loopback addresses (required for 0.0.0.0 or external IPs)

Read-Only Mode

AUTOMOX_MCP_READ_ONLY=true

Disables all write operations. Only read-only tools are registered (58 of 80). Useful for auditing and monitoring.

Modular Loading

Load only the tool modules you need:

AUTOMOX_MCP_MODULES=devices,policies

Available modules: audit, audit_v2, devices, device_search, policies, policy_history, users, groups, events, reports, packages, webhooks, worklets, data_extracts, vuln_sync, compound, policy_windows

Both settings can be combined:

AUTOMOX_MCP_READ_ONLY=true
AUTOMOX_MCP_MODULES=devices,policies

HTTP Transport

For non-stdio deployments:

uvx --env-file .env automox-mcp --transport http --host 127.0.0.1 --port 8000

Endpoint Authentication

When deploying over HTTP or SSE, you can require authentication on the MCP endpoint (separate from the Automox API key). Two strategies are supported:

Static API keys (simple):

automox-mcp --generate-key                         # generate a key
export AUTOMOX_MCP_API_KEYS="amx_mcp_a1b2c3..."    # or use a key file

OAuth 2.1 / JWT (enterprise IdP integration):

export AUTOMOX_MCP_OAUTH_ISSUER="https://auth.example.com/realms/main"
export AUTOMOX_MCP_OAUTH_AUDIENCE="https://mcp.example.com"
export AUTOMOX_MCP_OAUTH_SERVER_URL="https://mcp.example.com"  # enables RFC 9728 metadata

Clients must include Authorization: Bearer <token> on every request. Unauthenticated requests receive 401 Unauthorized with proper WWW-Authenticate headers. No effect on stdio transport.

Security

The Automox MCP server is designed for enterprise deployment with defense-in-depth security controls.

Highlights:

  • Read-only mode (AUTOMOX_MCP_READ_ONLY) disables all 22 write tools
  • Module filtering (AUTOMOX_MCP_MODULES) for least-privilege tool loading
  • Correlation IDs on every tool call, forwarded to Automox API as X-Correlation-ID
  • Rate limiting (30 calls/60s) with token budget estimation and auto-truncation
  • API key isolation — stored as private attribute with per-request auth injection (no header storage)
  • Generic error responses — no internal paths, connection strings, or API keys in error output
  • Prompt injection mitigation — API response sanitization with Unicode normalization, homoglyph defense, HTML tag/script stripping, and reference-style markdown stripping
  • Webhook secret handling — secrets stripped from idempotency cache after creation
  • Structured JSON logging (AUTOMOX_MCP_LOG_FORMAT=json) for SIEM integration
  • Tool name prefixing (AUTOMOX_MCP_TOOL_PREFIX) to prevent cross-server collisions
  • Sigstore-signed releases with CycloneDX SBOM
  • SSRF prevention — webhook URLs validated against private/loopback IPs and cloud metadata endpoints
  • MCP endpoint authentication — static API keys or OAuth 2.1/JWT with audience binding and RFC 9728 Protected Resource Metadata
  • DNS rebinding protection — Origin and Host header validation on all HTTP/SSE connections per the MCP transport spec
  • Security response headersX-Content-Type-Options, X-Frame-Options, CSP, Cache-Control: no-store, Strict-Transport-Security on all HTTP responses
  • Authentication rate limiting — blocks IPs after repeated auth failures to mitigate brute-force attacks
  • Remote bind protection — non-loopback HTTP/SSE binding requires explicit --allow-remote-bind opt-in
  • MCP Tool Annotations on all 79 tools — readOnlyHint, destructiveHint, idempotentHint, and openWorldHint per the MCP Protocol specification, enabling client-side confirmation dialogs and safety guardrails
  • 60 security hardening items (V-001 through V-181, S-001 through S-006) documented in CHANGELOG and SECURITY.md

For vulnerability reporting and the full threat model, see SECURITY.md. For deployment hardening (containers, Kubernetes, MCP gateways, TLS, authentication), see the Deployment Security Guide. Security posture is benchmarked against the Wiz MCP Security Best Practices cheat sheet.

Note: For network-accessible deployments, enable endpoint authentication (static keys via AUTOMOX_MCP_API_KEYS or JWT via AUTOMOX_MCP_OAUTH_ISSUER) and/or place the server behind an MCP gateway or authenticating reverse proxy. TLS termination is the deployer's responsibility.

Privacy Policy

The Automox MCP server acts as a stateless proxy between your AI assistant and the Automox API.

Data collection: The server does not collect, store, or transmit any user data beyond what is required to fulfill API requests to the Automox platform. API credentials are read from environment variables at startup and used solely for authenticating requests to the Automox API.

Data usage: All data retrieved from the Automox API is returned directly to the AI assistant that initiated the request. The server performs response sanitization (Unicode normalization, HTML stripping) for prompt injection defense, but does not analyze, aggregate, or repurpose API data for any other purpose.

Third-party sharing: The server does not share data with any third parties. It communicates exclusively with the Automox API (console.automox.com) using the credentials you provide. No telemetry, analytics, or usage data is sent to the server authors or any other service.

Data retention: The server retains no persistent data between sessions. In-memory caches (idempotency keys, rate-limit counters) are cleared when the process exits. Structured logs, when enabled, are written to stderr and are the deployer's responsibility to manage and retain.

Alternative Installation

The Quick Start above uses uvx which requires no installation. If you prefer a persistent install:

# Using uv
uv tool install automox-mcp

# Using pip
pip install automox-mcp

Then set the environment variables in your shell and run automox-mcp.

Updating

If you already have the server installed, update to the latest version:

# uvx (Quick Start method) — force a cache refresh
uvx --refresh automox-mcp

# uv tool install
uv tool upgrade automox-mcp

# pip
pip install --upgrade automox-mcp

Note: uvx automatically refreshes its cache roughly every 7 days, so most users will pick up new releases without action. Run uvx --refresh to get the latest immediately.

Contributing

git clone https://github.com/AutomoxCommunity/automox-mcp.git
cd automox-mcp
uv python install
uv sync --python 3.13 --dev

Testing

Interactive debugging with MCP Inspector:

fastmcp dev

Run unit tests:

uv run --python 3.13 --dev pytest

Run production smoke tests (requires Automox credentials):

uv run python tests/smoke_production.py

MCP Scanner

Static analysis with Cisco's MCP Scanner:

mcp-scanner \
  --analyzers yara \
  --format summary \
  stdio \
  --stdio-command uv \
  --stdio-arg run \
  --stdio-arg automox-mcp \
  --stdio-env AUTOMOX_API_KEY=test-api-key \
  --stdio-env AUTOMOX_ACCOUNT_UUID=test-account \
  --stdio-env AUTOMOX_ORG_ID=1 \
  --stdio-env AUTOMOX_MCP_SKIP_DOTENV=1

Versioning

Follows Semantic Versioning. Update pyproject.toml, commit, tag (e.g., v0.1.0), and push — the release workflow publishes to PyPI automatically.

License

MIT License. See LICENSE.

Support

The official Automox MCP server. Support is community-driven: for questions, bugs, or feature requests, open a GitHub Issue or post in the Automox Community. This project is not covered by Automox commercial support contracts.

To report a security vulnerability, see SECURITY.md — please do not open a public issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

automox_mcp-1.0.23.tar.gz (228.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

automox_mcp-1.0.23-py3-none-any.whl (167.7 kB view details)

Uploaded Python 3

File details

Details for the file automox_mcp-1.0.23.tar.gz.

File metadata

  • Download URL: automox_mcp-1.0.23.tar.gz
  • Upload date:
  • Size: 228.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for automox_mcp-1.0.23.tar.gz
Algorithm Hash digest
SHA256 9bee7b4a56981d9218af5cc520b001555dc25e906ace18f31a36005970e4f406
MD5 34f9cfb5d8b4759ea03e52ed85e48da3
BLAKE2b-256 1b30ff9186a21f78e3b6653b57d17e85bb113a31432f23b88b26835a5e596c36

See more details on using hashes here.

Provenance

The following attestation bundles were made for automox_mcp-1.0.23.tar.gz:

Publisher: release.yml on AutomoxCommunity/automox-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file automox_mcp-1.0.23-py3-none-any.whl.

File metadata

  • Download URL: automox_mcp-1.0.23-py3-none-any.whl
  • Upload date:
  • Size: 167.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for automox_mcp-1.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 91317a74c8b848b58f057822194d4e95d5bc51de568d7f806eaa3bc9e1f1f1ad
MD5 b054a0db4aca7af8de2c67f48c432a70
BLAKE2b-256 936cdcd33d3a7c5b5cb28e3a60d2f4b02a843fd7a1754022367564ca3375d7b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for automox_mcp-1.0.23-py3-none-any.whl:

Publisher: release.yml on AutomoxCommunity/automox-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page