mcpcfc

A Remote Model Context Protocol (MCP) server for ColdFusion, enabling CFML applications to connect with Claude and other AI assistants.

GitHub Stars

2

User Rating

Not Rated

Forks

0

Issues

0

Views

0

Favorites

0

README
πŸš€ MCPCFC - ColdFusion MCP Server

-Bring AI Superpowers to Your ColdFusion Applications

The world's first Model Context Protocol (MCP) server for ColdFusion!

License: MIT ColdFusion 2016+ Lucee 5+ Status: Working Claude Desktop: Working

Get Started β†’ | View Demo | Documentation


πŸŽ‰ NEW: Version 1.0.3 - All 8 tools working perfectly with Claude Desktop! See what's new β†’


🌟 What is MCPCFC?

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!

🎯 Perfect For
  • Government Agencies - Modernize legacy CF systems with AI capabilities
  • Enterprise Teams - Add AI features without replacing existing infrastructure
  • CF Developers - Build the next generation of intelligent applications
  • Digital Transformation - Bridge the gap between legacy and cutting-edge tech

⚑ Features at a Glance
πŸ› οΈ 8 Production-Ready 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

πŸ”§ Technical Excellence

βœ… 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


πŸš€ Quick Start
Option 1: Browser Testing (5 minutes)
# 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!
Option 2: Claude Desktop Integration (10 minutes)
  1. Install MCPCFC in your CF webroot

  2. Make bridge executable: chmod +x cf-mcp-clean-bridge.sh

  3. Add to Claude Desktop config:

    {
    "mcpServers": {
       "coldfusion-mcp": {
          "command": "/path/to/mcpcfc/cf-mcp-clean-bridge.sh"
       }
    }
    }
    
  4. Restart Claude Desktop - Your CF tools are now available!

πŸ“š Full Setup Guide β†’


🎬 See It In Action
Working Tools Demo
πŸ€– 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*
Live Example
// 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"

πŸ“Š Why MCPCFC?
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

πŸ—οΈ Architecture
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Claude    │────▢│    MCPCFC    │────▢│ Your CF App β”‚
β”‚  Desktop    │◀────│  MCP Server  │◀────│   & Tools   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
       ↓                    ↓                     ↓
   AI Assistant      JSON-RPC 2.0          PDF, Email,
                    + SSE Transport          Database
Directory Structure
/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!

πŸ”§ Available Tools
Current Tools (v1.0.3)
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
Adding Custom Tools
// 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);

πŸ›‘οΈ Security & Configuration
Database Security
  • Only SELECT queries allowed by default
  • Parameterized queries prevent SQL injection
  • Configure datasources in your tool implementations
Recommended Settings
  • Add authentication layer
  • Implement rate limiting
  • Use environment variables for sensitive data
  • Enable audit logging

🀝 Contributing

We need your help to make MCPCFC even better!

How to Contribute
  1. Star the repo - Help others discover MCPCFC
  2. Report issues - Found a bug? Let us know!
  3. Submit PRs - Add features or fix issues
  4. Share your use cases - Tell us how you're using it
  5. Write documentation - Help others get started

Contributing Guide β†’

Roadmap
  • Authentication providers (OAuth, SAML)
  • More tool templates (Excel, FTP, SOAP)
  • WebSocket transport option
  • Docker container support
  • Tool marketplace

πŸ“š Resources
Community

πŸ™ Acknowledgments
  • Anthropic - For creating the Model Context Protocol
  • The ColdFusion Community - For keeping CF alive and thriving
  • Early Adopters - For testing and providing feedback
  • You - For being part of this journey!

πŸ“„ License

MCPCFC is open source software licensed under the MIT License.


πŸš€ Ready to Get Started?
Download MCPCFC | View on GitHub | Read the Docs
Show Your Support

If MCPCFC helps your project, please consider:

  • ⭐ Starring the repository
  • πŸ“’ Sharing with your network
  • 🀝 Contributing to the project

CFLOVE

-Made with ❀️ for the ColdFusion community

🌐 mcpcfc.dev | πŸ“§ hello@mcpcfc.dev

Author Information
Reverend Smoke
TPGArchitecture/Archinet

1

Followers

19

Repositories

5

Gists

32

Total Contributions

Top Contributors

Threads