
MCP-websocket
Ce serveur implémente un serveur MCP (Protocole de contexte de modèle) avec des améliorations WebSocket pour les mises à jour de données en temps réel.
1
Github Watches
1
Github Forks
12
Github Stars
MCP WebSocket Server
This project implements an MCP (Model Context Protocol) server with WebSocket enhancements for real-time data updates. It allows clients to make standard MCP requests while also enabling WebSocket-based subscriptions to receive push notifications when new data becomes available.
Features
- MCP Server (Port 8080): Handles standard MCP requests from clients.
- WebSocket Server (Port 8765): Allows clients to subscribe for real-time updates.
- Push Notifications: Sends updates to all subscribed clients when new data is available.
-
Async Architecture: Uses
asyncio
for efficient non-blocking operations.
Installation
- Clone this repository:
git clone https://github.com/your-repo/mcp-websocket-server.git cd mcp-websocket-server
- Install dependencies:
pip install websockets mcp-sdk # Replace with actual MCP SDK package name
Usage
Start the Server
Run the following command to start both the MCP and WebSocket servers:
python server.py
Connecting via WebSockets
Clients can connect to the WebSocket server (ws://localhost:8765
) and subscribe to updates by sending:
{"action": "subscribe"}
Sending MCP Requests
MCP clients can send requests to the MCP server at http://localhost:8080
with a payload like:
{"method": "get_data"}
The server will respond with:
{"result": "Here is your data!"}
License
This project is licensed under the MIT License.
Contributing
Pull requests are welcome! For major changes, please open an issue first to discuss what you’d like to change.
Contact
For questions or suggestions, reach out via [virajsharma@sharmaviraj.com].
mcp-websocket
This server implements an MCP (Model Context Protocol) server with WebSocket enhancements for real-time data updates.
相关推荐
I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.
I find academic articles and books for research and literature reviews.
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Emulating Dr. Jordan B. Peterson's style in providing life advice and insights.
Advanced software engineer GPT that excels through nailing the basics.
Your go-to expert in the Rust ecosystem, specializing in precise code interpretation, up-to-date crate version checking, and in-depth source code analysis. I offer accurate, context-aware insights for all your Rust programming questions.
Découvrez la collection la plus complète et la plus à jour de serveurs MCP sur le marché. Ce référentiel sert de centre centralisé, offrant un vaste catalogue de serveurs MCP open-source et propriétaires, avec des fonctionnalités, des liens de documentation et des contributeurs.
L'application tout-en-un desktop et Docker AI avec chiffon intégré, agents AI, constructeur d'agent sans code, compatibilité MCP, etc.
Manipulation basée sur Micropython I2C de l'exposition GPIO de la série MCP, dérivée d'Adafruit_MCP230XX
Plateforme d'automatisation de workflow à code équitable avec des capacités d'IA natives. Combinez le bâtiment visuel avec du code personnalisé, de l'auto-hôte ou du cloud, 400+ intégrations.
🧑🚀 全世界最好的 LLM 资料总结 (数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Résumé des meilleures ressources LLM du monde.
Une liste organisée des serveurs de protocole de contexte de modèle (MCP)
Reviews

user_tXFXzJSn
I recently started using mcp-websocket by virajsharma2000, and it has significantly improved my web application's real-time communication capabilities. It's lightweight and easy to integrate, making it perfect for any project. The comprehensive documentation and user-friendly welcome message further enhanced my experience. Highly recommend checking it out: https://github.com/virajsharma2000/mcp-websocket