MCP SERVERS EXPRESS
Description
# MCP SERVERS EXPRESS This template project demonstrates how to host multiple Model Context Protocol (MCP) endpoints using an Express.js backend. ## Installation Install dependencies using pnpm: ```sh pnpm install ``` To run the server in development mode with hot-reloading…
About
# MCP SERVERS EXPRESS This template project demonstrates how to host multiple Model Context Protocol (MCP) endpoints using an Express.js backend. ## Installation Install dependencies using pnpm: ```sh pnpm install ``` To run the server in development mode with hot-reloading: ```sh pnpm run dev ``` ## Production First…
Details
- Author
- razertory
- Downloads
- 182
- Categories
- Developer Tools
Jump to
- Hosts multiple MCP endpoints on a single Express.js server
- Uses Server‑Sent Events (SSE) for MCP communication
- Includes a greet tool and a get‑time tool out‑of‑the‑box
- Supports hot‑reloading during development
- Written in TypeScript for type safety
Install dependencies with pnpm install, then run the development server with pnpm run dev for hot‑reloading. For production, first build the TypeScript code, then start the server. It listens on http://127.0.0.1:3000 by default. Two built‑in MCP endpoints are available: /greet/sse (provides a greet tool) and /time/sse (provides a get‑time tool).
MCP SERVERS EXPRESS
This template project demonstrates how to host multiple Model Context Protocol (MCP) endpoints using an Express.js backend.
Installation
Install dependencies using pnpm:
pnpm install
To run the server in development mode with hot-reloading:
pnpm run dev
Production
First, build the TypeScript code:Then, start the server:
The server will be running on http://127.0.0.1:3000.
The following MCP servers are available:
- greet: Provides a greet tool that takes a name and returns a greeting.
- Endpoint: http://127.0.0.1:3000/greet/sse
- time: Provides a get-time tool that returns the current time.
- Endpoint: http://127.0.0.1:3000/time/sse
These endpoints use Server-Sent Events (SSE) for communication.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





