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
Testing
Method 1: Automated Test Script (Recommended)
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
- Make sure your
~/.cursor/mcp.jsonincludes:
{
"mcpServers": {
"quick-demo": {
"command": "node",
"args": ["/Users/hmitra/Desktop/mcp/index.js"]
}
}
}
- Restart Cursor
- 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 implementationtest.js- Automated test scripttest-mcp.sh- Manual test helper scriptpackage.json- Node.js dependencies
Requirements
- Node.js v18 or higher
@modelcontextprotocol/sdkpackage (already installed)












