This is the enhanced CF2023 edition of MCPCFC, leveraging Adobe ColdFusion 2023βs capabilities to provide:
The REPL tools now include comprehensive security filtering:
\b word boundaries to prevent partial matches.class(, .getClass(, classloader patternsfileread, filewrite, cffile, etc.cfexecute, runtime.exec, processbuildercfhttp, cfmail, cfsocketcfquery, queryexecute, cfstoredprocapplication., server., session.objectload, objectsave (RCE vectors)mcpcfc_dshttp://localhost:8500/mcpcfc/database-setup.cfm to create tables:
tools - Tool registrytool_executions - Execution logging with success/error trackingexample_data - Sample data for testingtool-dashboard.cfm)
tool-dashboard-simple.cfm)
tool-log-cleanup.cfmClone the repository:
git clone https://github.com/revsmoke/mcpcfc.git
cd mcpcfc
mcpcfc_dbmcpcfc_ds in CF Adminhttp://localhost:8500/mcpcfc/database-setup.cfmConfigure Claude Desktop:
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"coldfusion-mcp": {
"command": "/path/to/mcpcfc/cf-mcp-cf2023-cli.sh"
}
}
}
hello - Connection testsendEmail - Plain text emailssendHTMLEmail - HTML emailsvalidateEmailAddress - Email validationqueryDatabase - Database queriesgeneratePDF - PDF generationextractPDFText - PDF text extractionmergePDFs - PDF merging
executeCode - Execute CFML with isolationevaluateExpression - Evaluate expressionstestSnippet - Run code with assertionsinspectVariable - Debug variables
serverStatus - Server informationconfigManager - Configuration managementlogStreamer - Log file accessclearCache - Cache management
packageInstaller - Install packagespackageList - List packagespackageSearch - Search ForgeBoxpackageUpdate - Update packagespackageRemove - Remove packagesmoduleManager - ColdBox modules
codeFormatter - Format CFML codecodeLinter - Code analysistestRunner - Run testsgenerateDocs - Generate documentationwatchFiles - File monitoringgitOperations - Git integration/mcpcfc/
βββ Application.cfc # Main application config with tool registration
βββ components/ # Core MCP components
β βββ JSONRPCProcessor.cfc # Protocol handler
β βββ SessionManager.cfc # Session management
β βββ ToolHandler.cfc # Tool execution with logging
β βββ ToolRegistry.cfc # Tool registration
βββ clitools/ # CF2023 CLI tools
β βββ REPLTool.cfc # REPL with enhanced security
β βββ ServerManagementTool.cfc # Server management
β βββ PackageManagerTool.cfc # Package management
β βββ DevWorkflowTool.cfc # Development workflow
βββ endpoints/ # HTTP/SSE endpoints
β βββ sse.cfm # SSE transport
β βββ messages.cfm # HTTP message handler
βββ tools/ # Original 8 tools
βββ cli-bridge/ # Bridge scripts
β βββ cf-mcp-cf2023-cli.sh # CF2023 CLI bridge
βββ client-examples/ # Test clients
βββ database-setup.cfm # Database initialization
βββ tool-dashboard.cfm # Full monitoring dashboard
βββ tool-dashboard-simple.cfm # Simple dashboard
βββ tool-log-cleanup.cfm # Log management
isCodeSafe() function with 80+ dangerous patternsshellEscape() function implementationWe welcome contributions! Areas of interest:
Elevating ColdFusion development with modern AI integration!
-Bring AI Superpowers to Your ColdFusion Applications
The worldβs first Model Context Protocol (MCP) server for ColdFusion!
| Get Started β | View Demo | Documentation |
π NEW: Version 1.0.3 - All 8 tools working perfectly with Claude Desktop! See whatβs new β
MCPCFC enables ColdFusion applications to serve as tool providers for AI assistants like Claude, ChatGPT, and other LLMs through the standardized Model Context Protocol.
In simple terms: Your ColdFusion apps can now talk to AI, and AI can use your CF tools!
β
PDF Operations - Generate, extract text, and merge PDFs
β
Email Automation - Send HTML/plain emails, validate addresses
β
Database Queries - Natural language database interactions
β
Extensible Design - Easy to add your own tools
β
JSON-RPC 2.0 Protocol - Industry-standard communication
β
Real-time SSE Support - Live updates and streaming
β
Thread-Safe Design - Production-ready architecture
β
Claude Desktop Ready - Works out of the box
# Clone the repository
git clone https://github.com/revsmoke/mcpcfc.git
# Place in your ColdFusion webroot
# Navigate to http://localhost:8500/mcpcfc/
# Open the test client and start using AI tools!
chmod +x cf-mcp-clean-bridge.shAdd to Claude Desktop config:
{
"mcpServers": {
"coldfusion-mcp": {
"command": "/path/to/mcpcfc/cf-mcp-clean-bridge.sh"
}
}
}
π€ Claude: "Generate a PDF invoice for customer John Doe"
π MCPCFC: *Creates PDF with CF's built-in PDF tools*
π€ Claude: "Email it to john@example.com"
π§ MCPCFC: *Sends email with the PDF attached*
π€ Claude: "Show me all customers from the database"
ποΈ MCPCFC: *Queries your CF datasource and returns results*
// Your existing CF code
component {
function generateReport(customerId) {
// Your business logic here
}
}
// Now accessible to AI assistants!
// Claude can call: "Generate a report for customer 123"
| Challenge | MCPCFC Solution |
|---|---|
| Legacy CF systems canβt use modern AI | β Bridge CF to any AI assistant |
| Complex integration requirements | β Drop-in solution, minimal setup |
| Security concerns | β Built-in controls and query limits |
| Limited CF community tools | β Open source and extensible |
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β Claude ββββββΆβ MCPCFC ββββββΆβ Your CF App β
β Desktop βββββββ MCP Server βββββββ & Tools β
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β β β
AI Assistant JSON-RPC 2.0 PDF, Email,
+ SSE Transport Database
/mcpcfc/
βββ Application.cfc # Application configuration
βββ /components/ # Core MCP components
βββ /endpoints/ # HTTP/SSE endpoints
βββ /tools/ # Tool implementations
βββ /client-examples/ # Test clients
βββ cf-mcp-clean-bridge.sh # Claude Desktop bridge
βββ README.md # You are here!
| Tool | Description | Status |
|---|---|---|
| hello | Simple greeting tool | β Working |
| queryDatabase | Execute SELECT queries | β Working |
| generatePDF | Create PDFs from HTML | β Working |
| extractPDFText | Extract text from PDFs | β Working |
| mergePDFs | Combine multiple PDFs | β Working |
| sendEmail | Send plain text emails | β Working |
| sendHTMLEmail | Send HTML emails | β Working |
| validateEmailAddress | Validate email format | β Working |
// 1. Register in Application.cfc
application.toolRegistry.registerTool("myTool", {
"description": "My custom tool",
"inputSchema": {
"type": "object",
"properties": {
"param1": {"type": "string"}
}
}
});
// 2. Implement in ToolHandler.cfc
case "myTool":
return executeMyTool(arguments.args);
We need your help to make MCPCFC even better!
MCPCFC is open source software licensed under the MIT License.
If MCPCFC helps your project, please consider:
-Made with β€οΈ for the ColdFusion community
| π mcpcfc.dev | π§ hello@mcpcfc.dev |