nobu
Project Initialization: Create a multi-layer MIDI project with a name and initial BPM.
Scale and Mood Guidance: Suggest musical scales and pitch palettes based on game scene moods (e.g., combat, exploration, magical). Generate specific scales (major, minor, modes) from any tonic.
Layered Composition: Add independent instrument layers (melody, harmony, bass, drums) with custom rhythms, lengths, MIDI channels, chiptune programs (NES pulse, triangle, etc.), drum sounds (kick, snare, hihat), velocities, and swing offsets.
Tempo Control: Schedule precise BPM changes at specific beats for dynamic pacing.
Project Inspection: List all layers with note counts and durations.
MIDI Export: Export as a single multi-track .mid file with loop metadata for game engines (Godot, Unity, FMOD, Wwise).
Audio Rendering: Render MIDI to audio in multiple modes: pure chiptune, hybrid (SoundFont drums + chiptune melody), full SoundFont, or automatic mode with fallback to chip. Output WAV/OGG files.
Rendering Utilities: Check rendering capabilities (FluidSynth, SoundFont health), discover available SoundFont files, and manage fallback behavior.
Enables composing and exporting multi-track chiptune/retro MIDI files, with support for scales, layers, tempo changes, and loop metadata.
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., "@nobu compose a upbeat chiptune battle theme for a forest level"
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.
nobu
Game-agnostic MCP toolkit for composing chiptune / retro MIDI and rendering game audio.
Plug nobu into Cursor, Claude Desktop, or Kilo Code. Ask an agent to compose a stage theme — get a real multi-track .mid, then render to .ogg / .wav for your engine.
nobu ships no game-specific data. Your project supplies tonic, mood, and biome params.
agent / examples ──► nobu MCP ──► assets/midi/{project}.mid
│
assets/soundfonts/*.sf2 ──┐ ▼
└─► render MCP / scripts ──► output/audio/{project}/wav|ogg/Agent-ready?
Cursor / Claude Code / Kilo (opened on this repo): yes — after clone the agent should read AGENTS.md / CLAUDE.md, run python scripts/bootstrap.py --no-prompt, reload MCP, and be ready. Humans can run python scripts/bootstrap.py without flags for an interactive optional-upgrade menu. Rules/skills ship in-repo (.cursor/rules, .claude/skills); MCP/Kilo configs are generated locally by bootstrap (templates: .mcp.example.json, .kilo/kilo.example.jsonc).
Cursor caveat: new project MCP servers start disabled (Cursor security). After bootstrap + reload, toggle nobu on once under Settings → MCP (or Customize → MCP). Stays on for that workspace afterward — we cannot force-enable from the repo.
Claude Desktop: almost — same bootstrap, but the agent must also merge the MCP snippet into the global claude_desktop_config.json (Desktop does not auto-load project .mcp.json).
Not magic: python must be on PATH; open the cloned folder; reload after bootstrap; on Cursor, enable nobu once if it appears disabled.
Related MCP server: cochlea
Paste this to your agent
Clone https://github.com/francescojr/nobu.git (sibling folder or into this workspace).
Read AGENTS.md (and CLAUDE.md if present) and run: python scripts/bootstrap.py --no-prompt
If this is a game project, also run: python scripts/bootstrap.py --integrate <this_project_root> --no-prompt
Reload MCP. In Cursor, enable server "nobu" if it is disabled (Settings → MCP).
Confirm tools: compose (start_project … export_midi) + Mega Drive (export_megadrive) + render (render_project / render_all_modes).
Then follow .claude/skills/game-music-producer/ — deliver MIDI, audio, and/or VGM when I ask.Integrating into an existing game:
Set up https://github.com/francescojr/nobu as our game-music MCP.
Clone it next to this repo, run python scripts/bootstrap.py --integrate <absolute path to this project> --no-prompt,
reload MCP, and confirm tools work. Do not hardcode our game data into nobu.Agents follow AGENTS.md. Bootstrap rewrites project-local .cursor/mcp.json + .mcp.json + .kilo/kilo.jsonc to the local venv (never global Cursor MCP).
Fastest path to sound
Human (interactive menu for optional upgrades):
git clone https://github.com/francescojr/nobu.git
cd nobu
python scripts/bootstrap.py
# → optional menu for tinysoundfont / FluidSynth / ffmpeg hints
# → reload Cursor/Kilo → enable nobu once → ask your agent for musicAgent / CI (no prompts):
python scripts/bootstrap.py --no-promptProve audio works (no MCP):
python scripts/bootstrap.py --no-prompt --smokeOptional upgrades later:
python scripts/bootstrap.py --with-render --no-prompt # hybrid drums (pip)
python scripts/bootstrap.py --doctor # re-check deps
# SF2: copy your .sf2 → assets/soundfonts/default.sf2 (see assets/soundfonts/README.md)
# Kilo: Settings → MCP → nobu → Network Timeout → 5 minWorks out of the box vs optional
After bootstrap | Works? |
Compose + render chip via MCP | Yes (use |
Render hybrid | Needs |
Render sf2 | Needs FluidSynth CLI + your |
OGG on Windows |
|
Quick start (manual)
git clone https://github.com/francescojr/nobu.git
cd nobu
python scripts/bootstrap.py
# creates .venv, installs deps, writes .cursor/mcp.json, optional upgrade menuThen reload MCP. In Cursor: Settings → MCP → enable nobu once if disabled. Full notes: SETUP.md.
Demo without MCP
python examples/demo_biome_ost.py
python scripts/render_midi.py --mode chip # always works, no SF2 needed
# → assets/midi/*.mid and output/audio/{project}/wav|ogg/Render modes (chip / hybrid / full SF2)
Mode | What you get | Requirements |
| Pure chiptune | None (default path without SF2) |
| SF2 drums + chiptune melodic |
|
| Full SoundFont (all instruments) |
|
| Best available | Never fails — degrades to chip |
Full SF2 always does FluidSynth → WAV, then converts to OGG (prefer ffmpeg on Windows). FluidSynth is not asked to write OGG directly.
python scripts/render_midi.py --mode chip
python scripts/render_midi.py --mode sf2 --soundfont assets/soundfonts/default.sf2
python scripts/render_track.py assets/midi/biome1_calm.mid --mode hybridFolder layout
Path | Purpose |
| MCP server entrypoint ( |
| Checklist agents run after clone |
| One-shot setup (venv, deps, Cursor |
| Kilo Code v7+ config ( |
| Generated / authored |
| Your |
| Rendered audio root — |
| Shared render library (CLI + MCP) |
| Batch MIDI → audio ( |
| Single-file render (same modes; SF2 → WAV → OGG) |
| Generic 4-biome × calm/combat demo |
| Agent skill + theory references |
Env overrides: NOBU_MIDI_DIR, NOBU_OUTPUT_DIR, NOBU_SF2 (also FLUID_SYNTH_SF2).
MCP tools
Tool | Role |
| Create an empty multi-layer project |
| Map scene mood → scale + pitch palette |
| Build a scale from tonic + type |
| Add melody / harmony / bass / drums (string drum names OK) |
| Schedule BPM changes (horizontal resequencing) |
| Inspect layers before export |
| Write |
| Builtin FM patches / optional BYO PCM readiness |
| MIDI → Mega Drive |
| Render one mode: chip / hybrid / sf2 / auto |
| Pure chiptune render shortcut |
| SF2 drums + chip melodic shortcut |
| Full SoundFont render shortcut |
| chip + hybrid + sf2 in one call |
| FluidSynth / SF2 / ffmpeg health check |
| Discover |
Audio output: output/audio/{project}/wav/ and .../ogg/. Mega Drive: .../vgm/.
Mood keys: safe_exploration, heroic_exploration, nostalgic_town, melancholic_dungeon, hostile_exotic_biome, magical_dreamlike, combat, victory, classic_retro.
SoundFonts
Place your own .sf2 at:
assets/soundfonts/default.sf2Or set NOBU_SF2=/path/to/yours.sf2. Re-check: python scripts/bootstrap.py --doctor or MCP get_render_capabilities.
Without a soundfont, chip render always works via the built-in NES-style synth. Hybrid/sf2 modes fall back to chip until you add a soundfont.
Mega Drive / VGM (SGDK)
Export a console-ready VGM after compose:
python scripts/export_megadrive.py assets/midi/my_track.mid --json
# → output/audio/my_track/vgm/my_track.vgmMCP: get_megadrive_capabilities → export_megadrive("my_track").
Builtin FM patches + PSG noise drums always work. Optional BYO patches/PCM live under assets/megadrive/ (not shipped — same policy as SoundFonts). See assets/megadrive/README.md. Point your SGDK .res at the VGM (XGM name "file.vgm"); rescomp runs xgmtool in the game project.
Agent skill
Copy or open this repo so Cursor / Claude can load:
.claude/skills/game-music-producer/
When the nobu MCP is connected, the skill instructs the agent to call the tools and deliver real MIDI and audio — not text-only sketches.
Versioning
nobu follows Semantic Versioning (MAJOR.MINOR.PATCH).
See CHANGELOG.md (Keep a Changelog categories).
There is no [Unreleased] section — Cursor session hooks cut a new version
whenever a conversation ends with meaningful changes.
Contributing
See CONTRIBUTING.md and CODE_OF_CONDUCT.md.
License
MIT — Copyright (c) 2026 nobu contributors.
nobu (Português)
Toolkit MCP game-agnostic para compor MIDI chiptune/retrô e renderizar áudio de jogo.
Cole isso no seu agente
Clone https://github.com/francescojr/nobu.git.
Leia nobu/AGENTS.md e rode: python scripts/bootstrap.py --no-prompt
Se for um projeto de jogo, rode também: python scripts/bootstrap.py --integrate <raiz_deste_projeto> --no-prompt
Recarregue o MCP, confirme o server "nobu" (16 tools: compose + Mega Drive + render).
Siga .claude/skills/game-music-producer/ — compose, render e/ou VGM quando eu pedir.Início rápido (manual)
git clone https://github.com/francescojr/nobu.git
cd nobu
python scripts/bootstrap.py # humano: menu interativo de optionals
python scripts/bootstrap.py --no-prompt --smoke # agente: prova chip sem MCP
python examples/demo_biome_ost.py
python scripts/render_midi.py --mode chip # funciona sem SF2Modos: chip (puro) · hybrid (SF2 drums + chip) · sf2 (SoundFont completo).
Sem SF2/FluidSynth → fallback automático para chiptune (não quebra).
SF2: FluidSynth → WAV → OGG (ffmpeg recomendado no Windows).
Detalhes: AGENTS.md · SETUP.md.
Pastas
Path | Uso |
| Arquivos |
| Seus |
| BYO patches/PCM opcionais (não distribuídos) |
|
|
Tools MCP (inglês)
Compose: start_project → suggest_scale_for_mood → add_layer → list_layers → export_midi
Mega Drive: get_megadrive_capabilities → export_megadrive
Render: render_project / render_chip / render_hybrid / render_sf2 / render_all_modes
Licença
MIT.
Available Tools
7 toolsadd_layerA
Add ONE independent layer/channel to the project. Call this tool multiple times to stack as many layers as you want (melody, harmony, bass, drums) — each layer has its own length and rhythm, without needing to match the others in note count.
layer_type accepts: 'melody', 'harmony', 'bass', 'drums'.
Format of 'notes': each item is [pitch_or_piece, start_time_in_beats, duration_in_beats, optional_velocity_0_to_127]. If layer_type='drums', pitch may be a string ('kick', 'snare', 'closed_hihat', 'open_hihat', 'crash', 'ride', 'clap', 'rimshot', 'low_tom', 'mid_tom', 'high_tom') or a GM percussion MIDI number. Portuguese drum names are also accepted.
swing_offset: add a fixed offset (in beats, e.g. 0.02 to 0.08) to every ODD-index note, simulating light swing/humanization. Use 0.0 for straight quantized rhythm (classic chiptune aesthetic). For deliberate off-beats (e.g. hi-hat on 0.5, 1.5, 2.5), place start_time directly in the notes list — no swing_offset needed.
chiptune_program (ignored if layer_type='drums'): 'pulse_lead' (melody, NES pulse timbre, GM 80), 'pulse_harmony' (countermelody, GM 81), 'triangle_bass' (bass, NES triangle approx, GM 38).
Inputs: notes (required), layer_name (required), layer_type (required), project_name (required), +3 more. Returns: result
export_midiA
Render all project layers into a single multi-track .mid file. Call last, after all add_layer calls. Returns loop metadata (beats and bars) for configuring loop points in the engine (Godot/Unity/ FMOD/Wwise), since MIDI does not store that natively.
Default destination_dir is assets/midi/ (or NOBU_MIDI_DIR).
Inputs: project_name (required), destination_dir. Returns: result
generate_scaleA
Generate the correct MIDI notes for a musical scale, to use as a palette of valid pitches when composing. Use this tool (or suggest_scale_for_mood) ALWAYS before inventing note numbers manually — that avoids out-of-key / random-sounding melodies.
scale_type accepts: major, natural_minor, major_pentatonic, minor_pentatonic, dorian, mixolydian, phrygian, lydian.
Inputs: scale_type (required), tonic_midi (required), octaves. Returns: object
list_layersA
List all layers already added to the project, with note counts and duration for each. Use before export_midi to verify that every planned layer (melody, bass, drums, harmony) was actually added, or to decide whether to add more.
Inputs: project_name (required). Returns: object
set_tempo_changeA
Schedule a tempo (BPM) change at a specific absolute beat. Use for horizontal resequencing inside a single file — e.g. speed up when entering boss phase 2, or slow down for tension before a climax.
Inputs: new_bpm (required), project_name (required), time_in_beats (required). Returns: result
start_projectA
ALWAYS call this tool first, before any other, when composing a game track. Creates an empty project where layers (independent channels: melody, harmony, bass, drums) are added one by one via add_layer. Each layer may have a completely different length and rhythm from the others (e.g. a 4-note bass loop while the melody plays a 32-note phrase), matching how independent channels work on real NES/SNES hardware.
Inputs: bpm (required), project_name (required). Returns: result
suggest_scale_for_moodA
Use this tool BEFORE composing any melody, harmony, or bass line. It maps the scene's EMOTION/MOOD to the technically correct musical scale (VGM theory: major = joy/safe town, dorian = heroic/adventure, phrygian = hostile/exotic, natural_minor = melancholy/dungeon, mixolydian = folk/open road, lydian = magical/dreamlike, minor_pentatonic = tension/combat).
Accepted moods: safe_exploration, heroic_exploration, nostalgic_town, melancholic_dungeon, hostile_exotic_biome, magical_dreamlike, combat, victory, classic_retro.
Returns the chosen scale AND a list of MIDI pitches ready for add_layer — no need to invent note numbers from memory.
Inputs: mood (required), tonic_midi (required), octaves. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
The tools have distinct purposes, but suggest_scale_for_mood and generate_scale both deal with musical scales and could be confused if descriptions are not read carefully. However, the descriptions clarify their different use cases (mood-based vs. arbitrary scale generation).
All tool names follow a consistent verb_noun pattern in snake_case (e.g., list_layers, start_project, generate_scale). No deviations or mixing of styles.
With 7 tools, the server covers the core workflow of creating a game track: starting a project, selecting scales, adding layers, adjusting tempo, listing layers, and exporting. The count feels well-scoped for the domain.
The tool set covers the essential operations for composing a multi-layer MIDI track. Minor gaps exist, such as no tool to modify or delete a layer after addition, and no explicit tool to set initial tempo (only tempo changes). These are not critical for basic usage.
Maintenance
Related MCP Connectors
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
Synth, sampler and music tracker for AI assistants: sound effects, UI sounds and songs as audio.
Make games with AI: one MCP server that connects your agent to Unity, Unreal and Godot editors.
Autonomous music production for AI agents with MIDI generation, QC and provenance.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA music MCP server enabling multi-agent collaboration where AI agents jam together in real-time, with 20 tools, conductor mode, and zero dependencies.133 npm39AGPL 3.0
- AlicenseAqualityCmaintenanceRender, analyze, and verify audio (WAV or FLAC) through a fully offline, deterministic engine, exposed as MCP tools for AI agents.1215Apache 2.0
- FlicenseNot gradedqualityDmaintenanceMCP server that lets AI agents compose real music through a persistent server-side score, supporting planning, voice writing, verification, and MIDI export.-
- FlicenseNot gradedqualityCmaintenanceEnables AI assistants to create, parse, edit, and render MIDI files through standard MCP tools, returning absolute file paths to support iterative music generation and revision.-