Skip to main content
Glama
Haimantika

Quick Demo MCP Server

by Haimantika

Quick Demo MCP Server

A simple Model Context Protocol (MCP) server demonstrating tools and resources.

Features

  • Tool: get_server_time - Returns the current server time

  • Resource: demo://info - Provides information about the server

Related MCP server: Echo MCP Server

Testing

Run the test script to verify all functionality:

node test.js

This will test:

  • Server initialization

  • Tool listing

  • Resource listing

  • Tool execution

  • Resource reading

Method 2: Use in Cursor

  1. Make sure your ~/.cursor/mcp.json includes:

{
  "mcpServers": {
    "quick-demo": {
      "command": "node",
      "args": ["/Users/hmitra/Desktop/mcp/index.js"]
    }
  }
}
  1. Restart Cursor

  2. The MCP server tools and resources will be available in your Cursor chat

Method 3: Manual Testing

Use the shell script for manual testing:

./test-mcp.sh | node index.js | jq

Files

  • index.js - Main MCP server implementation

  • test.js - Automated test script

  • test-mcp.sh - Manual test helper script

  • package.json - Node.js dependencies

Requirements

  • Node.js v18 or higher

  • @modelcontextprotocol/sdk package (already installed)

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    A simple demonstration MCP server that provides basic greeting functionality and server information. Enables users to generate hello messages and retrieve server details through tools and resources.
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    A simple demonstration MCP server that provides an echo tool and resource for learning how to build MCP servers. Serves as a starting point and template for creating custom MCP server implementations.
    1
    -
  • F
    license
    Not graded
    quality
    D
    maintenance
    This MCP server provides the current server time through a basic resource and tool, following the MCP Apps quickstart.
    -