This is a demonstration server implementing the Model Context Protocol (MCP). It provides a simple example of how to create an MCP server with custom tools.
- Built with Express.js and the MCP SDK
- Implements Server-Sent Events (SSE) for real-time communication
- Includes a demo greeting tool
- Node.js (latest LTS version recommended)
- npm or yarn
- Clone the repository
- Install dependencies:
npm installStart the server with:
npm startThe server will run on port 8080 by default.
Add the following to the mcp.json file
{
"mcpServers": {
"greeter-server-example": {
"name": "MCP Greeter Server Example",
"url": "http://localhost:8080/sse"
}
}
}MIT