Weights and Measures MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Weights and Measures MCP Server
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
Related MCP server: mcp-gnu-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 syncUsage
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-serverOr with Python:
python -m weights_and_measures_server.serverExample 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.mdTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
60+ units, live FX, timezones, and date arithmetic for AI agents.
Everyday calculators and converters for AI assistants: units, dates, percentages, text, JSON.
Production-grade unit conversion server covering 460+ units across 36 categories. Features full regional land measurement provenance (Bigha, Marla, Kanal, Gaj, Guntha) with state revenue manual citations.
Verified physics and chemistry calculators for AI agents: search in plain English, run with units.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides precise conversions between different units of measurement including temperature, length, weight, and volume.169MIT
- AlicenseAqualityBmaintenanceUnit converter for AI agents, powered by the GNU units database — convert 3000+ units of measurement, evaluate compound unit expressions, reduce to SI base units, dimensional analysis. Offline, deterministic.61GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to convert between measurement units across length, weight, temperature, volume, speed, and data storage, with formulas included. Supports pay-per-call access via x402 micropayments without API keys or signup.MIT
- AlicenseBqualityCmaintenanceEnables AI agents to perform 22 unit conversions and common calculations such as length, weight, temperature, volume, tip, percentage, date difference, age, currency, cooking, and fuel consumption.141MIT