
Hello World MCP Server
A simple Model Context Protocol server that demonstrates basic functionality with greeting tools, allowing Claude to say hello and generate custom greetings with different styles and timestamps.
README
Hello World MCP Server
A simple Model Context Protocol (MCP) server with SSE (Server-Sent Events) transport, deployed on Railway for public access by Claude AI.
🚀 Live Demo
Server URL: https://web-production-ce65a.up.railway.app
MCP Endpoint: https://web-production-ce65a.up.railway.app/sse
🔧 Features
- SSE Transport: Server-Sent Events for real-time MCP communication
- hello tool: Simple greeting with optional name parameter
- greet tool: Custom greetings with different styles and timestamps
- Web Interface: HTML status page with connection details
- Test Endpoints: Direct HTTP endpoints for debugging
🏗️ Architecture
This server uses the MCP (Model Context Protocol) SDK with SSE transport to enable Claude AI to connect directly via a public URL without requiring local configuration.
Key Components
- MCP Server: Built with
@modelcontextprotocol/sdk
- SSE Transport:
SSEServerTransport
for bidirectional communication - Express Server: HTTP server for web interface and SSE endpoints
- Session Management: UUID-based session routing for multiple connections
Transport Implementation
The server implements proper MCP SSE protocol:
- GET /sse: Establishes SSE connection and provides endpoint info
- POST /sse?sessionId=<id>: Receives JSON-RPC messages from clients
- Session Routing: Maps session IDs to transport instances
- Raw Stream Handling: Avoids Express middleware that consumes request streams
📦 Installation in Claude Desktop
Adding as MCP Integration
- Open Claude Desktop
- Go to Settings → Integrations
- Click "Add Integration"
- Select "Model Context Protocol (MCP)"
- Configure the integration:
- Name:
Hello World MCP
- URL:
https://web-production-ce65a.up.railway.app/sse
- Transport:
SSE (Server-Sent Events)
- Name:
- Save the integration
The server will automatically connect and the hello
and greet
tools will appear in your Claude Desktop interface.
Local Development (Optional)
If you want to run locally for development:
-
Clone the repository:
git clone <repository-url> cd mcphworld
-
Install dependencies:
npm install
-
Run locally:
npm start
🚢 Railway Deployment
This server is configured for Railway with:
railway.json
: Deployment configurationProcfile
: Process definition- Automatic deployment from GitHub
Deployment Steps
- Connect GitHub repository to Railway
- Railway automatically detects Node.js and deploys
- Public URL becomes available for MCP connections
🤖 Usage with Claude AI
Connect to the Server
Use this prompt in Claude:
I have an MCP server running at https://web-production-ce65a.up.railway.app/sse using SSE transport. Please connect to it.
Alternative: Claude Code CLI
If using Claude Code CLI:
claude mcp add --transport sse hello-world https://web-production-ce65a.up.railway.app/sse
🛠️ Available Tools
hello
- Description: Say hello to someone
- Parameters:
name
(optional): Name of the person to greet (defaults to "World")
- Example: "Hello, Claude! 👋 This is an MCP server running on Railway!"
greet
- Description: Generate a custom greeting with timestamp
- Parameters:
name
(required): Name of the person to greetgreeting
(optional): Type of greeting - "formal", "casual", or "friendly" (defaults to "friendly")
- Example: "Hello Claude! Hope you're having a great day!\n\nGenerated at: 2024-01-01T12:00:00.000Z\nServer: Hello World MCP on Railway 🚂"
🧪 Testing Endpoints
For debugging and testing without MCP client:
- Status Page: https://web-production-ce65a.up.railway.app
- Hello Tool: https://web-production-ce65a.up.railway.app/test/hello?name=Test
- Greet Tool: https://web-production-ce65a.up.railway.app/test/greet?name=Test&greeting=formal
- Health Check: https://web-production-ce65a.up.railway.app/health
🛠️ Development Notes
SSE Implementation Challenges Solved
-
Stream Consumption Issue:
- Problem:
express.json()
middleware consumed request streams - Solution: Removed global JSON middleware, let SSE transport handle raw streams
- Problem:
-
Session Management:
- Problem: Multiple SSE connections needed proper routing
- Solution: Map-based session storage with UUID keys
-
Transport Connection:
- Problem: MCP SSE protocol requires specific endpoint format
- Solution: Proper
SSEServerTransport
initialization with session routing
Key Implementation Details
// SSE endpoint establishment
app.get('/sse', (req, res) => {
const transport = new SSEServerTransport('/sse', res);
transports.set(transport.sessionId, transport);
server.connect(transport);
});
// Message handling with session routing
app.post('/sse', async (req, res) => {
const sessionId = req.query.sessionId;
const transport = transports.get(sessionId);
await transport.handlePostMessage(req, res);
});
📁 Project Structure
mcphworld/
├── index.js # Main MCP server implementation
├── package.json # Dependencies and scripts
├── railway.json # Railway deployment config
├── Procfile # Railway process definition
├── .gitignore # Git ignore rules
└── README.md # This file
🔍 Debugging
The server includes comprehensive logging:
- 🔌 SSE connection events
- 🔑 Session ID tracking
- 📨 POST message reception
- 📋 Tool list requests
- 🔧 Tool call execution
Check Railway logs for connection and usage details.
🤝 Contributing
This is a demonstration server. Feel free to fork and modify for your own MCP server implementations.
📄 License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.