Skip to main content
Glama

MCP Server Demo

by elvisleyva49

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

git clone https://github.com/tuusuario/mcp-server-demo.git cd mcp-server-demo npm install

2. Run the server

npm start

Server runs at ws://localhost:4000.

3. Test with the example client

npm run client

You should see connection logs and message exchange.


📁 Project Structure

  • index.js: Main server (Express + WebSocket)
  • mcp-protocol.js: MCP message validation logic
  • clients/example-client.js: Example WebSocket client
  • Dockerfile: For cloud deployment
  • package.json: Dependencies and scripts

🐳 Deploy to Google Cloud Run

  1. Build and push the Docker image
  2. Deploy using the suggested gcloud run deploy commands

📝 References

See the accompanying article for theoretical context and use cases.


Made with ❤️ for educational purposes.

-
security - not tested
F
license - not found
-
quality - not tested

A minimal WebSocket-based MCP server implementation that enables modern tool integrations with VSCode, Claude, and other applications.

  1. 🚀 Quickstart
    1. Clone and install
    2. Run the server
    3. Test with the example client
  2. 📁 Project Structure
    1. 🐳 Deploy to Google Cloud Run
      1. 📝 References

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          TypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics.
          Last updated -
          3
          13
          MIT License
          • Apple
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.
          Last updated -
          48
          4
          TypeScript
          • Apple
        • A
          security
          A
          license
          A
          quality
          This project aims to build a Claude Code MCP server and implement its associated tools (explain\_code, review\_code, fix\_code, edit\_code, test\_code, simulate\_command, your\_own\_query). The server is implemented using Node.js and the MCP SDK. It receives tool requests from clients via Stdio, dynamically
          Last updated -
          7
          105
          21
          JavaScript
          MIT License
          • Linux
        • -
          security
          -
          license
          -
          quality
          An MCP server that enables Claude and other MCP clients to interact with Mattermost workspaces, providing channel management, messaging capabilities, and topic monitoring functionality.
          Last updated -
          TypeScript

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/elvisleyva49/mcp-server-demo'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server