Back to MCP directory
publicPublicdnsLocal runtime

mcp-units

一个提供烹饪单位转换工具的MCP服务器,支持体积、重量和温度的单位转换

article

README

🚀 烹饪单位转换器 MCP 服务器

烹饪单位转换器 MCP 服务器是一个提供烹饪单位转换工具的 MCP(模型上下文协议)服务器,能帮助用户便捷地在不同烹饪单位间进行转换。

🚀 快速开始

本烹饪单位转换器 MCP 服务器能为你提供各种烹饪单位的转换功能,下面为你介绍其安装和使用方法。

📦 安装指南

通过 Smithery 安装

要通过 Smithery 自动安装 Cooking Units Converter for Claude Desktop,可使用以下命令:

npx -y @smithery/cli install @sellisd/mcp-units --client claude

手动安装

  1. 克隆仓库:
git clone git@github.com:sellisd/mcp-units.git
cd mcp-units
  1. 安装:
uv pip install .  # 正常使用
# 或者
uv pip install -e .  # 开发模式

💻 使用示例

基础用法

可用工具

该服务器提供的转换工具如下:

  1. 体积转换

    • 支持单位:ml, l, cup, tbsp, tsp
    • 示例:240ml → 1杯
  2. 重量转换

    • 支持单位:g, kg, oz, lb
    • 示例:454g → 1磅
  3. 温度转换

    • 支持单位:摄氏度 (C), 华氏度 (F)
    • 示例:180°C → 356°F

运行服务器

uvx --with . python -m mcp_units.server

高级用法

集成 VSCode 扩展

此 MCP 服务器可以与支持模型上下文协议的 VSCode 扩展集成。以下是配置方法:

  1. 安装一个兼容的 VSCode 扩展(例如,Roo)
  2. .roo/mcp.json 中配置扩展:
{
  "mcpServers": {
    "units": {
      "command": "uvx",
      "args": [
        "--with",
        ".",
        "python",
        "-m",
        "mcp_units.server"
      ],
      "disabled": false
    }
  }
}

📄 许可证

本项目采用 MIT License 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client