Skip to main content
Glama
REW MCP Server

REW MCP Server

by fl0zan0

REW MCP Server

AI-powered room acoustics analysis for studio monitoring

License: MIT Node.js TypeScript CI Tests

A Model Context Protocol server that connects Claude to Room EQ Wizard, turning raw measurements into actionable acoustics guidance.

Getting Started · Tools · Plugin · Docs · Contributing

NOTE

This is a fork of koltyj/rew-mcp. The rew-mcp package on npm (1.0.0) predates upstream fixes and does not work with Claude Code (tool names contain dots). This fork tracks upstream main and adds a fix for REW's /measurements response format (see CHANGELOG). Install it from GitHub as shown below, not from npm.


What is this?

REW MCP Server lets an LLM control Room EQ Wizard, analyze your measurements, and coach you through room treatment and speaker placement — step by step, one recommendation at a time.

Instead of staring at graphs, you get answers:

"You have a 12 dB null at 83 Hz caused by speaker boundary interference. Your monitors are 0.97 m from the rear wall — move them to 1.4 m or 0.6 m to shift the cancellation frequency out of the critical listening range. GLM cannot fix this; it's a physics problem."

Key capabilities

  • Guided calibration — Mic gain staging, SPL calibration to 85 dB reference, L/R/Sub measurement sessions

  • Plain language analysis — Room modes, SBIR, reflections, symmetry issues explained with causes and fixes

  • GLM transparency — What Genelec's DSP corrected vs what it physically cannot

  • Placement optimization — One change at a time, measure after each, validate the improvement

  • 27 MCP tools — Full programmatic control of REW's API: measurements, signal generator, SPL meter, RTA, EQ, and more


Related MCP server: chat-with-audio

Getting Started

Requirements

  • Node.js 20+

  • Room EQ Wizard running with API enabled (-api flag or Preferences)

  • Measurement microphone (calibrated preferred — UMIK-1, UMIK-2, etc.)

Install

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "rew-mcp": {
      "command": "npx",
      "args": ["-y", "github:fl0zan0/rew-mcp"]
    }
  }
}

Claude Code

claude mcp add rew-mcp -- npx -y github:fl0zan0/rew-mcp

Cursor

Install in Cursor

Or: Settings > Features > MCP Servers > npx -y github:fl0zan0/rew-mcp

VS Code

Install in VS Code

The first launch takes a little longer: npm clones the repository and builds it.


Example Workflow

You:    "Help me calibrate my studio monitors"

Claude: Connects to REW → checks your mic levels → calibrates to 85 dB SPL
        → measures Left, Right, Sub → analyzes the room → finds issues:

        1. 14 dB mode at 62 Hz (axial mode, fixable with bass trapping)
        2. 8 dB SBIR null at 120 Hz (move speakers 15 cm from rear wall)
        3. 3 dB L/R asymmetry above 2 kHz (side wall reflection)

        → guides you through fixes one at a time
        → re-measures after each change
        → validates improvement: "62 Hz peak reduced from 14 dB to 4 dB ✓"

Tools

Offline Analysis

Tool

What it does

rew_analyze_room

Full-room analysis with prioritized, fixability-ranked recommendations

rew_analyze_room_modes

Detect peaks, nulls, and correlate with theoretical room modes

rew_analyze_decay

RT60, EDT, and ringing analysis (ISO 3382)

rew_analyze_impulse

Early reflection detection and path estimation

rew_compare_measurements

Before/after, L/R symmetry, multi-position comparison

rew_compare_to_target

Score response against flat, Harman, REW room, or custom curves

rew_interpret_with_glm_context

What GLM can fix vs what requires physical changes

rew_average_measurements

Spatial averaging (RMS, vector, hybrid methods)

rew_optimize_room

One-at-a-time placement optimization with validation

rew_ingest_measurement

Parse REW text exports for offline analysis

REW API Control

Tool

What it does

rew_api_connect

Connect to REW's REST API

rew_api_audio

Configure input/output devices and sample rate

rew_api_check_levels

Verify mic gain (clipping/optimal/low zone feedback)

rew_api_calibrate_spl

Semi-automated SPL calibration to target level

rew_api_measure

Trigger sweeps, SPL readings, or configure measurement

rew_api_measure_workflow

Orchestrated setup + level check + calibration + measurement

rew_api_measurement_session

Stateful L/R/Sub measurement sequence

rew_api_generator

Signal generator: pink noise, sweeps, tones

rew_api_spl_meter

Live SPL metering (A/C/Z weighting, Slow/Fast/Impulse)

rew_api_rta

Real-time analyzer control and capture

rew_api_list_measurements

List loaded measurements

rew_api_get_measurement

Fetch measurement data by UUID

rew_api_import

Import measurement files into REW

rew_api_measurement_commands

Execute per-measurement REW commands

rew_api_measurement_eq

Manage per-measurement EQ, filters, and targets

rew_api_eq

Global EQ defaults, house curves

rew_api_groups

Measurement group management

Prompts & Resources

Prompt

Description

rew_calibration_full

Complete end-to-end calibration workflow

rew_gain_staging

Standalone mic gain and level calibration

rew_measurement_workflow

Session-aware L/R/Sub measurement sequence

rew_optimization_workflow

Iterative placement optimization loop

URI Template

Description

session://{session_id}

Session state, step, and captured measurements

measurement://{measurement_id}

Stored frequency response data and metadata

recommendations://{session_id}

Active optimization recommendations

history://{session_id}

Measurement history and summaries


Claude Code Plugin

For Claude Code users, the included plugin adds guided workflows, domain knowledge, and quality automation on top of the MCP server.

# From a cloned repo
claude --plugin-dir ./plugin

# Or installed globally from GitHub (installs both the MCP server and plugin)
npm install -g github:fl0zan0/rew-mcp
claude --plugin-dir $(npm root -g)/rew-mcp/plugin

Commands

Command

Description

/rew:calibrate

Full calibration workflow — levels, SPL, L/R/Sub, analysis, optimization

/rew:analyze

Analyze measurements with prioritized recommendations

/rew:optimize

Iterative placement optimization cycle

/rew:status

Session state and next recommended step

Skills & Automation

Component

What it provides

room-acoustics skill

Room modes, SBIR, treatment, GLM knowledge, target curves

rew-workflows skill

Tool chaining patterns, workflow sequencing, best practices

measurement-reviewer agent

Proactive data quality review after measurements

workflow-enforcement hook

Soft-warns when tools are called out of recommended order

See plugin/README.md for full details.


Documentation

Document

Description

Architecture

System design and data flow

GLM Context

How Genelec GLM works and its limitations

Analysis Rules

Detection algorithms and thresholds

File Formats

REW export format specifications

Resources

MCP resource URIs and payload shapes

Examples

End-to-end measurement and analysis workflows


Development

npm install          # Install dependencies
npm run build        # Build TypeScript
npm test             # Run tests (884 passing)
npm run test:coverage # With coverage report
npm run lint         # ESLint
npm run dev          # Watch mode

Contributing

Contributions welcome. See Contributing Guide and Code of Conduct.

git checkout -b feature/your-feature
npm test
git commit -m 'feat: add your feature'
git push origin feature/your-feature
# Open a Pull Request

License

MIT © Kolton Jacobs


Changelog · Report Bug · Request Feature

Available Tools

27 tools
rew_analyze_decayAnalyze Decay TimesB

Analyze decay characteristics from impulse response data to identify frequencies with excessive ringing or resonance. Implements ISO 3382 compliant T20/T30/EDT calculations.

Inputs: measurement_id (required), frequency_range_hz, decay_threshold_seconds.

rew_analyze_impulseAnalyze Impulse ResponseC

Analyze impulse response data to detect early reflections, estimate reflection paths, and assess their impact on sound quality.

Inputs: measurement_id (required), analysis_options.

rew_analyze_roomUnified Room AnalysisA

Comprehensive room analysis combining peaks/nulls, room modes, sub integration, and L/R symmetry. Returns top 5 prioritized recommendations based on fixability-first scoring (60% fixability + 40% severity). Automatically handles missing optional inputs.

Inputs: measurement_id (required), room_dimensions, pre_measurement_id, sub_measurement_id, +2 more.

rew_analyze_room_modesAnalyze Room ModesB

Analyze a measurement for room modes, peaks, and nulls. Optionally correlates detected issues with theoretical room modes based on room dimensions.

Inputs: measurement_id (required), analysis_options, room_dimensions_m.

rew_api_audioConfigure REW AudioB

Configure REW audio devices via API. Actions: status, list_devices, set_input, set_output, set_sample_rate. Use to select measurement mic and output device.

Inputs: action (required), device, channel, mapping, +1 more.

rew_api_calibrate_splCalibrate Monitor SPLA

Semi-automated monitor level calibration workflow. Actions: start (play pink noise + start SPL meter), check (read current SPL + get adjustment guidance), stop (end calibration). Guides user to target SPL (default: 85 dB broadcast reference) with configurable tolerance.

Inputs: action (required), meter_id, weighting, target_spl, +1 more.

rew_api_check_levelsCheck REW Input LevelsA

Check input levels for mic gain calibration. Reads RMS/peak dBFS and provides zone-based feedback (Clipping, Hot, Optimal, Low, Very Low) with adjustment guidance. Blocks measurement for clipping or very low conditions.

Inputs: target_rms.

rew_api_connectConnect to REW APIA

Connect to a running REW instance's REST API. REW must be launched with -api flag or have API enabled in preferences. Default port is 4735.

Inputs: host, port, timeout_ms.

rew_api_eqEQ ManagementC

Manage global EQ defaults and settings via API. Actions: list_equalisers, list_manufacturers, get_defaults, set_defaults, get_house_curve, set_house_curve.

Inputs: action (required), defaults, house_curve.

rew_api_generatorControl REW Signal GeneratorC

Control REW signal generator via API. Generate test tones, pink noise, sweeps. Actions: status, start, stop, set_signal, set_level, set_frequency, list_signals.

Inputs: action (required), signal, level_db, frequency_hz.

rew_api_get_measurementGet REW MeasurementA

Fetch a measurement directly from REW via API. Use UUID (not index) to identify measurements, as indices shift when measurements are added/removed.

Inputs: measurement_uuid (required), metadata, smoothing, include_ir, +1 more.

rew_api_groupsMeasurement GroupsC

Manage measurement groups via API. Actions: list, create, get, update, delete, list_measurements, add_measurement, remove_measurement.

Inputs: action (required), data, group_id, group_name, +1 more.

rew_api_importImport MeasurementsC

Import measurement data into REW via API. Actions: frequency_response_file, frequency_response_data, impulse_response_file, impulse_response_data, rta_file, sweep_recording.

Inputs: action (required), data, file_path.

rew_api_list_measurementsList REW MeasurementsA

List all measurements available in the connected REW instance. Requires prior connection via rew_api_connect.

Inputs: filter_type.

rew_api_measureControl REW MeasurementsB

Control REW measurements via API. Actions: status (get config), sweep (trigger measurement), spl (SPL measurement), cancel, configure. Note: Automated sweep measurements require REW Pro license.

Inputs: action (required), mode, config, protection_options.

rew_api_measurement_commandsMeasurement CommandsC

Execute per-measurement commands via API. Actions: list_commands (get available commands for a measurement), execute (run a command on a measurement).

Inputs: action (required), measurement_uuid (required), command, parameters.

rew_api_measurement_eqMeasurement EQC

Manage per-measurement EQ settings via API. Actions: get_equaliser, set_equaliser, get_filters, set_filters, get_target, set_target, predicted_response, filter_response, match_target.

Inputs: action (required), measurement_uuid (required), filters, equaliser, +1 more.

rew_api_measurement_sessionMeasurement Session WorkflowB

Guided L/R/Sub measurement workflow with session state. Actions: start_session (create new), measure (trigger measurement), get_status (check progress), stop_session (end). Sessions persist across tool calls and can be resumed. REW Pro license required for automated measurements.

Inputs: action (required), notes, channel, session_id.

rew_api_measure_workflowREW Measurement WorkflowB

Complete measurement workflow orchestration. Actions: setup (auto-configure devices), check_levels (verify signal chain), calibrate_level (target SPL), measure (single sweep), measure_sequence (L/R or multi-position). Handles device selection, blocking mode, and result retrieval automatically. Note: Sweep measurements require REW Pro license.

Inputs: action (required), setup, sequence, measurement.

rew_api_rtaReal-Time AnalyzerC

Control REW Real-Time Analyzer via API. Actions: start, stop, capture, reset, configure, read_levels, read_captured, read_distortion.

Inputs: action (required), config.

rew_api_spl_meterControl REW SPL MeterB

Control REW SPL meter via API for live level monitoring. Supports A/C/Z weighting, Slow/Fast/Impulse response. Actions: start, stop, read, configure.

Inputs: action (required), config, meter_id.

rew_average_measurementsAverage MeasurementsA

Create a spatial average from multiple measurement positions. Implements REW's averaging methods: RMS (incoherent, recommended for spatial averaging), Vector (coherent, requires phase data), or hybrid methods. Useful for multi-position room calibration.

Inputs: measurement_ids (required), method, weights, align_spl, +3 more.

rew_compare_measurementsCompare REW MeasurementsB

Compare two or more REW measurements to determine what improved, worsened, or stayed the same. Supports pre/post GLM comparison, placement comparisons, and L/R symmetry analysis.

Inputs: comparison_type (required), measurement_ids (required), frequency_range_hz, reference_measurement_id.

rew_compare_to_targetCompare to Target CurveB

Compare a measurement against a target response curve. Supports flat, REW room curve (LF rise + HF fall), Harman curve, or custom curves. Provides deviation statistics and recommendations.

Inputs: measurement_id (required), target_type, custom_curve_points, evaluation_range_hz, +1 more.

rew_ingest_measurementREW Measurement IngestionC

Parse and store a REW measurement export for analysis. Accepts frequency response or impulse response data in REW text export format.

Inputs: metadata (required), file_contents (required).

rew_interpret_with_glm_contextGLM-Aware InterpretationC

Interpret measurement analysis results considering Genelec GLM's capabilities and limitations. Explains what GLM can address, what requires physical solutions, and provides calibration-aware recommendations.

Inputs: glm_version, comparison_id, measurement_id, analysis_results.

rew_optimize_roomRoom Optimization GuidanceA

Get placement recommendations, validate adjustments, and track optimization progress. Actions: get_recommendation (next issue to fix), validate_adjustment (check if change helped), check_progress (overall status toward +-3dB target). One recommendation at a time for scientific approach.

Inputs: action (required), measurement_id (required), session_id, room_dimensions, +6 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 27 tools

    Disambiguation2/5

    Several tools have overlapping boundaries: rew_api_measure, rew_api_measure_workflow, rew_api_measurement_session, rew_api_calibrate_spl, and rew_api_check_levels all touch triggering measurements and calibration, so an agent can easily misselect. Additionally rew_analyze_room is a superset that duplicates rew_analyze_room_modes and the L/R symmetry of rew_compare_measurements, rew_api_eq overlaps rew_api_measurement_eq (global vs per-measurement), and rew_ingest_measurement overlaps rew_api_import.

    Naming Consistency3/5

    There is a consistent snake_case style and clear prefix families (rew_api_*, rew_analyze_*, rew_compare_*, rew_optimize_*), which is good. However two paradigms coexist: some tools are verb_noun (rew_api_list_measurements, rew_api_get_measurement) while others are resource containers driven by an action parameter (rew_api_eq, rew_api_groups, rew_api_measurement_eq), making the pattern only partially predictable.

    Tool Count3/5

    27 tools is on the heavy side for a room-acoustics calibration server, and the workload is partly inflated by overlapping measurement/calibration wrappers. Many tools legitimately cover distinct hardware resources (RTA, generator, SPL meter, audio devices), but the total feels bloated rather than tightly scoped.

    Completeness4/5

    The surface is broadly complete for the domain: connect/list/get, measurement orchestration, analysis (room modes, decay, impulse, target compare), EQ, groups, import, and optimization workflow are all covered. Minor gaps remain, such as deleting individual measurements and exporting results, but core lifecycle coverage is strong.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables chat-driven audio analysis and enhancement using local Claude, including denoising, EQ, compression, and loudness normalization, with an A/B viewer for synchronized comparison.
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables Claude to analyze and repair audio files by viewing spectrograms, measuring noise, and applying fixes like healing hums or isolating speakers, all with undoable operations and without uploading audio.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables Claude Desktop to drive FL Studio 2025 and 2026 through natural language, diagnosing and repairing mixes, configuring plugins, writing notes and chords in any scale, exporting arrangements to MIDI, and analyzing audio for tempo, key, and melody.
      MIT