MCP Example Server
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.
Features
- Built with Express.js and the MCP SDK
- Implements Server-Sent Events (SSE) for real-time communication
- Includes a demo greeting tool
Getting Started
Prerequisites
- Node.js (latest LTS version recommended)
- npm or yarn
Installation
- Clone the repository
- Install dependencies:
npm install
Running the Server
Start the server with:
npm start
The 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"
}
}
}
License
MIT
Recommend MCP Servers 💡
docker-mcp
A docker MCP Server (modelcontextprotocol)
deepsource-mcp-server
An MCP server that integrates with DeepSource to provide AI assistants with access to code quality metrics, issues, and analysis results
json-mcp-server
An MCP server enabling LLMs to interact with JSON files, supporting split, merge, data finding, and validation.
stellar-mcp
A Model Context Protocol server that provides Stellar blockchain interaction capabilities for LLMs
GXtract
GXtract MCP Server for VS Code, forks and other editors; provides tools for interacting with GroundX
mcp-pandoc
MCP server for document format conversion using pandoc.