ireal-mcp
Click on "Deploy 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., "@ireal-mcp Create a chord chart for 'Blue Bossa' with 4 measures per line"
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.
ireal-mcp
Builds piano-friendly iReal Pro chord charts — laid out at a fixed 4 measures per line, the way a player reads them off the stand. It produces a tappable irealb:// import link, a standalone HTML chart, a harmonic analysis (Roman numerals + chord-scales + jam plan), and an ASCII layout preview.
Just want to make charts? (no install)
Open ireal-studio.html in any web browser (double-click it). Type a song, press Make chart, and tap Open in iReal Pro on your phone/iPad. It's one self-contained file — works offline, nothing to install, no server, your charts never leave the page.
Don't have the file yet? Run
npm run build:webonce (or double-clicksetup.commandon a Mac) to producedist-web/ireal-studio.html, then share/keep that single file.
The rest of this README is for the Claude (MCP) integration and the optional always-on LAN server — power-user routes. On a Mac you can just double-click setup.command, which installs everything and prints exactly what to paste into Claude.
Related MCP server: midi-composer-mcp
Why "4 measures per line"?
iReal Pro lays a chart out as a grid of 16 cells per line; a chord or a space takes one cell, while barlines, time signatures, rehearsal marks and staff text are free. Left alone, the app packs measures of differing widths and the line breaks wander.
This server makes the layout deterministic: every measure is padded to exactly 16 / measuresPerLine cells (4 cells with the default 4 measures/line), so the app always wraps where you expect. The result reads like a clean fake-book page. You can change the density with measuresPerLine (must divide 16: 1, 2, 4, 8, 16).
Install the MCP server (Mac / Windows / Linux, any MCP client)
The server is plain Node + stdio + the official MCP SDK, so it runs anywhere Node runs and works with any MCP client that supports stdio servers (Claude Code, Claude Desktop, Cursor, Windsurf, …).
Once published to npm (see "Publishing" below), no clone or build is needed — point any client at npx. This config is identical on every OS:
{
"mcpServers": {
"ireal": { "command": "npx", "args": ["-y", "ireal-mcp"] }
}
}Claude Code: claude mcp add ireal -- npx -y ireal-mcp (the -- is required so the flags go to npx, not to claude).
From source (until it's on npm) — same on all three OSes:
git clone <repo> && cd ireal-mcp
npm install # runs the build automatically (prepare script)Then point your client at the absolute path:
{ "mcpServers": { "ireal": { "command": "node", "args": ["/abs/path/ireal-mcp/dist/index.js"] } } }Or via the CLI (note the -- before the command): claude mcp add ireal -- node /abs/path/ireal-mcp/dist/index.js
Mac shortcut: double-click
setup.command— it installs, builds, and prints the exact config. (Windows/Linux: use thegit clonesteps above; a one-click installer for those is a TODO. The optional always-on LAN server's auto-start is currently Mac-only via launchd — on Windows/Linux runnpm run servemanually, or wire it to Task Scheduler / systemd.)
Publishing (to enable npx install everywhere)
npm publish ships the built dist/ (the prepare script builds it; prepublishOnly runs typecheck + tests first). After that, anyone on any OS installs via the npx config above — no clone, no build.
Serve over your network
The companion HTTP server makes every saved chart reachable from other devices (your iPad/phone with iReal Pro) at a stable address:
npm run serve # binds 0.0.0.0:1357, prints the LAN URLs to useIt reads the chart library on disk per request, so charts the MCP tools save appear immediately. On startup it prints something like:
ireal-mcp HTTP server listening on port 1357
Reachable at:
http://192.168.68.73:1357
http://your-mac.local:1357Open that URL on a device with iReal Pro and tap import to load a chart.
Route | Purpose |
| Index of every chart + "open all as one iReal Pro playlist" |
| View a chart (layout preview + import button) |
| Redirects straight to the |
| Redirects to an |
Config (env vars): IREAL_PORT (default 1357), IREAL_LIBRARY (default
~/.ireal-mcp/charts).
Keep it running (auto-start on login)
npm run install-service # writes & loads a launchd LaunchAgent (macOS)This installs ~/Library/LaunchAgents/com.ireal-mcp.server.plist with
KeepAlive so the server starts at login and restarts if it dies. Logs go to
~/.ireal-mcp/server.log. To preview the plist without installing:
node scripts/gen-launchd.mjs. To remove:
launchctl unload ~/Library/LaunchAgents/com.ireal-mcp.server.plist.
Configure your MCP client
Add to your client config (Claude Desktop / Claude Code .mcp.json, etc.):
{
"mcpServers": {
"ireal": {
"command": "node",
"args": ["/absolute/path/to/ireal-mcp/dist/index.js"]
}
}
}Or run directly with npx ireal-mcp once published.
Tools
Tool | What it does |
| Build a chart from structured |
| ASCII layout grid only — fast iteration while writing chords (no save). |
| List saved charts with their slugs and served URLs. |
| Remove a chart from the library by slug. |
| Report the library path, port, and LAN URLs where the server is reachable, plus the start command. |
| Parse an existing |
| The built-in iReal Pro styles (Jazz / Latin / Pop). |
| Valid chord roots, qualities, keys, and time signatures, so generated charts use legal symbols. |
Input model
A chart is title + optional composer/style/key/bpm/timeSignature/measuresPerLine, plus either:
measures(preferred): an array where each measure is{ chords: ["A-7","D7"], section?, open?, close?, ending?, staffText?, noChord?, ... }. The server owns the layout and encoding.raw: a raw iReal Pro progression string, used verbatim (power users).
Example
A 12-bar B♭ blues:
{
"title": "Blues for Probe",
"composer": "Chris Farrell",
"style": "Medium Swing",
"key": "Bb",
"measures": [
{"chords": ["Bb7"]}, {"chords": ["Eb7"]}, {"chords": ["Bb7"]}, {"chords": ["Bb7"]},
{"chords": ["Eb7"]}, {"chords": ["Eb7"]}, {"chords": ["Bb7"]}, {"chords": ["G7"]},
{"chords": ["C-7"]}, {"chords": ["F7"]}, {"chords": ["Bb7","G7"]}, {"chords": ["C-7","F7"]}
]
}Produces:
| Bb7 | Eb7 | Bb7 | Bb7 |
| Eb7 | Eb7 | Bb7 | G7 |
| C-7 | F7 | Bb7 G7 | C-7 F7 |Chord syntax
Root + quality + optional /bass: C, C-7, C^7, C7b9, C-7/Bb. Alternate chords in parentheses: (Db^7). No chord: use "noChord": true. Custom/free-text qualities: wrap in asterisks, e.g. C*lyd*. Call list_chord_qualities for the full vocabulary.
Sections, repeats, endings
{"chords": ["C^7"], "section": "A", "open": "{"} // start an A section + repeat
{"chords": ["G7"], "ending": 1, "close": "}"} // first ending, close repeat
{"chords": ["G7"], "staffText": "D.C. al Coda", "coda": true}How it works
obfuscate.ts— port of theirealb://scrambling (magic prefix1r34LbKcu7+ literal substitutions + the symmetric 50-byte "hussle"). Verified against the published reference vector and round-tripped.layout.ts— distributes each measure's chords across the fixed cell budget (1/2/4 chords map cleanly; dense measures comma-pack at small size) and assembles the progression with barlines, sections, time signatures and endings.url.ts— builds and parses both URL schemes (10-field modern, 6-field legacy), composer/title sort-ordering, percent-encoding.render.ts— ASCII grid + standalone HTML.
Development
npm test # vitest: obfuscation vectors, layout cell-counts, URL round-trips
npm run typecheck
npm run dev # run from source with tsxCredits
Format details from the iReal Pro custom-URL protocol and the reference
implementations under docs/ (pyrealpro, Data::iRealPro, musicxml-irealpro).
License
MIT
Available Tools
9 toolsanalyze_chartAnalyze a chart's harmonyA
Harmonic analysis to help plan a solo: Roman numerals, chord function, a chord-scale recommendation per chord (with the actual scale notes), detected ii–V(–I) cells, and a short jam plan. Pass slug to analyze a saved chart, or pass key + measures to analyze inline.
Inputs: title (required), bpm, key, raw, +8 more.
create_chartCreate iReal Pro chartA
Build an iReal Pro chord chart from structured measures (or a raw progression). Every measure is padded to a fixed cell width so iReal Pro wraps to exactly measuresPerLine measures per line (default 4). By default the chart is SAVED to the on-disk library and served by the standalone HTTP server (so it's reachable from other devices on the network). Returns a modern irealb:// import link, a legacy irealbook:// link, the served URLs, an ASCII layout preview, and validation warnings.
Inputs: title (required), bpm, key, raw, +10 more.
decode_chartDecode an iReal Pro URLA
Parse an existing irealb:// or irealbook:// URL (or HTML containing one) back into its title, composer, style, key, the raw progression, and a best-effort measure list — useful for editing an existing chart.
Inputs: url (required).
delete_chartDelete a saved chartA
Remove a chart from the library by slug (deletes its .json and .html).
Inputs: slug (required).
list_chartsList saved chartsA
List all charts in the on-disk library, with their slugs and served URLs.
Inputs: no named parameters.
list_chord_qualitiesList chord vocabularyA
List the chord roots, qualities, time signatures, and key signatures iReal Pro understands, so generated charts use valid symbols. Chord = root + quality + optional /bass (e.g. C-7/Bb).
Inputs: no named parameters.
list_stylesList iReal Pro stylesA
List the built-in iReal Pro play-along styles, grouped by family (Jazz / Latin / Pop).
Inputs: no named parameters.
preview_chartPreview chart layoutA
Render only the ASCII layout grid for a chart (measuresPerLine per row) without building the import links. Fast way to check the 4-bars-per-line layout while iterating on chords.
Inputs: title (required), bpm, key, raw, +7 more.
server_infoHTTP server infoA
Report the library directory, the configured port, and the LAN URLs where the chart server is (or will be) reachable from other devices. Also gives the command to start the server.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct operation: creating, analyzing, decoding, deleting, listing charts, querying chord qualities/styles, previewing layout, and server info. No functional overlap.
All tool names follow a consistent verb_noun snake_case pattern (e.g., analyze_chart, list_charts, list_styles). No mixing of conventions.
9 tools cover the core workflow of iReal Pro chart management without being excessive. Each tool serves a clear purpose, and the count is well-scoped.
The tool set covers create, read (list, decode, preview), analyze, and delete. A minor gap is the lack of an update/edit tool, requiring delete+create for modifications.
Maintenance
Related MCP Connectors
HTML to PDF is a pain. Printed from a browser, your agent's Markdown report has no contents page with page numbers. legivel turns the same Markdown into a typeset PDF with one tool call. Invoices come from a saved template: JSON fills the fields, and a list or CSV fills the table. legivel generates the PDF in memory and never stores the documents you convert or your PDFs. Templates you save are the exception: they are stored encrypted until you delete them. Ten tools, with an API key or MCP sign-in. 100 free documents a month and 3 saved templates.
Floor plans as code: compile, lint and repair ArchLang (.arch) floor plans to SVG, DXF and PDF.
Build and publish pages, manage collections, records and files in a Markerloop workspace.
Compliant PDFs (PDF/A-2A + PDF/UA-1) from markdown or a compact DSL - fast, no headless browser.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA composition-focused server built on music21 for generative music workflows, enabling melody generation, musical transformations, chord reharmonization, counterpoint creation, and MIDI export through constraint-based algorithmic composition tools.1MIT
- AlicenseAqualityBmaintenanceProvides atomic music-theory and MIDI tools for composing, enabling LLMs to chain deterministic steps like scale/chord lookups, degree resolution, rhythm generation, and MIDI rendering.131MIT
- AlicenseAqualityCmaintenanceDeterministic music-theory MCP server and API for AI agents — analyze chords, run Roman-numeral analysis, generate voicings, and reharmonize progressions. Computed from music theory, not hallucinated.586 npm13PolyForm Noncommercial 1.0.0
- AlicenseNot gradedqualityDmaintenanceEnables Claude to compose real music from chord-symbol descriptions into MIDI files and audio previews, with musicology cross-checks on every chord.1AGPL 3.0