This project implements a simple Model Context Protocol (MCP) server in Node.js using Server-Sent Events (SSE) as the transport layer. It exposes a sample greet
tool that responds with a greeting message.
- Node.js v24+
- pnpm
-
Clone the repo
git clone https://github.com/lucasgdb/mcp-server-sse-node-example.git cd mcp-server-sse-node-example
-
Install dependencies
pnpm install
- Copy the .env.example to .env
Start the server with:
pnpm dev
You should see:
🚀 MCP Server running at http://localhost:3000
pnpm client