MCP Server Example
@czy88840616
关于 MCP Server Example
暂无概览
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Server Example?
MCP Server Example is a basic implementation of a Model Context Protocol server using the official MCP SDK. It demonstrates a simple "hello world" tool with an optional name parameter, communicating via stdio transport.
How to use MCP Server Example?
Clone the repository, install dependencies with npm install, then start the server with npm start. The server listens for incoming MCP connections via stdio.
Key features of MCP Server Example
- Built with the official
@modelcontextprotocol/sdk - Provides a "hello world" tool with optional name parameter
- Uses stdio for transport between client and server
- Implements type-safe tool definitions using Zod schema validation
Use cases of MCP Server Example
- Learning how to build an MCP server from scratch
- Testing MCP client implementations with a minimal server
- Prototyping MCP-based tool interactions
FAQ from MCP Server Example
What does MCP Server Example do?
It is a minimal MCP server that exposes a single "hello world" tool. The tool can accept an optional name parameter and returns a greeting. It uses the official MCP SDK and communicates over stdio.
What are the prerequisites to run MCP Server Example?
You need Node.js version 14 or higher and npm or yarn.
How do I start MCP Server Example?
Run npm start in the project directory after installing dependencies with npm install.
What transport does MCP Server Example use?
It uses stdio transport for communication between the MCP host and the server.
What dependencies does MCP Server Example require?
It depends on @modelcontextprotocol/sdk and zod. All dependencies are listed in package.json.
其他 分类下的更多 MCP 服务器
Servers
modelcontextprotocolModel Context Protocol Servers
Blender
ahujasidOpen-source MCP to use Blender with any LLM
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
MCP Toolbox for Databases
googleapisMCP Toolbox for Databases is an open source MCP server for databases.
Awesome Mlops
visengerA curated list of references for MLOps
评论