MCP Hub
Back to servers

MCP Demo

A demonstration Model Context Protocol server that includes a web-based interface for managing persistent configurations. It provides foundational tools for greeting, echoing input, and retrieving or updating server settings through MCP.

glama
Updated
Mar 18, 2026

MCP Demo

A simple MCP (Model Context Protocol) server with a web-based configuration interface.

Features

  • MCP server with 5 tools: greet, echo, get_config, update_config, list_items
  • Web-based config UI at http://localhost:3001
  • Persistent configuration storage

Quick Start

# Install dependencies
npm install

# Start the web config server
npm run start:config

# In another terminal, start the MCP server (for testing)
npm run start

Configuration

Open http://localhost:3001 in your browser to configure:

  • Enable MCP Server: Toggle MCP functionality
  • Greeting Message: Customize the greet message (use {name} placeholder)
  • Max Results: Limit list_items output

MCP Tools

ToolDescription
greetGet a personalized greeting
echoEcho back input text
get_configView current configuration
update_configUpdate configuration via MCP
list_itemsList demo items

Usage with OpenClaw

Add to your config:

{
  "mcpServers": {
    "mcp-demo": {
      "command": "node",
      "args": ["/path/to/mcp-demo/src/index.js"]
    }
  }
}

License

MIT

Reviews

No reviews yet

Sign in to write a review