
Webear
io.github.asume21Published by GitHub account asume21v1.2.4Updated Oct 24, 2026
Give your AI coding assistant ears — capture, analyze, and describe live audio.
Overview
WebEar lets an AI coding assistant capture and analyze audio from a live web app's Web Audio graph, with optional visual, performance, network, security and log
- What you can do
- Capture short audio clips from the running web app's Web Audio output and analyze them for loudness, peak, clipping, spectral centroid, frequency bands, BPM and timing jitter, or get a plain-English description of how it sounds. Compare two captures to flag changes in loudness, tone, timing and clipping, and get structured mixing feedback or a groove score. Capture and analyze canvas/video visuals, performance telemetry, network timings, security exposure and console logs through the wider Web Perception sensor suite.
- When to use it
- Useful for Web Audio, Tone.js, game audio and music app developers who want the assistant to hear and measure what their app outputs while debugging mixes, effects or regressions between commits. Also relevant for checking visual, performance, network and console behavior of a local web app from inside the IDE.
- Requirements
- Runs locally over stdio via npx, needs Node.js 18 or newer and a browser supporting MediaRecorder. The Express middleware and client snippet must be added to your dev server and web app, and WEBEAR_BASE_URL must point at that server. A CODEDSWITCH_API_KEY is optional: without it, local analysis needs ffmpeg on the PATH; with it, full analysis, descriptions and diffs are unlocked.
Installation
In SourceWeft
- Open Webear in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
webear
[npm version] [npm downloads] [License: MIT] [MCP Compatible]
Give your AI real senses — hear, see, and feel any web app.
An MCP server + browser SDK that gives AI coding assistants direct sensory access to a live web application. Audio, visuals, performance, network, security, and console — captured from the browser, analyzed in real time, delivered via MCP.
"The beat sounds muddy" → your AI captures 3 seconds, measures the spectral centroid at 580 Hz with 45% energy below 250 Hz, and tells you exactly why.
What It Does
How It Works
The key difference from every other audio MCP: this taps the Web Audio graph directly, bypassing room acoustics, microphone hardware, and the need to export files.
Quick Start
1. Install
2. Add the Express middleware to your dev server
3. Add the client snippet to your web app
Option A — auto-detect everything (Tone.js or raw Web Audio)
Option B — explicit AudioContext
Option C — Tone.js project
Option D — Three.js WebGL Game
Option E — plain script tag
4. Configure your IDE
Claude Code (.mcp.json in project root):
Cursor (.cursor/mcp.json):
Windsurf (mcp_config.json):
5. Get an API key — optional, and not to start
analyze_audio works with no key and no account. If ffmpeg is on your PATH,
it decodes and analyzes the capture on your machine and returns a basic report:
duration, loudness, peak level and whether the audio is clipping. Nothing is
uploaded. Try the tool before you sign up for anything.
A key unlocks the parts that need more than arithmetic:
To get one:
- Create a free account at codedswitch.com.
- Go to codedswitch.com/developer (also in the account menu as Developer API).
- Click Generate API Key — that value is your
CODEDSWITCH_API_KEY. Keys start withwbr_.
Free tier: 50 analyses/day. No credit card required.
6. Start your dev server, open your app, play audio, then ask your AI:
"Capture 3 seconds and tell me why the bass sounds muddy."
"Compare the audio before and after my last commit."
"Is there any clipping in the high-frequency range?"
Example Output
analyze_audio
diff_audio
Configuration
Environment Variables
Middleware Options
Client Options
Requirements
- Node.js >= 18
- A browser that supports
MediaRecorder(Chrome, Firefox, Edge, Safari 14+) - A
CODEDSWITCH_API_KEYfor analysis (free at codedswitch.com)
Who Is This For?
- Web Audio / Tone.js developers — debug beats, synths, effects, and mixing without leaving your IDE
- Game audio developers — verify sound effects, spatial audio, and mixing in real-time
- Music app builders — catch regressions between code changes with
diff_audio - Podcast / streaming apps — validate audio quality, levels, and encoding
- Anyone whose app makes sound — if it has a Web Audio graph, your AI can now hear it
Why Not Just Use the Microphone?
Microphone MCPs capture room sound — your fan noise, chair creaks, and room reverb are all in the recording. webear taps the Web Audio API before it hits the DAC, giving you a clean digital signal with no room artifacts.
Web Perception — Full Sensor Suite
WebEar started as audio-only. Web Perception expands it to 6 senses:
Install the full browser SDK
Or use a single sensor:
Connect via MCP (hosted relay — no local server required)
Available MCP Tools
Get an API Key
- Create a free account at codedswitch.com.
- Open codedswitch.com/developer — also linked as Developer API in the account menu.
- Click Generate API Key and copy it. Keys start with
wbr_.
Free tier: 50 analyses/day, no credit card required.
Changelog
2.0.1
- Fixed the getting-started path for API keys. The previous instruction ("Settings → WebEar") was wrong — there is no WebEar section under Settings. Keys live at codedswitch.com/developer (linked as Developer API in the account menu). Both the Quick Start and the Web Perception sections now point to the correct place.
- The SDK's "missing API key" console error now links straight to the key page.
Contributing
See CONTRIBUTING.md.
License
MIT — see LICENSE
Author
Built by @asume21 — CodedSwitch
Source: README.md at commit fa1ce2e
Tools
0Version history
1- v1.2.4LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts