mcp-server
@zusdn90
关于 mcp-server
mcp 서버 개발하기
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-server-zusdn90": {
"command": "python",
"args": [
"server.py"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is mcp-server?
mcp-server is a Python-based MCP (Model Context Protocol) server example that provides two simple tools: BMI calculation and weather retrieval. It demonstrates how to build an MCP server using the fastmcp library.
How to use mcp-server?
Install dependencies (pip install httpx fastmcp), then run the server with python server.py. The server exposes two tools: calculate_bmi (takes weight in kg and height in m, returns BMI) and fetch_weather (takes a city name, returns current weather via a mock API endpoint).
Key features of mcp-server
- BMI calculator from weight and height
- Weather lookup by city name
- Built with Python and
fastmcp - Uses
httpxfor async HTTP requests - Demonstrates MCP tool definition and execution
Use cases of mcp-server
- Learning how to create a Python MCP server
- Prototyping simple MCP tools for health or weather data
- Testing MCP client–server interactions with a minimal example
FAQ from mcp-server
What is mcp-server?
mcp-server is a minimal MCP server example written in Python that showcases defining and running tools using the fastmcp library.
What are the main features of mcp-server?
It includes two tools: calculate_bmi (calculates Body Mass Index) and fetch_weather (retrieves current weather for a city).
What dependencies are required to run mcp-server?
You need httpx and fastmcp. Install them with pip install httpx fastmcp.
How do I start the server?
Run python server.py in the terminal after installing dependencies.
Are there any usage examples?
Yes. The README shows Python code for both tools: calculate_bmi(weight_kg, height_m) and fetch_weather(city) using httpx and fastmcp decorators.
其他 分类下的更多 MCP 服务器
Production-ready MCP integrations for AI applications
Klavis-AIKlavis AI: MCP integration platforms that let AI agents use tools reliably at any scale
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
MaxKB
1Panel-dev🔥 MaxKB is an open-source platform for building enterprise-grade agents. 强大易用的开源企业级智能体平台。
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.

Sequential Thinking
modelcontextprotocolModel Context Protocol Servers
评论