Supported for installation scripts and server setup
Integrated with Git version control through .gitignore support
Used as a default URL for network connectivity checking through the checkNetwork tool
System information tools are optimized for macOS, providing detailed system and process information
Used for data validation and settings management in the MCP server implementation
Server is built with Python and provides Python-based tools and functionality
MCP 服务器
一个功能丰富的 MCP (Model Context Protocol) 服务器,提供多种实用工具。
🚀 功能特性
基础工具
- hello - 返回问候消息
- getTime - 获取当前时间
- calculate - 执行基本数学计算
外部服务
- getWeather - 获取天气信息
- translate - 翻译文本
文件操作
- fileRead - 读取本地文件
- fileWrite - 写入本地文件
- fileList - 列出目录内容
实用工具
- hashText - 计算文本哈希值
- base64Encode - Base64 编码/解码
系统信息
- getSystemInfo - 获取系统信息
- getProcessInfo - 获取进程信息
网络工具
- checkNetwork - 检查网络连接
娱乐工具
- getJoke - 获取笑话
🔧 基础工具
- hello - 返回问候消息
- 参数:
name
(字符串) - 要问候的人名
- 参数:
- getTime - 获取当前时间
- 参数:
format
(可选) - 时间格式 ('iso', 'local', 'timestamp')
- 参数:
- calculate - 执行基本数学计算
- 参数:
operation
(字符串) - 运算类型 ('add', 'subtract', 'multiply', 'divide')a
(数字) - 第一个数字b
(数字) - 第二个数字
- 参数:
🌤️ 网络服务
- getWeather - 获取天气信息
- 参数:
city
(字符串) - 城市名称country
(可选) - 国家代码,默认 "CN"
- 参数:
- translate - 翻译文本
- 参数:
text
(字符串) - 要翻译的文本target_lang
(字符串) - 目标语言,默认 "en"source_lang
(可选) - 源语言,默认 "auto"
- 参数:
- checkNetwork - 检查网络连接
- 参数:
url
(字符串) - 要检查的URL,默认 "https://www.google.com"
- 参数:
- getJoke - 获取笑话
- 参数:
category
(可选) - 笑话类别,默认 "any"
- 参数:
📁 文件操作
- fileRead - 读取本地文件
- 参数:
path
(字符串) - 文件路径encoding
(可选) - 文件编码,默认 "utf-8"
- 参数:
- fileWrite - 写入本地文件
- 参数:
path
(字符串) - 文件路径content
(字符串) - 文件内容encoding
(可选) - 文件编码,默认 "utf-8"
- 参数:
- fileList - 列出目录内容
- 参数:
path
(字符串) - 目录路径,默认 "."
- 参数:
🔐 加密工具
- hashText - 对文本进行哈希计算
- 参数:
text
(字符串) - 要哈希的文本algorithm
(字符串) - 哈希算法 ('md5', 'sha1', 'sha256', 'sha512'),默认 "md5"
- 参数:
- base64Encode - Base64编码或解码
- 参数:
text
(字符串) - 要处理的文本encode
(布尔值) - 是否编码,默认 true
- 参数:
💻 系统信息
- getSystemInfo - 获取系统信息
- 参数:无
- getProcessInfo - 获取进程信息
- 参数:
name
(可选) - 进程名称,不提供则显示所有进程
- 参数:
安装
运行
方法1:使用启动脚本
方法2:手动启动
后台运行
测试
基本测试
停止服务器
使用示例
基础工具
网络服务
文件操作
加密工具
系统信息
配置
服务器配置在 main.py
文件中,你可以根据需要修改服务器名称、版本和描述。
添加新工具
要添加新工具,在 main.py
文件中使用装饰器:
依赖
fastmcp
- FastMCP 框架pydantic
- 数据验证和设置管理requests
- HTTP 请求库
日志
服务器运行时会输出日志到控制台。如果使用后台运行,日志会保存到 mcp.log
文件中。
文件结构
注意事项
- 网络服务:天气、翻译、笑话等功能需要网络连接
- 文件权限:文件操作工具需要适当的文件系统权限
- 系统信息:系统信息工具在 macOS 上工作最佳
- API 限制:某些免费 API 可能有请求频率限制
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A feature-rich Model Context Protocol server built with FastMCP that provides various tools including basic utilities, network services, file operations, encryption tools, and system information functions.
Related MCP Servers
- AsecurityAlicenseAqualityA beginner-friendly Model Context Protocol (MCP) server that helps users understand MCP concepts, provides interactive examples, and lists available MCP servers. This server is designed to be a helpful companion for developers working with MCP. Also comes with a huge list of servers you can install.Last updated -3936JavaScriptApache 2.0
- -securityAlicense-qualityMCP Server simplifies the implementation of the Model Context Protocol by providing a user-friendly API to create custom tools and manage server workflows efficiently.Last updated -43TypeScriptMIT License
- -securityAlicense-qualityMCP Server provides a simpler API to interact with the Model Context Protocol by allowing users to define custom tools and services to streamline workflows and processes.Last updated -132TypeScriptMIT License
- -securityAlicense-qualityThis server implements the Model Context Protocol (MCP) to handle asynchronous tasks with real-time status tracking, robust error handling, and automatic resource management.Last updated -21JavaScriptMIT License