MCP over SSE
An elixir Model Context Protocal (MCP) server library which uses the Server-Sent Events (SSE) transport type
Overview
MCP over SSE is an Elixir library that implements the Model Context Protocol (MCP) using Server-Sent Events (SSE) for real-time communication.
To use MCP over SSE, integrate it into your Phoenix or Plug application by adding the necessary configurations and dependencies, then set up your router to handle SSE connections.
- Full implementation of the Model Context Protocol (MCP) - SSE connection management for real-time updates - JSON-RPC message handling for communication - Built-in session management and error handling - Automatic keepalive pings to maintain connections
- Real-time data streaming applications
- Interactive web applications requiring live updates
- Communication between clients and servers in a structured protocol
Add to your AI client
Use these steps to connect MCP over SSE in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-sse-kend": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sse-kend"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-sse-kend": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sse-kend"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-sse-kend": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sse-kend"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-sse-kend": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sse-kend"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-sse-kend": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sse-kend"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-sse-kend": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-sse-kend"
]
}
}
}FAQ
What is the Model Context Protocol?
The Model Context Protocol is a protocol designed for structured communication between clients and servers, allowing for real-time interactions.
Is MCP over SSE suitable for production use?
Yes, MCP over SSE is designed for production environments, providing robust features for real-time applications.
How do I handle errors in MCP over SSE?
The library includes built-in error handling mechanisms to manage communication issues effectively.