Bun SSE Transport for MCP
Provides a Bun-specific implementation of Server-Sent Events (SSE) transport for MCP servers, leveraging Bun's runtime and streaming capabilities for efficient real-time communication between server and client.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Bun SSE Transport for MCPstart a real-time chat session on port 8080"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bun-mcp-sse-transport
A Server-Sent Events (SSE) transport implementation for the Model Context Protocol (MCP) using Bun.
Overview
This package provides a Bun-specific implementation of SSE transport for MCP servers. It enables real-time, one-way communication from server to client using the SSE protocol, with client-to-server communication handled via HTTP POST requests.
Related MCP server: MCP Server with SSE and Bearer Authentication
Key Features
Built specifically for Bun runtime
Implements the MCP transport interface
Manages SSE connections with proper headers
Handles incoming JSON-RPC messages
Simple integration with Bun.serve
Quick Usage
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { BunSSEServerTransport } from "bun-mcp-sse-transport";
// Create SSE transport
const transport = new BunSSEServerTransport("/messages");
// Connect to MCP server
const server = new McpServer({ name: "MyServer", version: "1.0.0" });
server.connect(transport);
// Set up Bun HTTP server
Bun.serve({
port: 3000,
routes: {
"/sse": () => transport.createResponse(),
"/messages": (req) => transport.handlePostMessage(req)
}
});How It Works
When a client connects to
/sse, the server creates an SSE connectionThe server sends the endpoint URL where the client should POST messages
The client sends JSON-RPC messages to the endpoint URL
The server receives these messages and passes them to the MCP server
The MCP server processes the messages and sends responses via the SSE connection
This implementation follows the MCP standard while leveraging Bun's streaming capabilities for efficient real-time communication.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
Alicense-qualityDmaintenanceImplements a Model Context Protocol server using Server-Sent Events for real-time communication with OAuth 2.1 integration via Ory Network, enabling secure AI model communication with authentication and client management.Apache 2.0- -license-quality-maintenanceA TypeScript implementation of a Model Context Protocol server that uses Server-Sent Events for real-time communication and Bearer Token authentication to enable secure interaction with LLM clients like Claude Desktop.
- -license-quality-maintenanceA TypeScript implementation of a Model Context Protocol server that enables real-time communication with LLM clients using Server-Sent Events (SSE) for transport and Bearer Token authentication for security.
- Flicense-quality-maintenanceA Model Context Protocol (MCP) server implementation that uses Server-Sent Events (SSE) to enable real-time, server-pushed updates between AI models and tools over HTTP connections.1
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP (Model Context Protocol) server for Appwrite
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tigranbs/bun-mcp-sse-transport'
If you have feedback or need assistance with the MCP directory API, please join our Discord server