embedcalc-mcp
The embedcalc-mcp server provides 29 deterministic calculators and code generators for embedded systems engineering — replacing hallucinated LLM answers with verified, exact results.
Code Generation
embedcalc_crc_to_c— Table-driven C code for CRC-8/16/32 (7 presets or custom Rocksoft parameters) with embedded check valuesembedcalc_regmap_to_c— Convert register field lists into C#defineshift/mask macros and bit-fieldtypedef structembedcalc_bitfield_macro— Decompose a 32-bit register value into set bits and generate a C macro of OR'd(1U << n)terms
Timing & Bus Calculators
CAN bit timing (STM32 bxCAN/FDCAN, MCP2515), UART baud rate (STM32 BRR), I2C pull-up/TIMINGR, SPI timing, I2S clocks, LIN timing, RS-485 cable length/bias, Modbus RTU t1.5/t3.5 silence times, and ring/DMA buffer sizing
Data Representation
Q-format fixed-point ↔ float, IEEE 754 single/double (decimal ↔ hex ↔ binary with field breakdown), arbitrary base conversion (32-bit two's complement), endianness swap (big/little/BADC/CDAB), and C struct/union layout (offsets, padding, size for a 32-bit MCU model)
Electronics & PCB Calculators
E-series snapping (E6/E12/E24/E96), resistor color band/SMD decoding, crystal load capacitors, LM317 output voltage/resistor, T/π attenuator pad design, junction temperature, microstrip impedance (IPC-2141), PCB trace width (IPC-2221), AWG wire voltage drop (PASS/WARNING/FAIL), NE555 astable/monostable timing, and DC-DC converter design (buck/boost/inverting: duty cycle, min L/C, peak current)
Component Search (requires internet)
embedcalc_find_component— Find real, in-stock resistors, capacitors, inductors, LDOs, MOSFETs, and BJTs by electrical value, returning MPNs, descriptions, and buy links
Integrates with KiCad by providing a tool to parse KiCad netlist exports into a standard schema for schematic review.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@embedcalc-mcpCalculate CRC-8 C code for a byte array"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
embedcalc-mcp
Exact embedded-engineering math for AI agents. An MCP server with 33 deterministic calculators, code generators, and schematic checks — so Claude, Cursor, or any MCP-enabled agent computes CRC check values, CAN timing registers, and struct padding, and reviews schematics for MCU wiring mistakes, instead of hallucinating them.
Why
LLMs are confidently wrong about exactly the math that bricks boards. Ask any model for a CRC-16/MODBUS check value, an STM32 CAN_BTR register for 500 kbit/s @ 36 MHz, or the padded size of a struct — you'll get a plausible-looking wrong answer often enough that you can't trust any of them. The failure mode is the worst kind: the answer looks right.
This server gives the model tools instead. Every tool is a pure, deterministic implementation pinned with test vectors (standard CRC check values, oracle fixtures, IPC/ASTM published numbers — 157 tests).
Related MCP server: Math MCP Server
Install
Claude Code:
claude mcp add embedcalc -- npx -y embedcalc-mcpClaude Desktop / Cursor / any MCP client (JSON config):
{
"mcpServers": {
"embedcalc": { "command": "npx", "args": ["-y", "embedcalc-mcp"] }
}
}No API key, no account. Runs locally over stdio. (The optional find_component tool queries embedcalc.com over the network; everything else is offline.)
Tools (33)
Domain | Tools |
Code generation |
|
Timing |
|
Data representation |
|
Electronics |
|
Components |
|
Schematic review |
|
All tool names are prefixed embedcalc_ (e.g. embedcalc_crc_to_c).
Example prompts
"Give me MODBUS CRC-16 as a C function" → table-driven C, check("123456789") =
0x4B37embedded for on-target verification"CAN 500 kbit/s on STM32F103, APB1 36 MHz, sample point 87.5%" →
CAN_BTR = 0x00050008(BRP=9, TS1=6, TS2=1)"How big is
struct { uint8_t flags; uint32_t ts; uint16_t id; }on a Cortex-M?" → 12 bytes, 5 of them padding, with the layout table"Encode −0.25 in Q1.14" / "What float is 0x7FC00000?" / "Nearest E96 to 12.3 kΩ?"
Accuracy
CRC: all 7 presets verified against standard check values for
"123456789"CAN: solver output byte-identical to the interactive calculators at embedcalc.com (oracle fixtures in
tests/fixtures/)IEEE-754 / AWG / IPC: pinned to reference constants and published standard values
struct_layoutuses a 32-bit MCU model (pointers 4 B;double/int64size 8, align 4) — stated in the tool description so the model can caveat it
Run it yourself: npm install && npm run build && npm test (157 tests, includes a stdio end-to-end pass that spawns the built server and calls the tools).
Related
embedcalc.com — the same 60+ calculators as free interactive tools, no AI required
Found a calculation LLMs keep getting wrong? Open an issue — collecting candidates for the next batch.
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityCmaintenanceA comprehensive MCP server that turns any AI assistant into a powerful mathematical computation engine, providing 52 advanced functions, 158 unit conversions, financial calculations, and secure AST-based evaluation.Last updated1810MIT
- AlicenseAqualityCmaintenanceA Model Context Protocol server that exposes 8 mathematical tools (arithmetic, algebra, calculus, matrix operations, statistics, probability, unit conversions) to any MCP-compatible AI agent, enabling mathematical computations without code.Last updated8281MIT
- Alicense-qualityDmaintenanceAn MCP server that extends AI coding assistants with deterministic, algorithmic capabilities such as code analysis, fault localization, and formal verification, enabling an autonomous engineering team within the IDE.Last updatedMIT
- AlicenseAqualityBmaintenanceAn MCP server that gives an AI assistant a set of real mechanical-engineering tools. Provides deterministic tools like material properties, beam analysis, unit conversion, and curve fitting for engineering calculations.Last updated5MIT
Related MCP Connectors
AI-callable calculators and engineering models with real formulas. No hallucinated math.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server connecting AI agents to non-custodial staking data across 130+ networks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ethan-hub26/embedcalc-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server