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 💡
TBXark/mcp-proxy
An MCP proxy server that aggregates and serves multiple MCP resource servers through a single HTTP server, supporting SSE/HTTP streaming.
ArisaTaki/MCP-study
一个使用TypeScript实现的简单MCP服务器示例,提供数字加法功能。
mongodb-lens
🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
python-mcp-server
An MCP server that runs a Python environment to execute LLM-generated code, useful for web scraping.
openai-websearch-mcp
openai websearch tool as mcp server
mcp-helmfile
A FastMCP server for executing Helmfile commands through MCP, providing a standardized interface for managing Helmfile operations.