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

MCP Servers

The BoxLang AI Module provides a complete MCP (Model Context Protocol) server implementation that allows you to expose tools, resources, and prompts to AI clients.

What is an MCP Server?

An MCP Server is a service that exposes capabilities to AI clients using the standardized Model Context Protocol. It enables:

  • πŸ”§ Expose Tools: Register functions that AI clients can invoke

  • πŸ“š Serve Resources: Provide documents and data to AI clients

  • πŸ’¬ Offer Prompts: Define reusable prompt templates

  • 🌐 HTTP & STDIO Transports: Expose your MCP server via web or command-line

πŸ—οΈ MCP Architecture

Documentation

Topic
Description

Build your first server in 5 minutes

🌐 Transports

HTTP vs STDIO β€” choose what fits your deployment

Authentication, CORS, IP allow lists, body limits, API keys

Manual registration with inline MCPServer calls

Auto-register with @mcpTool, @mcpResource, @mcpPrompt

πŸ—οΈ Class-Based Servers

Extend MCPServer for better organization

Set up custom HTTP endpoints

Statistics, events, and real-time monitoring

⏸️ Pause & Resume

Temporarily halt servers for maintenance

Security, design patterns, production setup

Complete working code examples

Quick Start

Access at: POST http://localhost/~bxai/mcp.bxm?server=myApp

πŸ‘‰ Full Getting Started Guide β†’

External Resources

Last updated