Simple MCP Client / Server
@tikoehle
关于 Simple MCP Client / Server
暂无概览
基本信息
配置
工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is Simple MCP Client / Server?
Simple MCP Client / Server is a reference implementation that demonstrates building a Model Context Protocol (MCP) server and client. It provides a basic weather forecast and alert server using stdio and SSE transports, intended as a quickstart for developers learning MCP.
How to use Simple MCP Client / Server?
Install uv and then clone the repository. Create an MCP server project with uv init mcp_server, add dependencies (mcp[cli] and httpx), and write a Python server file. Start the server with uv run weather_stdio.py. Run the client with uv run client_stdio.py ../mcp_server/weather_stdio.py. Test with VSCode/Cline or MCP Inspector.
Key features of Simple MCP Client / Server
- Provides two weather tools: forecast and alerts.
- Supports both stdio and SSE transport.
- Includes a client that connects to the server.
- Testable via VSCode/Cline or MCP Inspector.
- Uses
uvfor dependency management and execution. - Designed as a quickstart example for MCP development.
Use cases of Simple MCP Client / Server
- Learning how to create an MCP server from scratch.
- Testing MCP tools locally with a client or inspector.
- Demonstrating stdio and SSE transport modes.
- Integrating weather data into MCP‑compatible applications.
FAQ from Simple MCP Client / Server
What dependencies are required?
You need uv (installed via the shell script), Python, and the MCP Python package with the CLI extra. Also httpx is required for the weather data fetching.
How do I test the server?
You can test it through VSCode/Cline by adding the server configuration to mcpServers, or by using MCP Inspector (uv run mcp dev ./weather_stdio.py).
What transports are supported?
The server supports both STDIO (standard input/output) and SSE (Server‑Sent Events) over HTTP. The SSE server runs on port 8001 by default.
Can I run the server on a remote machine?
Yes, for SSE transport the server runs on a remote machine. The MCP Inspector client UI can connect to it using the SSE URL (e.g., http://comp9:8001/sse). For STDIO, the client must be on the same machine.
Are there any restrictions on logging?
Local MCP servers should not log messages to stdout because it will interfere with protocol operation.
其他 分类下的更多 MCP 服务器
ghidraMCP
LaurieWiredMCP Server for Ghidra
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
评论