Quick Demo MCP Server
by Haimantika
README.md
# 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:
```bash
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:
```json
{
"mcpServers": {
"quick-demo": {
"command": "node",
"args": ["/Users/hmitra/Desktop/mcp/index.js"]
}
}
}
```
2. Restart Cursor
3. The MCP server tools and resources will be available in your Cursor chat
### Method 3: Manual Testing
Use the shell script for manual testing:
```bash
./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)
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues