For the complete documentation index, see llms.txt. This page is also available as Markdown.

BoxLang MCP

Let AI agents inspect and operate a live BoxLang runtime over MCP with the free-to-use proprietary bx-mcp module.

Documentation MCP servers tell an agent what BoxLang should do. The bx-mcp module lets an agent see what your BoxLang server is actually doing. It exposes a Model Context Protocol server from a running runtime, so an agent can inspect and diagnose it directly.

✨ What an Agent Can Do

The module ships 153 tools across 17 runtime domains. Examples:

  • Runtime and JVM: version, configuration, memory, threads, GC, deadlock detection

  • Data layer: cache health, datasource pool metrics, slow SQL

  • HTTP and web: slow requests, outbound call stats, per-route metrics

  • Operations: executors, schedulers, modules, interceptors, applications, logging, file watchers

  • Health reports and incident workflows: structured snapshots and triage prompts

📦 Install

bx-module install bx-ai bx-mcp

With CommandBox:

box install bx-ai,bx-mcp

Once installed, the server is available at /~bxmcp/boxlang.bxm, for example http://localhost:8080/~bxmcp/boxlang.bxm.

🔌 Connect an Agent

VS Code, in .vscode/mcp.json:

See Client Configuration for Claude Desktop, Cursor, and curl examples.

🔐 Governance and Access Control

An agent with runtime access needs boundaries. bx-mcp provides:

  • Bearer tokens for authentication

  • Security profiles with tool allow and deny lists, including glob patterns

  • IP allowlists and CORS controls

Some tools change state, for example clearing caches, triggering GC, or reloading modules. Give agents a read-only profile unless they need more:

📚 Learn More

BxMCPSecurity & Access Control

🧱 ColdBox Applications

For a ColdBox application, the cbMCP module gives agents live application introspection such as routes, handlers, modules, and WireBox mappings. It is BoxLang only. See the ColdBox cbMCP documentation.

Last updated

Was this helpful?