Skip to main content

An MCP server for cooking unit conversions

Project description

MCP Cooking Units Converter

smithery badge

MCP Cooking Units Converter is a Python package and MCP server for converting cooking measurements (volume, weight, temperature) between common units. It is designed for integration with MCP-compatible tools and VSCode extensions.

Installation

Installing via Smithery

To install Cooking Units Converter for Claude Desktop automatically via Smithery:

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

Manual Installation

  1. Clone the repository:
git clone git@github.com:sellisd/mcp-units.git
cd mcp-units
  1. Install:
uv pip install .  # For normal use
# OR
uv pip install -e .  # For development

Usage

Available Tools

The server provides the following conversion tools:

  1. Volume Conversion

    • Convert between: ml, l, cup, tbsp, tsp
    • Example: 240ml → 1 cup
  2. Weight Conversion

    • Convert between: g, kg, oz, lb
    • Example: 454g → 1 lb
  3. Temperature Conversion

    • Convert between: Celsius (C), Fahrenheit (F)
    • Example: 180°C → 356°F

Running the Server

uvx --with . python -m mcp_units.server

Using with VSCode Extensions

This MCP server can be integrated with VSCode extensions that support the Model Context Protocol. Here's how to set it up:

  1. Install an MCP-compatible VSCode extension (e.g., Roo)

  2. Configure the extension to use this server in .roo/mcp.json:

    {
      "mcpServers": {
        "units": {
          "command": "uvx",
          "args": [
            "--with",
            ".",
            "python",
            "-m",
            "mcp_units.server"
          ],
          "disabled": false
        }
      }
    }
    

Contact

For questions, issues, or contributions, please visit the GitHub repository.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_units-0.3.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_units-0.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_units-0.3.0.tar.gz.

File metadata

  • Download URL: mcp_units-0.3.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_units-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6270a30adfef65ae45ab446441ec182d23f52d7791b266f6c22777b9bc3d5bbf
MD5 876682a34a408415af75dbc834b154db
BLAKE2b-256 fabe7e541b12f48f097180506a0949f02f6f9d3b2a524fdfd289d0aabdb579ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_units-0.3.0.tar.gz:

Publisher: publish-to-pypi.yml on sellisd/mcp-units

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_units-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: mcp_units-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_units-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6770a5f754f4802ae9986791d7334f3e5a70cfe7754a7c7005082bc679523a7e
MD5 a1940861b6d60ac12f04f8adbbf72a54
BLAKE2b-256 511120299cb43710c72f4861418769cfa419188aeefc7447553f79654c6e42c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_units-0.3.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on sellisd/mcp-units

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page