mcpServer

Creates an MCP (Model Context Protocol) server that exposes CFC methods as tools, along with prompts and resources, to MCP clients.

mcpServer(config) → returns any

This function requires Adobe ColdFusion 2025.0.8 and up.  Not supported on Lucee, etc.

Argument Reference

config struct
Required

Struct with serverInfo and capabilities (required), plus optional tools (array of CFCs), prompts, resources and cfcCaching.

Examples
Sample code invoking the mcpServer function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub