MCP WebSocket Server logo

MCP WebSocket Server

by virajsharma2000

This project implements an MCP server with WebSocket enhancements, allowing real-time data updates. Clients can make standard MCP requests and subscribe to WebSocket-based push notifications.

View on GitHub

Last updated: N/A

What is MCP WebSocket Server?

This is an MCP (Model Context Protocol) server enhanced with WebSocket functionality. It provides a standard MCP interface alongside real-time data updates via WebSockets.

How to use MCP WebSocket Server?

First, clone the repository and install the dependencies using pip. Then, run python server.py to start the server. MCP clients can send requests to http://localhost:8080, while WebSocket clients can connect to ws://localhost:8765 and subscribe to updates by sending {"action": "subscribe"}.

Key features of MCP WebSocket Server

  • MCP Server (Port 8080)

  • WebSocket Server (Port 8765)

  • Push Notifications

  • Async Architecture

Use cases of MCP WebSocket Server

  • Real-time data dashboards

  • Live monitoring systems

  • Interactive applications requiring immediate updates

  • Any application using MCP that benefits from push notifications

FAQ from MCP WebSocket Server

What is MCP?

MCP stands for Model Context Protocol. It's a protocol for exchanging data between systems.

What is the WebSocket port?

The WebSocket server listens on port 8765.

What is the MCP port?

The MCP server listens on port 8080.

How do I subscribe to updates?

Connect to the WebSocket server and send the JSON payload {"action": "subscribe"}.

How do I contribute to the project?

Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.