mcp-websocket
18
The MCP WebSocket Server provides a real-time data update mechanism by combining Model Context Protocol with WebSocket capabilities. It allows for standard MCP requests and WebSocket-based push notifications for efficient data handling and distribution.
MCP WebSocket Server
This project implements a Model Context Protocol (MCP) server enhanced with WebSocket capabilities for real-time data updates. It features:
- MCP Server on port 8080 for standard requests.
- WebSocket Server on port 8765 for real-time data subscriptions.
- Push notifications for subscribed clients.
- Efficient, non-blocking async architecture using
asyncio
.
Installation
- Clone the repository.
- Install required dependencies.
Usage
- Start the Server: Enable both MCP and WebSocket servers.
- Use WebSockets for real-time connections on
ws://localhost:8765
. - Send MCP requests to
http://localhost:8080
for data transactions.