
由FastMCP所建的一款全面的"模型背景协议"(MCP)服务器提供计算工具,文档资源,并提供即时模板.
概览
由FastMCP所建的一款全面的"模型背景协议"(MCP)服务器提供计算工具,文档资源,并提供即时模板. 该服务器显示多种MCP能力,包括工具,资源,以及单项执行中的提示. - :加法,减法,乘法,除法 -- -- :功率,平方根,因子计算 -- -- 百分比计算 -- -- :除法为零保护,负平方根保护,因子范围限制 - : 访问 MCP TypeScript SDK 文档 - : 从可配置文件路径读取 - : 对缺失文件的处理优雅 - 执行会议摘要生成器 -- -- 动态模板变量替换 -- -- 专业会议摘要格式 - Python 3.12 或以后 - uv 包管理器 3. 打开http://localhost:3000在MCP检查器中测试服务器. 访问 TypeScript SDK 文件 : : 更新服务器中的DESKTOP FILE PATH.py以指向文档文件 :
概述(AI 翻译)
由FastMCP所建的一款全面的"模型背景协议"(MCP)服务器提供计算工具,文档资源,并提供即时模板. 该服务器显示多种MCP能力,包括工具,资源,以及单项执行中的提示.
□ 特性
QQ 计算工具
- ** 基本业务**: 增、减、乘、除
- ** 高级数学**:功率、平方根、系数计算
- 效用函数:百分比计算
- ** 不当处理**:按零保护、负平方根保护、因子范围限制划分
QQ 文档资源
- ** TypeScript SDK 资源**:访问 MCP TypeScript SDK 文档
- ** 动态文件读取**:从可配置文件路径读取
- ** 不当处理**: 对缺失文件的慷慨处理
QQ 提示模板
- 会议摘要模板:执行会议摘要生成器
- 可变替换:动态模板可变替换
- ** 固定产出**: 专业会议摘要格式
□ 快开始
· 先决条件
- Python 3.12 或更晚一点
uv软件包管理器
- 安装
-
** 设立存储处**
-
** 设立附属单位**
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
MCP Multi-Tool Server
A comprehensive Model Context Protocol (MCP) server built with FastMCP that provides calculator tools, document resources, and prompt templates. This server demonstrates multiple MCP capabilities including tools, resources, and prompts in a single implementation.
Features
🧮 Calculator Tools
- Basic Operations: Addition, subtraction, multiplication, division
- Advanced Math: Power, square root, factorial calculations
- Utility Functions: Percentage calculations
- Error Handling: Division by zero protection, negative square root protection, factorial range limits
📖 Document Resources
- TypeScript SDK Resource: Access to MCP TypeScript SDK documentation
- Dynamic File Reading: Reads from configurable file paths
- Error Handling: Graceful handling of missing files
📝 Prompt Templates
- Meeting Summary Template: Executive meeting summary generator
- Variable Substitution: Dynamic template variable replacement
- Structured Output: Professional meeting summary format
Quick Start
Prerequisites
- Python 3.12 or later
uvpackage manager
Installation
-
Clone the repository
git clone cd mcp-multi-tool-server -
Install dependencies
uv sync -
Test the server
uv run mcp dev server.pyOpen http://localhost:3000 to test the server in MCP Inspector.
Usage
Calculator Tools
The server provides 8 calculator tools:
| Tool | Description | Example |
|---|---|---|
add |
Add two numbers | add(5, 3) → 8 |
subtract |
Subtract second from first | subtract(10, 4) → 6 |
multiply |
Multiply two numbers | multiply(6, 7) → 42 |
divide |
Divide first by second | divide(15, 3) → 5 |
power |
Raise to power | power(2, 8) → 256 |
square_root |
Calculate square root | square_root(16) → 4 |
factorial |
Calculate factorial | factorial(5) → 120 |
calculate_percentage |
Calculate percentage | calculate_percentage(200, 15) → 30 |
TypeScript SDK Resource
Access the TypeScript SDK documentation:
# Resource URI: file://typesdk
# Returns the contents of the TypeScript SDK documentation
Configuration: Update DESKTOP_FILE_PATH in server.py to point to your documentation file:
DESKTOP_FILE_PATH = r"C:\Users\Arnold\Desktop\typesdk.md"
Meeting Summary Prompt
Generate structured meeting summaries:
# Prompt: meeting_summary
# Required parameters:
# - meeting_date: Date of the meeting
# - meeting_title: Title or purpose of the meeting
# - transcript: Meeting transcript or notes
Output Structure:
- Overview (purpose, participants, topics)
- Key Decisions (major decisions, strategic changes)
- Action Items (next steps, responsibilities, deadlines)
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"multi-tool-server": {
"command": "uv",
"args": [
"--directory",
"/path/to/your/server/directory",
"run",
"python",
"server.py"
],
"env": {
"UV_PROJECT_ENVIRONMENT": ".venv"
}
}
}
}