czy88840616/mcp-server-example
If you are the rightful owner of mcp-server-example and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A simple example of a Model Context Protocol (MCP) server implementation using the official SDK.
This project demonstrates how to create a basic MCP server with a simple 'hello world' tool. The server uses the official MCP SDK and communicates via stdio transport. It is designed to be a straightforward implementation, showcasing the core functionalities of an MCP server. The project is built with Node.js and utilizes the `@modelcontextprotocol/sdk` for server operations and `zod` for type-safe tool definitions. The server is capable of handling incoming connections through stdio, making it suitable for various applications that require a basic MCP server setup.
Features
- MCP server implementation using `@modelcontextprotocol/sdk`
- Simple 'hello world' tool with optional name parameter
- Stdio-based communication transport
- Type-safe tool definitions using Zod schema validation
Usages
usage with stdio
{ "mcp": { "servers": { "hello-world": { "command": "node", "args": [ "server.js" ] } } } }