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.1.tar.gz (6.9 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.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_units-0.3.1.tar.gz
  • Upload date:
  • Size: 6.9 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.1.tar.gz
Algorithm Hash digest
SHA256 e9bbfefb6df5a5cacdfa284b0e7e4d2acc4f2485867abcf2378ce3afe2b103c8
MD5 a23f21e5ee9dcb31c4fa467f17b18d4b
BLAKE2b-256 2cc411e417f6fccc0a1f75b7833f0e8e255b175c5f951d13b2e5072da0c0c6a2

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_units-0.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_units-0.3.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c978c615ac92534599d1c077c907aee56f0bbda31787335af5cfbe5a37767081
MD5 9d2d8374f795f1c0d6ee1aa2a7acd644
BLAKE2b-256 450338a2608e94243946235d3ed7a622a89bb3ef6686a74d8733add81596b161

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_units-0.3.1-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