MCPheonix is an Elixir Phoenix-based server implementing the Model Context Protocol for AI model interaction, featuring real-time notifications, a resource system, and a self-healing distributed architecture using Cloudflare.
A simplified implementation of the Model Context Protocol (MCP) server using Elixir's Phoenix Framework.
MCPheonix is an intelligent, self-healing, distributed AI event system leveraging the Model Context Protocol and Elixir's Phoenix Framework. It offers a server that implements the MCP, enabling AI models to interact with application data and functionality through a unified interface.
MCPheonix utilizes Cloudflare Durable Objects and Workers for a resilient architecture. Durable Objects maintain state consistency across failures, while edge distribution ensures availability. Automatic recovery recreates instances with consistent state, and WebSocket support enables real-time coordination. The event-driven architecture allows self-healing and adaptation.
Requires Elixir 1.14+, Erlang 25+, Phoenix 1.7.0+, Python 3.9+, Node.js 18+, and a Cloudflare account. Installation involves cloning the repository, installing dependencies, configuring Cloudflare, Flux, and Dart integrations, and starting the server using mix phx.server
. Custom MCP servers can be integrated using JSON configuration.
GET /mcp/stream
for real-time notifications.POST /mcp/rpc
for JSON-RPC 2.0 requests.jmanhype/MCPhoenix
March 9, 2025
March 23, 2025
Elixir