fp-conv — Claude Code MCP server for number conversion
The fp-conv MCP server for Claude Code encodes, decodes, and converts floating-point and integer values. An agent can call it to inspect bit patterns or measure precision loss during conversion.
MIT ★ 8 updated 2026-11-11
claude mcp add fp-conv-mcp -- npx -y fp-conv-mcpWhat fp-conv does
fp-conv gives an agent tools to encode numbers, decode bit patterns, and move values between formats. Presets include FP32, FP16, BF16, TF32, FP8, FP6, FP4, and integer types. The server can also return format details or list the available presets.
Conversions support rounding and overflow options, and report precision loss. Custom format parameters are accepted too. Its HTTP mode runs locally without authentication; the standard connection command uses npx -y fp-conv-mcp.
What it helps with
- encode a value as BF16 and inspect its binary form
- decode an FP16 bit pattern into a decimal value
- convert a number from FP32 to FP8 and check precision loss
- look up parameters for available formats
Example prompts for the agent
- Encode 3.14159 as BF16 and show its binary representation.
- Decode the bit pattern
0x3E00as FP16. - Convert 0.1 from FP32 to FP8 E4M3 and report the precision loss.
How to install fp-conv
Platform CLI
claude mcp add fp-conv-mcp -- npx -y fp-conv-mcpPlatform CLI
codex mcp add fp-conv-mcp -- npx -y fp-conv-mcpConfig file
{
"mcpServers": {
"fp-conv-mcp": {
"command": "npx",
"args": [
"-y",
"fp-conv-mcp"
]
}
}
}Config file
{
"servers": {
"fp-conv-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"fp-conv-mcp"
]
}
}
}Platform CLI
gemini mcp add fp-conv-mcp npx -y fp-conv-mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about fp-conv
How do I install fp-conv in Claude Code?
Run claude mcp add fp-conv-mcp -- npx -y fp-conv-mcp. This registers the server through npx.
What does fp-conv do?
It encodes and decodes numeric values, converts between formats, and reports precision loss. It can also provide format details.
Which number formats does fp-conv support?
It includes FP32, FP64, FP16, BF16, TF32, FP8, FP6, and FP4 formats, integer types, and custom format definitions.