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

MCP

Consume tools from any MCP server, expose your own tools as an MCP server, and give agents live access to a running BoxLang runtime.

The Model Context Protocol (MCP) is an open standard that lets AI applications connect to tools, resources, and prompts. BoxLang AI supports it in both directions.

📥 MCP Client: Consume Tools

Connect to any MCP server and call its tools:

client = MCP( "http://localhost:3000" )

result = client.send( "searchDocs", {
    query: "BoxLang syntax",
    limit: 10
} )

if ( result.getSuccess() ) {
    println( result.getData() )
}

Or seed an agent with an MCP server's tools:

📤 MCP Server: Expose Your Tools

Register tools when your application starts:

The module provides an HTTP endpoint, so any MCP client can list and call your tools:

Servers can also register resources and prompts, discover tools from annotations, run over HTTP or STDIO, and be built as classes.

🔍 Live BoxLang Runtime Introspection With bx-mcp

The free-to-use, proprietary bx-mcp module is a ready-made MCP server for a running BoxLang runtime. It requires bx-ai. Agents and monitoring tools can inspect JVM health, caches, datasources, HTTP traffic, schedulers, and modules, with bearer tokens, security profiles, and IP allowlists for governance.

See the [BoxLang MCP setup guide](../getting-started/agentic-development/boxlang-mcp.md) for installation and agent configuration.

🧱 ColdBox

ColdBox routes can expose agents and MCP servers directly with toAi() and toMCP(), and the cbMCP module lets agents introspect a running ColdBox application. See Agentic MVC with ColdBox.

🔍 Go Deeper

Last updated

Was this helpful?