MCP SERVERS EXPRESS
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…
Explore
- 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 using pnpm:
pnpm install
To run the server in development mode with hot-reloading:
pnpm run dev
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.



