Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Demo Serverread the widget resource file"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Demo Server
A stateless HTTP Streaming server built with Model Context Protocol (MCP) and Express.
π Live Demo
Production URL: https://mcp-demo-d3cj.onrender.com/mcp
Try it now:
π Documentation
Quick Start Guide - Get started in 5 minutes
HTTP Streaming Guide - Complete HTTP Streaming Transport guide
Usage Examples - Full code examples (Node.js, Python, Browser)
Troubleshooting Guide - Common issues and solutions
Features
β Fully Stateless - Each request is processed independently
β HTTP Streaming - Standard HTTP POST-based streaming transport
β Easy to Scale - No session management, horizontally scalable
β Simple Deployment - Perfect for serverless environments (Lambda, Cloud Functions)
β Production Ready - Live at https://mcp-demo-d3cj.onrender.com
β Two built-in tools:
read_widget_resource: Read widgetResource.md fileread_page_resource: Read pageResource.md file
Installation
Running Locally
Server runs on http://localhost:3000 by default.
Testing and Debugging
Using Production Server
Test the live production server:
Using HTTP Streaming Test Client (Recommended)
The test client will:
List all available tools
Call
read_widget_resourcetoolCall
read_page_resourcetool
Using curl for Local Testing
API Endpoints
HTTP Streaming Transport
1. MCP Endpoint
Path:
/mcpMethod: POST
Description: HTTP streaming endpoint for MCP JSON-RPC requests
Features: Fully stateless, each request is processed independently
Other Endpoints
2. Health Check
Path:
/healthMethod: GET
Description: Check server status
3. Root Path
Path:
/Method: GET
Description: Get server information and available tools list
Available Tools
read_widget_resource
Reads the content of src/resources/widgetResource.md file.
Input: No parameters required
Output: File content as text
Example:
read_page_resource
Reads the content of src/resources/pageResource.md file.
Input: No parameters required
Output: File content as text
Example:
Usage Examples
Check Server Health
Get Server Information
MCP Client Integration
To connect to this MCP server, your MCP client needs to:
Send HTTP POST requests to the
/mcpendpointUse JSON-RPC 2.0 format
Include proper Accept headers:
application/json, text/event-streamReceive results through HTTP response
Configuration Examples
Local Development
Production
Using MCP SDK
Tech Stack
@modelcontextprotocol/sdk: MCP protocol implementation
Express: Web framework
CORS: Cross-Origin Resource Sharing support
Node.js: ES Modules
Project Structure
Environment Variables
PORT: Server port (default: 3000)
Development
The server uses ES Modules and requires Node.js 14.0 or higher.
In development mode, use the --watch flag for automatic restarts:
Deployment
This server is deployed on Render and available at: https://mcp-demo-d3cj.onrender.com/mcp
You can deploy your own instance:
Fork this repository
Connect to Render/Vercel/Railway
Set environment variables if needed
Deploy!
License
MIT