Skip to main content
Glama
srogouski

MCP Server Demo

by srogouski

MCP Server Demo

Quick demo to show the local MCP client/server example.

Prerequisites

  • Node.js (16+)

Install (if you haven't already):

npm install

Run the demo (spawns multiple clients):

npm run demo

Or run a single client with a custom name:

node client.js Stephen

What it does

  • server.js is a minimal newline-delimited JSON tool server exposing say_hello.

  • client.js spawns server.js, sends { tool: 'say_hello', args: { name } }, and logs the response.

  • demo.js runs several client.js instances concurrently to showcase multiple requests and responses.

Web demo

  • Start the web demo server and open the UI in your browser:

npm run web
# then open http://localhost:3000 in a browser

The web UI lets you type a name and click "Send say_hello" to demonstrate the MCP request/response flow over WebSocket.

Calling external APIs from the server

  • You can make the server call an external HTTP API via the call_api tool.

Usage (CLI/stdin): send a request like:

{ "id": 1, "tool": "call_api", "args": { "path": "/status" } }

If EXTERNAL_API_BASE is set in the environment the path will be resolved relative to that base. Example (PowerShell):

$env:EXTERNAL_API_BASE = 'https://api.example.com'
echo '{ "id": 1, "tool": "call_api", "args": { "path": "/status" } }' | node server.js

The server will return a JSON response containing status, headers, and body (parsed JSON when possible).

Want a web-based demo or a demo that uses the installed @modelcontextprotocol/sdk transport? I can implement that next.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A minimal Model Context Protocol server demo that exposes tools through HTTP API, including greeting, weather lookup, and HTTP request capabilities. Demonstrates MCP server implementation with stdio communication and HTTP gateway functionality.
    10
    ISC
  • A
    license
    B
    quality
    D
    maintenance
    A minimal MCP server implementation demonstrating basic tool integration with example functions like greetings, version info, and system information. Supports both HTTP and stdio transports for connecting AI clients.
    3
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A minimal Model Context Protocol server that facilitates network-based client connections using Streamable HTTP transport. It provides a greeting tool and is optimized for consistent deployment across local environments, Docker, and Kubernetes.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A minimal learning-focused MCP server that demonstrates core primitives like tools and resources through simple greeting functions. It provides a foundational example for connecting AI models to external data using both Streamable HTTP and stdio transports.
    17
    MIT

Latest Blog Posts

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/srogouski/MCPServer'

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