drio
Open app

MCP WebSocket Server

Source

This server implements an MCP (Model Context Protocol) server with WebSocket enhancements for real-time data updates.

Catalog onlyCatalog onlySTDIO

Overview

MCP WebSocket Server is a server implementation of the Model Context Protocol (MCP) that enhances real-time data updates through WebSocket connections.

To use the MCP WebSocket Server, clone the repository, install the necessary dependencies, and run the server. Clients can connect to the WebSocket server to receive real-time updates and send MCP requests for data.

  • 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: Utilizes asyncio for efficient non-blocking operations.
  1. Real-time data streaming for applications.
  2. Notifications for data changes in collaborative environments.
  3. Integration with other services that require immediate data updates.

Add to your AI client

Use these steps to connect MCP WebSocket Server 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-websocket-virajsharma2000": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-websocket-virajsharma2000"
      ]
    }
  }
}

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-websocket-virajsharma2000": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-websocket-virajsharma2000"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "mcp-websocket-virajsharma2000": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-websocket-virajsharma2000"
      ]
    }
  }
}

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-websocket-virajsharma2000": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-websocket-virajsharma2000"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "mcp-websocket-virajsharma2000": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-websocket-virajsharma2000"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "mcp-websocket-virajsharma2000": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-mcp-websocket-virajsharma2000"
      ]
    }
  }
}

FAQ

How do I start the server?

Run `python server.py` after cloning the repository and installing dependencies.

What ports does the server use?

The MCP server runs on port 8080 and the WebSocket server on port 8765.

Can I contribute to this project?

Yes! Pull requests are welcome, and you can open an issue to discuss major changes.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2008,"uuid":"9f5aff9f-d5cc-457f-883d-b9551078e0d5","name":"mcp-websocket","title":"MCP WebSocket Server","description":"This server implements an MCP (Model Context Protocol) server with WebSocket enhancements for real-time data updates.","avatar_url":"https://avatars.githubusercontent.com/u/86789278?v=4","created_at":"2025-03-05T07:50:51.516Z","updated_at":"2025-03-12T10:18:20.236Z","status":"created","author_name":"virajsharma2000","author_avatar_url":"https://avatars.githubusercontent.com/u/86789278?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/virajsharma2000/mcp-websocket","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"7\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-26 00:47:46\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]