Weights And Measures
FreeNot checkedMCP server that provides tools and resources for weights and measures conversions. This server enables AI assistants to perform accurate unit conversions and ac
About
MCP server that provides tools and resources for weights and measures conversions. This server enables AI assistants to perform accurate unit conversions and access comprehensive reference tables for different measurement systems.
README
A Model Context Protocol (MCP) server that provides tools and resources for weights and measures conversions. This server enables AI assistants to perform accurate unit conversions and access comprehensive reference tables for different measurement systems.
Features
Tools
convert_unit - Convert values between different units of measurement
- Supports weight conversions (Avoirdupois, Troy, Apothecaries', Metric)
- Supports length conversions (Imperial/US, Metric)
- Supports volume conversions (US Fluid, Imperial Fluid, Metric)
- Example: Convert 10 pounds to kilograms, or 5 miles to kilometers
get_conversion_factor - Get the conversion multiplier between two units
- Returns the exact factor needed to convert from one unit to another
- Useful for understanding conversion relationships
- Example: Get the factor to convert troy ounces to grams
list_units - List all available units, optionally filtered by category
- View all supported units
- Filter by category: weight, length, or volume
- Helps discover available conversion options
Resources
Access comprehensive reference tables for different measurement systems:
Weight Tables:
weights://tables/avoirdupois- Commercial weight (pounds, ounces, grains)weights://tables/troy- Precious metals weight (troy ounces, pennyweights)weights://tables/apothecaries- Pharmacy weight (drams, scruples)weights://tables/metric-weight- Metric weight (kilograms, grams)weights://tables/cross-system-weight- Cross-system conversions
Length Tables:
length://tables/imperial-us- Imperial/US measurements (miles, yards, feet, inches)length://tables/metric- Metric measurements (kilometers, meters, centimeters)length://tables/cross-system- Imperial/Metric conversions
Volume Tables:
volume://tables/us-fluid- US fluid measurements (gallons, quarts, pints, cups)volume://tables/imperial-fluid- Imperial fluid measurementsvolume://tables/metric-volume- Metric volume (liters, milliliters)volume://tables/cross-system-volume- Cross-system conversions
Additional:
units://all- Complete list of all supported units
Installation
Prerequisites
- Python 3.10 or higher
- uv package manager
Install Dependencies
# Clone the repository
git clone https://github.com/yourusername/weights-and-measures-mcp-server.git
cd weights-and-measures-mcp-server
# Install dependencies with uv
uv sync
Usage
With Claude Desktop
Add this configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"weights-and-measures": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/weights-and-measures-mcp-server",
"run",
"weights-and-measures-server"
]
}
}
}
Replace /ABSOLUTE/PATH/TO/ with the actual path to your cloned repository.
Standalone
Run the server directly:
uv run weights-and-measures-server
Or with Python:
python -m weights_and_measures_server.server
Example Usage
Once connected to an MCP client (like Claude Desktop), you can:
Convert units:
- "Convert 10 pounds to kilograms"
- "How many liters are in 5 gallons?"
- "Convert 100 miles to kilometers"
Get conversion factors:
- "What's the conversion factor from troy ounces to grams?"
- "How do I convert feet to meters?"
Access reference tables:
- "Show me the avoirdupois weight table"
- "What are the metric length measurements?"
- "List all available units for volume"
Supported Units
Weight:
- Avoirdupois: gross_ton, net_ton, pound, ounce, grain
- Troy: troy_pound, troy_ounce, pennyweight, troy_grain
- Apothecaries: apothecaries_pound, apothecaries_ounce, dram, scruple, apothecaries_grain
- Metric: metric_ton, kilogram, gram, decigram, centigram, milligram
Length:
- Imperial/US: mile, yard, foot, inch
- Metric: kilometer, meter, decimeter, centimeter, millimeter
Volume:
- US Fluid: us_gallon, gallon, quart, pint, fluid_ounce, cup, tablespoon, teaspoon
- Imperial: imperial_gallon, imperial_quart, imperial_pint, imperial_fluid_ounce
- Metric: cubic_meter, liter, deciliter, centiliter, milliliter
- Cubic: cubic_inch, cubic_foot
Development
Project Structure
weights-and-measures-mcp-server/
├── weights_and_measures_server/
│ ├── __init__.py
│ ├── server.py # MCP server implementation
│ └── data.py # Conversion factors and reference tables
├── pyproject.toml # Project configuration
├── test_server.py # Test suite
└── README.md
Installing Weights And Measures
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/nothans/weights-and-measures-mcp-serverFAQ
Is Weights And Measures MCP free?
Yes, Weights And Measures MCP is free — one-click install via Unyly at no cost.
Does Weights And Measures need an API key?
No, Weights And Measures runs without API keys or environment variables.
Is Weights And Measures hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Weights And Measures in Claude Desktop, Claude Code or Cursor?
Open Weights And Measures on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Weights And Measures with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
