trainhorn-mcp
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.
trainhorn-mcp
A small, dependency-free Model Context Protocol server with train horn calculators. It lets an assistant compute (instead of guess) how loud a horn is at a distance, how long an air tank lasts, how fast a compressor refills it and which wire gauge a 12/24 V run needs.
Local stdio server, Node 18+, no dependencies, no network access, nothing stored.
5 read-only tools, each with a JSON schema, input validation, a plain-text answer, structured JSON and an assumptions note.
1 resource: a short "horn law basics" note (US, general information, not legal advice).
The maths is a port of the tested
trainhorn-calccore behind the Train Horn calculators; the tests check the same reference vectors.
Registry name: io.github.train-horn/trainhorn-mcp
Install
Claude Desktop (one click)
Download trainhorn-mcp.mcpb from the latest release
and open it (or drag it into Settings > Extensions).
Any MCP client (stdio)
git clone https://github.com/train-horn/trainhorn-mcp.git{
"mcpServers": {
"trainhorn": {
"command": "node",
"args": ["/absolute/path/to/trainhorn-mcp/server/index.js"]
}
}
}Claude Code: claude mcp add trainhorn -- node /absolute/path/to/trainhorn-mcp/server/index.js
Related MCP server: CalcsLive MCP Server
Tools
Tool | What it answers | Required inputs (optional) |
| Level in dB at a distance from a rated figure such as "150 dB at 10 ft" |
|
| Distance at which the horn falls to a target level |
|
| Seconds of horn time from a tank, free air used, number of blasts |
|
| Seconds to refill from cut-in to cut-out pressure |
|
| Smallest copper AWG within a voltage-drop budget, or check your gauge |
|
Resource: trainhorn://notes/horn-law-basics (text/markdown).
Formulas and assumptions
Sound level:
L = L_ref - 20*log10(d / d_ref) - alpha*(d - d_ref)/1000(free field, point source;alphain dB/km from ISO 9613 at 10 degC / 70 % RH when you passfrequency_hz). No ground effect, barriers or weather. The source level is whatever you enter, often a maker's claim: the result is an estimate, not a measurement and not a legal noise assessment.Air tank: free air
= gallons * 0.13368 * (P_start - P_cutoff) / 14.696cu ft; runtime= free air / CFM * 60s. Isothermal, constant consumption, compressor off.Compressor: constant flow
t = free air / CFM * 60, or delivery falling linearly with pressure. No leaks, duty cycle or heat.Wire: copper resistance from the AWG formula at the given temperature, two-wire run. Sizing is by voltage drop only: it does not check ampacity or fuse size.
Examples
spl_at_distance {"source_db": 150, "distance": 100}
-> 150 dB at 10 ft -> about 130 dB at 100 ft (-20 dB).
distance_for_level {"source_db": 150, "target_db": 90}
-> 150 dB at 10 ft falls to 90 dB at about 10000 ft (3048 m).
air_tank_runtime {"tank_gallons": 5, "start_psi": 150, "cutoff_psi": 110, "horn_cfm": 10}
-> about 10.92 s of horn time (1.819 cu ft of free air), 5 blast(s) of 2 s.
compressor_recovery {"tank_gallons": 2, "cut_in_psi": 110, "cut_out_psi": 150, "compressor_cfm": 1}
-> about 43.7 s (0.73 min).
wire_gauge {"amps": 30, "one_way_length": 10, "check_awg": "10"}
-> use 6 AWG copper or thicker (drop 0.237 V = 1.98 %, budget 3 %). Your 10 AWG: drop 0.599 V (4.99 %), over budget.Each text answer ends with its assumptions; structuredContent carries the same numbers as JSON.
Tests
npm test # node --test: core reference vectors, every tool, and an MCP stdio smoke testThe protocol test starts the server and runs initialize, tools/list, tools/call and resources/read over stdio.
Releases are built and published by .github/workflows/release.yml (tests, MCPB pack, MCP Registry via GitHub OIDC).
About
Made by Train Horn, an independent US reference on train horns (not a store). The calculators give estimates; the law note is general information, not legal advice.
License: MIT
Tool 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
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Heating, ventilation and energy engineering calculations and diagnostics for AI agents.
BusCalc provides business and trade calculations, Road Atlas lookups, and tools for AI assistants. Workload Relay includes Bid Capacity Review for staffing, cash reserves, and start-date options, plus Enterprise Capacity Portfolio for prioritizing work across teams, equipment, and budgets. Successful calculations return results, units, formulas, assumptions, and unsigned replayable receipts. Separate tools replay receipts and verify record proofs. Community road observations are unverified. Supports MCP 2026-07-28, 2025-11-25, 2025-06-18, and 2025-03-26 through the same Streamable HTTP endpoint. Direct access requires no account or key. Shared limits apply. Guide and OpenAPI: https://buscalc.com/for-ai/
# TrueCalci Precision Compute Engine Deterministic statutory, financial, and engineering computational tools for AI agents, developers, and autonomous workflows over the Model Context Protocol (MCP). ### Capabilities (25 Verified Engines): - **Specialist FinOps:** Remote Contractor vs. W-2 Parity, S-Corp Reasonable Compensation (IRS Rev. Rul. 74-44), Solo 401(k) Shelter, Cross-Border FX Drag, Billable Capacity Floor. - **Global & Cross-Border Tax:** US Form 2555 FEIE Nomad Stacking, B2B Foreign
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI assistants to perform petroleum engineering calculations including PVT analysis, well performance modeling, and reservoir simulation support using industry-standard correlations and field units.4547GPL 3.0
- AlicenseAqualityDmaintenanceEnables AI agents to perform unit-aware engineering calculations with automatic unit conversion, dependency resolution, and access to 500+ units across 75+ categories through the CalcsLive calculation engine.315 npmMIT
- AlicenseAqualityCmaintenanceEnables Claude to size batteries, wire gauges, and fuses for 12V-48V electrical systems in boats, vans, and off-grid builds, and generates complete wiring diagrams as SVG or PNG.985 npmMIT

security-orchestraofficial
FlicenseNot gradedqualityCmaintenanceProvides deterministic, standards-based calculations for data center critical power infrastructure. Enables site selection, generator sizing, UPS sizing, NFPA 110 compliance, and more via 50+ AI agents and 8 compound chains.-