Units MCP Server

A simple example MCP server that works with Claude and other MCP-compatible clients

Getting Started

This example MCP server demonstrates how to build a simple tool that works with Claude and any other MCP-supporting client. It handles basic unit conversions between common measurement units.

MCP Server URL

https://units.coreyja.com/mcp/sse

Quick Setup

  1. Add the URL to your MCP client configuration (Claude, etc.)
  2. Connect via SSE (Server-Sent Events) transport
  3. Use the convert_units tool in your conversations

Available Tool

convert_units

A simple tool that converts between units. Provide an input value and desired output unit.

Parameters:
  • input_value → Your starting point (like "10 meters" or "32 fahrenheit")
  • output_unit → Your destination (like "feet" or "celsius")

Supported Unit Types

This example server supports a handful of common unit conversions. It's not comprehensive, but it demonstrates the MCP pattern nicely.

Length

meters, feet, kilometers, miles

Mass

kilograms, pounds, grams

Temperature

celsius, fahrenheit

Volume

liters, gallons, milliliters, cubic meters/feet/inches

Velocity

mph, km/h, m/s, ft/s

Area

square meters/feet/kilometers/miles, acres

Density

kg/m³, lb/ft³, g/cm³, g/mL

Acceleration

m/s², ft/s²

Force

newtons, pounds force

Energy

joules, foot pounds

Power

watts, horsepower

Fuel Economy

miles/gallon, km/L, L/100km