Uses Express as the web framework for hosting the MCP server
Allows cloning the repository from GitHub to set up the MCP server locally
Supports deployment to Google Cloud Run with provided Docker configuration and deployment commands
MCP Server Demo (WebSocket)
A minimal MCP server implementation using WebSocket, ideal for modern integrations with tools like VSCode, Claude, etc.
🚀 Quickstart
1. Clone and install
2. Run the server
Server runs at ws://localhost:4000.
3. Test with the example client
You should see connection logs and message exchange.
Related MCP server: claude-code-mcp
📁 Project Structure
index.js: Main server (Express + WebSocket)mcp-protocol.js: MCP message validation logicclients/example-client.js: Example WebSocket clientDockerfile: For cloud deploymentpackage.json: Dependencies and scripts
🐳 Deploy to Google Cloud Run
Build and push the Docker image
Deploy using the suggested
gcloud run deploycommands
📝 References
See the accompanying article for theoretical context and use cases.
Made with ❤️ for educational purposes.