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 💡
GitMCP
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
stellar-mcp
A Model Context Protocol server that provides Stellar blockchain interaction capabilities for LLMs
deepsource-mcp-server
An MCP server that integrates with DeepSource to provide AI assistants with access to code quality metrics, issues, and analysis results
sandbox-mcp
An MCP server enabling LLMs to run code safely in isolated Docker containers.
mcp-server-email
基于MCP的邮件服务,支持LLM发送带附件邮件及搜索文件
elektron-mcp
An MCP server enabling LLMs to control Elektron synthesizers via MIDI, specifically supporting the Digitone for sound design.