Mefcs Mcp

io.github.cayocan由 GitHub 帳號 cayocan 發布v0.1.0更新於 Nov 21, 2026

Control M-VAVE Tank-G pedals and install TONE3000 tones through the M-EFCS USB bridge

概覽

AI 產生的概覽

透過 USB 控制 M-VAVE Tank-G 吉他效果器並從 TONE3000 安裝音色,讓助理讀取、編輯、備份與載入預設與取樣。

可以做什麼
  • 讀取效果器狀態:目前預設、旁通、全部 36 個預設與即時參數
  • 切換與調整:選擇預設、開關旁通、編輯並儲存參數,或不儲存直接即時試聽
  • 管理預設檔案:匯出與匯入 .atkg 預設庫,離線解析預設檔
  • 載入取樣:將 NAM A2 音箱取樣與 WAV 箱體 IR 轉換後寫入槽位,或僅預覽
  • 使用 TONE3000:搜尋音色、查看詳情、下載模型、一步安裝到槽位
適用情境
適合在 Windows 電腦上擁有 M-VAVE Tank-G(v2)的使用者,想讓助理查看、調整、備份或還原預設,或不必手動操作 M-EFCS 就能尋找並安裝 TONE3000 的取樣與 IR。
執行需求
Windows 10/11、Node.js 20 或更新版本、已安裝 M-EFCS(使用其中的 mefcs_ks_bridge.exe),並以 USB 連接效果器。選用變數:MEFCS_BRIDGE_PATH、MEFCS_BACKUP_DIR、TONE3000_DOWNLOAD_DIR、TONE3000_CLIENT_ID、TONE3000_API_KEY、TONE3000_TOKEN_FILE、MEFCS_CONFIG_FILE、MEFCS_NO_BROWSER。只有 TONE3000 相關工具需要免費帳號。
安裝前請注意
效果器相關工具會寫入裝置:編輯、匯入與槽位上傳會覆蓋預設或槽位,但會先自動備份,匯入還會回讀驗證。同一時間只能有一個程式連接效果器,使用前請關閉 M-EFCS,重新開啟前先中斷連線。TONE3000 憑證(client id,或 TONE3000_API_KEY 中的金鑰)保存在本機;README 建議不要把金鑰貼到對話中。伺服器可能會在瀏覽器開啟 TONE3000 頁面。非官方專案,與 M-VAVE 及 TONE3000 無關。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Mefcs Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

English | Português (BR)

mefcs-mcp

An MCP server that lets AI assistants (Claude, Cursor, VS Code Copilot, Gemini CLI, Codex and any other MCP client) control an M-VAVE Tank-G guitar pedal and pull tones from TONE3000.

It talks to the pedal over USB with the same protocol as the official M-EFCS app. The protocol is reverse engineered and documented in docs/PROTOCOL.md. It uses the USB helper that ships with M-EFCS, so nothing has to be installed on the pedal.

Unofficial project, not affiliated with M-VAVE / Sinco or TONE3000. Firmware update, repair and factory-restore functions are intentionally not implemented.


Contents

  1. What it can do
  2. Requirements
  3. Installation
  4. Connecting it to an AI client
  5. Configuration
  6. TONE3000 setup
  7. Tool reference
  8. Example prompts
  9. Safety
  10. How it works
  11. Troubleshooting
  12. Development
  13. Publishing
  14. License

What it can do

Pedal (Tank-G)

  • Read all 36 presets, or the live values of the active preset.
  • Switch presets, toggle bypass.
  • Edit any value (amp slot, gain, EQ, volume, gate, MOD / DELAY / REVERB type and knobs, cab slot, LED color) and save it to the pedal. A backup is taken automatically first.
  • Tweak the active preset live without saving.
  • Export and import .atkg preset files, the same format as M-EFCS "Share/Import all presets". Imports are backed up and verified.
  • Upload an amp capture (NAM A2 .nam, converted to "A2 Lite (Original)" like M-EFCS does) to amp slot 1-9, or preview it.
  • Upload a cab impulse response (.wav, any rate/bit depth, resampled to 44.1 kHz) to cab slot 1-8, or preview it.

TONE3000

  • Search tones (NAM A2 captures by default, or IRs) by text, gear type, make/model, tags or creator.
  • See a tone's details and its downloadable models.
  • Download .nam / .wav files.
  • Install a TONE3000 model straight onto a pedal slot in one step.
  • When keys or a login are missing, the server opens the right TONE3000 page in your browser for you.

Requirements

OSWindows 10/11. The USB helper is a Windows program.
Node.js20 or newer (node -v)
M-EFCSInstalled. The server uses its mefcs_ks_bridge.exe.
PedalM-VAVE Tank-G (v2) connected by USB
TONE3000Free account, only for the TONE3000 tools

Important: only one program can talk to the pedal at a time. Close M-EFCS before the AI uses a pedal tool. Ask the AI to run tankg_disconnect before opening M-EFCS again.

Installation

powershell
# 1. Get the codegit clone https://github.com/cayocan/mefcs-mcp.gitcd mefcs-mcp
# 2. Install dependencies and buildnpm installnpm run build
# 3. Optional: run the tests (they compare the output with captured M-EFCS traffic)npm test

The server entry point is dist/src/server.js. Once the package is published on npm you can skip the clone and use npx -y mefcs-mcp instead (see Publishing).

Find the full path of mefcs_ks_bridge.exe inside your M-EFCS folder (for example C:\Program Files\M-EFCS\mefcs_ks_bridge.exe). Standard locations are detected automatically; otherwise set MEFCS_BRIDGE_PATH.

Connecting it to an AI client

MCP is an open standard, so the same server works in every client that supports local (stdio) MCP servers. In each example, replace the paths with yours.

Claude Desktop

Edit %APPDATA%\Claude\claude_desktop_config.json and restart Claude Desktop:

json
{  "mcpServers": {    "mefcs": {      "command": "node",      "args": ["C:\\path\\to\\mefcs-mcp\\dist\\src\\server.js"],      "env": {        "MEFCS_BRIDGE_PATH": "C:\\Program Files\\M-EFCS\\mefcs_ks_bridge.exe",        "MEFCS_BACKUP_DIR": "C:\\path\\to\\mefcs-mcp\\backups",        "TONE3000_DOWNLOAD_DIR": "C:\\path\\to\\mefcs-mcp\\downloads"      }    }  }}

Claude Code

powershell
claude mcp add mefcs --scope user `  -e MEFCS_BRIDGE_PATH="C:\Program Files\M-EFCS\mefcs_ks_bridge.exe" `  -- node "C:\path\to\mefcs-mcp\dist\src\server.js"

Cursor

%USERPROFILE%\.cursor\mcp.json (global) or .cursor/mcp.json (project) takes the same mcpServers block as Claude Desktop.

VS Code (GitHub Copilot agent mode)

.vscode/mcp.json:

json
{  "servers": {    "mefcs": {      "type": "stdio",      "command": "node",      "args": ["C:\\path\\to\\mefcs-mcp\\dist\\src\\server.js"],      "env": { "MEFCS_BRIDGE_PATH": "C:\\Program Files\\M-EFCS\\mefcs_ks_bridge.exe" }    }  }}

Windsurf, Cline, Gemini CLI and others

They all accept the same three things: command = node, args = path to dist/src/server.js, and env = the variables below. The mcpServers JSON block from Claude Desktop goes in:

  • ~/.codeium/windsurf/mcp_config.json (Windsurf)
  • Cline's MCP settings
  • ~/.gemini/settings.json (Gemini CLI)

OpenAI Codex CLI

%USERPROFILE%\.codex\config.toml:

toml
[mcp_servers.mefcs]command = "node"args = ["C:\\path\\to\\mefcs-mcp\\dist\\src\\server.js"]env = { MEFCS_BRIDGE_PATH = "C:\\Program Files\\M-EFCS\\mefcs_ks_bridge.exe" }

Clients that only accept remote (HTTPS) MCP servers, such as web chat apps, cannot reach a USB pedal directly. The server has to run on the PC that has the pedal. See Publishing.

Configuration

VariableDefaultMeaning
MEFCS_BRIDGE_PATHauto-detected in Program Files / LocalAppDataFull path to mefcs_ks_bridge.exe
MEFCS_BACKUP_DIR~/mefcs-mcp-backupsAutomatic preset backups (TankG_<date>_<reason>.atkg)
TONE3000_DOWNLOAD_DIR~/mefcs-mcp-downloadsDownloaded .nam / .wav files
TONE3000_CLIENT_ID(none)TONE3000 publishable key; can also be saved at runtime
TONE3000_API_KEY(none)TONE3000 secret key t3k_cs_…, alternative to the login
TONE3000_TOKEN_FILE~/.mefcs-mcp/tone3000-tokens.jsonSaved TONE3000 session
MEFCS_CONFIG_FILE~/.mefcs-mcp/config.jsonKeys saved with tone3000_set_credentials
MEFCS_NO_BROWSER(unset)Set to 1 to never open the browser

TONE3000 setup

You only do this once, and you never need to edit config files for it:

  1. Ask the AI to search TONE3000 (for example "search TONE3000 for a Fender Twin"). Without keys, the server opens https://www.tone3000.com/settings in your browser.
  2. Log in there and generate API keys. Give the publishable key (client id) to the AI, which saves it with tone3000_set_credentials. It is stored in ~/.mefcs-mcp/config.json on your PC.
  3. The server then opens the TONE3000 approval page with your code. Click approve, and the AI runs tone3000_login_finish.
  4. Done. The session is saved and refreshed automatically. From now on, searches and downloads just work.

Prefer not to log in? Put the secret key (t3k_cs_…) in TONE3000_API_KEY yourself instead. Don't paste secret keys into a chat.

Notes:

  • The default rate limit is 100 requests per minute.
  • Searches default to NAM A2 captures, because the Tank-G loads the lite part of A2 files. Standard (A1) WaveNet captures cannot be converted.
  • TONE3000's API terms ask independent developers to credit TONE3000.

Tool reference

Pedal

ToolInputsWhat it does
tankg_connect—Opens the USB session (M-EFCS must be closed). Other tools connect on demand.
tankg_disconnect—Releases the pedal so M-EFCS can be used.
tankg_status—Active preset (1A…9D) and bypass state.
tankg_list_presets—All 36 stored presets, decoded.
tankg_get_presetpreset?, live?One stored preset, or the live values of the active one.
tankg_select_presetpresetSwitch preset.
tankg_update_presetpreset, changes, save? (default true)Edit and save. Backs up first. Also applied live if the preset is active.
tankg_set_live_valueschangesChange the active preset without saving.
tankg_set_bypassonGlobal bypass.
tankg_export_presetspathSave all presets to an .atkg file.
tankg_import_presetspathReplace all presets with an .atkg file (backup + read-back verification).
tankg_upload_amp_capturenamPath, slot? 1-9, name?Convert a NAM A2 capture and store it in an amp slot. Without slot it is only previewed.
tankg_upload_cab_irwavPath, slot? 1-8, level? 0-100Store a WAV IR in a cab slot (max ~30 ms at 44.1 kHz). Without slot it is only previewed.
tankg_read_preset_filepathDecode an .atkg file offline.
tankg_effect_types—Effect type indexes.

changes fields (all optional):

FieldRange
ampOnbool
ampSlot1-9
gain, treble, middle, bass, volume0-100
gate0-100, 0 = off
mod, delay, reverb{ on, type 0-2, amount, param2 0-100 }
cabSlot0-8, 0 = off
color{ r, g, b }

Effect types follow the knob zones in the official manual:

Blocktype 0type 1type 2amountparam2
MODchorusphasertremolomixrate
DELAYanalogtapedualmixtime
REVERBroomspringclouddecaymix

amount ranges from 0 to 42 (0 to 40 for type 2).

TONE3000

ToolInputsWhat it does
tone3000_auth_status—Shows the auth mode and whether you are logged in.
tone3000_set_credentialsclientId?, apiKey?Saves keys locally and starts the login (opens the approval page).
tone3000_login_start / tone3000_login_finish—Device login. Start opens the browser; finish waits up to 60 s for approval.
tone3000_searchquery?, gears?, makes?, tags?, creators?, sizes?, format? (nam/ir), sort?, calibrated?, page?, pageSize?Search tones.
tone3000_get_tonetoneIdDetails and downloadable models.
tone3000_download_modelmodelId, dir?Download a .nam / .wav.
tankg_install_tone3000_modelmodelId, slot?, name?, cabLevel?Download and send to an amp slot (.nam) or cab slot (.wav).

Example prompts

  • "Which preset is active on my Tank-G, and what does it have?"
  • "Turn off the reverb on 5D and lower the gain to 60."
  • "Make 1A's chorus subtler without saving, I want to hear it first."
  • "Back up all my presets to D:\Backups\tankg.atkg."
  • "Search TONE3000 for a Vox AC30 capture with lots of downloads and preview the best one."
  • "Install the Marshall JCM800 capture you found on amp slot 4 and point preset 3C at it."
  • "Find a Celestion V30 4x12 IR on TONE3000 and put it on cab slot 5."

Safety

  • There is no code path to firmware update, repair or factory restore, and every write is checked against an address allow-list (see assertAllowedWrite).
  • Preset edits and imports back up all 36 presets first. Imports are verified by reading the bank back.
  • Values are validated: knobs 0-100 (the range M-EFCS uses), slots 1-9 / 1-8, effect amounts within the type's zone. Untouched legacy values are kept as they are.
  • Slot uploads overwrite the slot. Without slot they only preview, and nothing is stored.
  • The browser is only opened for https://www.tone3000.com pages.
  • TONE3000 keys and tokens stay on your PC (~/.mefcs-mcp).

How it works

AI client ──MCP (stdio)──> mefcs-mcp ──stdin/stdout──> mefcs_ks_bridge.exe ──USB MIDI (SysEx)──> Tank-G                              └──HTTPS──> TONE3000 API
  • src/protocol/bridge.ts: spawns the M-EFCS helper (open-raw) and speaks its text protocol (send <hex> → data <hex>).
  • src/protocol/framing.ts: SysEx frames: 8-bit frame → 7-bit LSB-first bitstream, inverted-sum checksum.
  • src/devices/tankg.ts: memory map (preset bank, live preset, select/bypass/commit, model buffers, slot store) plus the write allow-list.
  • src/devices/tankg-presets.ts: 21-byte preset record codec (.atkg layout).
  • src/codecs/a2lite.ts: NAM A2 → device amp buffer. It takes the lite submodel, transposes the convolution weights and precomputes the zero-input state.
  • src/codecs/ir.ts: WAV → device cab buffer (44.1 kHz, int24, max 1358 samples).
  • src/tone3000/client.ts: TONE3000 API v1 (device login, search, models, download).

Troubleshooting

ProblemFix
"M-EFCS is open"Close M-EFCS; only one program can use the pedal.
"mefcs_ks_bridge.exe not found"Set MEFCS_BRIDGE_PATH to the file inside your M-EFCS folder.
"No M-VAVE device found"Check the USB cable/port; make sure the pedal is on.
"Timed out waiting for the pedal"Unplug and replug the pedal, then retry. Make sure nothing else is using it.
M-EFCS can't find the pedal after using the AIAsk the AI to run tankg_disconnect, or restart the AI client.
"not an A2 (SlimmableContainer) capture"Pick an A2 capture on TONE3000 (search already filters for them).
TONE3000 rate limitWait a minute (100 requests/min).
A preset change sounds wrongRestore the latest backup in MEFCS_BACKUP_DIR with tankg_import_presets.

Development

powershell
npm run build      # TypeScript -> dist/npm test           # golden tests against captured M-EFCS traffic + TONE3000 client testsnode scripts/smoke-test.mjs out.atkg   # live read-only test on a real pedal (M-EFCS closed)node scripts/normalize-knobs.mjs --dry-run

Two golden tests compare against third-party TONE3000 captures that are not redistributed in this repo. They are skipped automatically when test/fixtures/mesa.nam / ir8.wav are absent.

To add another M-VAVE device (MK300, Tank-B, …), add a driver under src/devices/ with that device's memory map and model format. The framing and the bridge are shared. Capture its traffic first (see docs/PROTOCOL.md).

Publishing

The goal is that anyone can run it with npx -y mefcs-mcp and find it in MCP directories.

  1. GitHub: push this repository (for example github.com/cayocan/mefcs-mcp) and add a license.
  2. npm: npm login, then npm publish. prepublishOnly builds and tests first. After this, clients can use:
    json
    { "command": "npx", "args": ["-y", "mefcs-mcp"], "env": { "MEFCS_BRIDGE_PATH": "..." } }
  3. Official MCP Registry: package.json already has "mcpName": "io.github.cayocan/mefcs-mcp" and the repository has a server.json. Install mcp-publisher, then run mcp-publisher login github and mcp-publisher publish. Keep the versions in package.json and server.json equal.
  4. Directories (optional): Smithery, Glama, mcp.so, and the Cursor / VS Code MCP galleries can list it from the npm package or the registry.

Because the pedal is a local USB device, this is a local (stdio) server. Remote-only clients would need an HTTP transport running on the PC with the pedal, exposed through a secure tunnel. That is not included yet.

License

MIT © Cayo Aguiar. M-VAVE, Tank-G, M-EFCS and TONE3000 are trademarks of their respective owners.

來源:README.md,提交 b595cce

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:軟體包安裝失敗。

版本歷史

1
  1. v0.1.0最新Nov 21, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分