MNE-MCP
What it does
MNE-Python neurophysiology analysis (EEG, MEG, sEEG, ECoG, fNIRS) via the Model Context Protocol
- Connects パソコンで動く
- Account or key No key needed
- Category 開発者ツール
インストール
使っているAIアプリを選んで、設定をコピーしてください。
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月13日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "mne": { "command": "uvx", "args": [ "mne-mcp", "serve", "--transport", "stdio" ] } } }Claude を終了してもう一度開く
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ MNE-MCP につなげません
MNE-MCP はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · MNE-MCP につなげるアプリを使う
- 先にパソコンへ Python (uv) を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Python (uv) を入れてください(1 回だけ)
- 先にパソコンへ Python (uv) を入れてください(1 回だけ)
- 先にパソコンへ Python (uv) を入れてください(1 回だけ)
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add --scope user mne -- uvx mne-mcp serve --transport stdioClaude Code で /mcp と入力
MNE-MCP が一覧にあり、接続済みと表示されれば OK です
試してみる
MNE-MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が MNE-MCP を使っていると言うか、回答に MNE-MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
Cursor の AI チャットを Agent モードで開く
試してみる
MNE-MCP を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が MNE-MCP を使っていると言うか、回答に MNE-MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Python (uv) を入れてください(1 回だけ)
VS Code の AI チャットを Agent モードで開く
試してみる
MNE-MCP を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が MNE-MCP を使っていると言うか、回答に MNE-MCP のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Windsurf、Zed、Gemini CLI など MCP を使える他のアプリは追加方法がそれぞれ違います。アプリ一覧で確認してください
JSON 設定は下の「開発者向け」にあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add --scope user mne -- uvx mne-mcp serve --transport stdioClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"mne": {
"command": "uvx",
"args": [
"mne-mcp",
"serve",
"--transport",
"stdio"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"mne": {
"command": "uvx",
"args": [
"mne-mcp",
"serve",
"--transport",
"stdio"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"mne": {
"type": "stdio",
"command": "uvx",
"args": [
"mne-mcp",
"serve",
"--transport",
"stdio"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月13日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名は、リポジトリを所有するGitHubアカウント Exekiel179 で確認済みです
- ✓ 合格
今もメンテナンスされている
コードの最終更新:30 日前
- ✓ 合格
ライセンスがある
MITを使用
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの5824件のうち91%よりスターが多い
- このカテゴリのほかの5824件のうち15%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの5824件のうち100%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
MNE-MCPは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は30 日前、最新バージョン(0.2.2)がレジストリに届いたのは5 か月前です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリのほかの候補
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Serena MCP: the IDE for your agent
A powerful toolkit for coding, providing semantic retrieval and editing capabilities.
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
MNE-MCP
English | 简体中文
A Model Context Protocol (MCP) server that gives AI assistants direct, conversational access to [MNE-Python](https://mne.tools/) for analyzing human neurophysiology data — EEG, MEG, sEEG, ECoG, and fNIRS.
Describe your analysis in plain language — MNE-MCP loads your recording, runs the MNE pipeline (filtering, ICA, epoching, ERP/ERF averaging, time-frequency, source-level work via code), saves the figures, and explains the results.
Works in Claude Code, Codex, PsyClaw and opencode. Pairs with bundled
Agent Skills —
mne-analyst,mne-mcp-guard, plus a skeptical analysis suite
(
mne-methodology-critic+ per-category skills) for reliable, archived workflows.
Why an MCP for MNE-Python?
MNE analysis is stateful and visual — unlike a one-shot statistics batch job:
- You load a
Rawrecording once, then filter → re-reference → fit ICA → epoch → average → time-frequency, each step mutating large in-memory objects. MNE-MCP keeps one persistent session so recordings never get re-loaded between steps. - Every decision is driven by looking (PSD, sensor maps, ICA components, ERPs). Every plotting tool saves a PNG the assistant can read and interpret.
- MNE has a large Python API. MNE-MCP gives you 41 structured tools spanning the common pipeline *and* advanced analysis (source localization, connectivity, decoding), plus an `mne_run_code` escape hatch that reaches the entire MNE API in the same live session.
- Defaults (line frequency, montage, filter band, rejection threshold, ICA settings, epoch window, dirs, timeout) are user-configurable via an interactive
mne-mcp configurewizard.
Requirements
- Python 3.12+ (no package upper-version gate; full-test baseline: 3.12)
- Git
- Claude Code, Codex, PsyClaw, opencode, or another MCP client
Cross-platform: unlike a closed engine, MNE-Python is pure Python, so analysis tools work on
Windows, macOS, and Linux.
Installation
Looking for the separate native C++ preview? See MNE-CPP MCP installation and capabilities. It now includes explicit native-runtime setup and companion-skill registration; it is not a replacement for the MNE-Python analysis backend described here.
Install with your agent
Send this to a coding agent with terminal access:
Follow https://github.com/Exekiel179/MNE-MCP/blob/v0.4.4/INSTALL_AGENT.md to install MNE-MCP and all companion skills in my existing MNE environment, configure my current client, and verify the result.
The agent checks the environment, installs missing MNE/core libraries when needed, installs the lightweight interface and all 14 skills, and registers the selected client. A client restart is required. See the installation guide for environment checks and verification.
Manual installation
Activate your existing Python 3.12+ MNE environment, then install the lightweight interface:
python -m pip install mne-mcp
mne-mcp setup
The installation creates the mne-mcp command (mne-mcp.exe on Windows). python -m mne_mcp setup remains an equivalent diagnostic invocation.
Release downloads: latest release. For a downloaded source archive, extract it and use python -m pip install . in that directory. Setup defaults to all four clients, including their skills. To configure only PsyClaw, use mne-mcp setup --clients psyclaw; claude, codex and opencode are also supported (comma-separated). Restart clients after setup; PsyClaw supports /reload. MNE and scientific libraries are user-managed; installing this package does not install them. See installation instructions for dependencies and troubleshooting.
Configuration
Repair or reconfigure
To update an existing installation, run python -m pip install --upgrade mne-mcp. Run mne-mcp setup --clients codex in the same MNE environment. Setup registers that exact interpreter and installs the bundled skills for the selected clients. Existing configuration and skill files are backed up before updates.
PsyClaw verification
PsyClaw registration writes ~/.psyclaw/mcp/mne.json; all 14 skills and references go to ~/.psyclaw/skills. Setup checks a real MCP handshake, tool discovery and mne_check_status, including a second check of the saved PsyClaw command.
mne-mcp verify --client psyclaw
This checks the saved command without modifying registration. connected and mne_available are separate: the lightweight server can connect without MNE installed. After /reload, ask PsyClaw to list tools for server mne and call mne_check_status. Project .psyclaw/mcp/*.json entries with the same id override user configuration. The setup check does not claim your already-running chat has reloaded.
Environment variables (optional .env)
MNE_MCP_TIMEOUT=300 # per-operation timeout (s); raise for ICA / TFR / large files
MNE_MCP_RESULTS_DIR=... # where figures + exported objects are saved MNE_MCP_DATA_DIR=... # default directory mne_list_files scans
Configure analysis defaults (interactive wizard)
Set the defaults the structured tools fall back to — mains line frequency (50/60 Hz), default montage, filter band, EEG rejection threshold, ICA method/components, epoch window, directories, and timeout:
mne-mcp configure # interactive prompts (Enter keeps current value)
mne-mcp configure --show # print current defaults mne-mcp configure --reset # back to built-in defaults mne-mcp configure --set line_freq=60 default_montage=biosemi64 reject_eeg_uv=120 # non-interactive
Defaults are saved to ~/.mne-mcp/config.json (override path with MNE_MCP_CONFIG). Precedence at runtime: environment variable > config file > built-in. View the active config in-session with the mne_get_config tool. Restart the MCP server for changes to take effect.
Skills
Setup installs all 14 skills into the selected client's skill directory, including their references. Claude also receives the methodology-review subagent. Other clients use the methodology-critic skill. Rerun setup after updating the package.
Usage
Just describe what you want:
加载 sub-01_raw.fif,看一下功率谱
对 raw 做 1–40 Hz 带通、50 Hz 陷波,然后跑 ICA 去眼电
Epoch around the 'target' trigger, -0.2 to 0.8 s, average it, and show the ERP topomaps at 100/200/300 ms
The assistant will:
- Check capabilities (
mne_check_status) - Load your recording into the persistent session
- Run the pipeline step by step, showing figures as PNGs
- Interpret each result in plain language
- Archive figures + the equivalent MNE code to
mne_result/
Output
Every plotting tool saves a PNG to the results dir and returns its path:
> Figure: `C:\...\mne-mcp\results\psd_01.png`
With the mne-analyst skill installed, results and the exact MNE code that produced them are archived to mne_result/ in your working directory (sequence-numbered), so the analysis is fully reproducible.
Available Tools (41)
Status & Session (7)
mne_check_status · mne_session_info · mne_describe · mne_get_info · mne_reset_session · mne_run_code · mne_get_config
Data IO (2)
mne_list_files · mne_load_raw
Preprocessing (7)
mne_filter · mne_resample · mne_crop · mne_set_montage · mne_set_reference · mne_mark_bad_channels · mne_interpolate_bads
Visualization (3)
mne_plot_psd · mne_plot_raw · mne_plot_sensors
ICA (4)
mne_fit_ica · mne_plot_ica_components · mne_plot_ica_sources · mne_apply_ica
Events / Epochs / ERP (7)
mne_find_events · mne_events_from_annotations · mne_make_epochs · mne_plot_epochs_image · mne_average_evoked · mne_plot_evoked · mne_plot_topomap
Time-frequency (2)
mne_compute_tfr (Morlet/multitaper, custom cycles, ITC, trial power, baseline) · mne_tfr_morlet
Advanced analysis (8)
mne_decode (MVPA) · mne_connectivity · mne_compute_connectivity (bands, pairs, estimators) · mne_compute_noise_cov · mne_make_forward · mne_apply_inverse · mne_plot_source_estimate
mne_decoding_group_test provides participant-level max-T or cluster-corrected inference. Decoding reports separate numerical evidence, methods, interpretation, limitations and a results draft requiring scientific review. The code escape hatch is not equivalent to validated structured coverage of every MNE API.
Export (1)
mne_save
Anything still not covered — BIDS, custom statistics, beamformers, autoreject — is reachable through `mne_run_code` in the same live session. See TOOLS_REFERENCE.md for full parameter details. Advanced dependencies are checked per feature and are not bundled.
Development
# Compile check
python -m compileall src/mne_mcp
Run tests
pytest
CLI commands
mne-mcp status # Check environment mne-mcp setup --clients codex # Register in Codex + install skills
License
MIT — see LICENSE
Documentation
- 项目介绍 / Introduction: docs/INTRODUCTION.md · .docx
- 安装说明 / Install guide: docs/INSTALL.md · .docx
- 使用介绍 / Usage guide: docs/USAGE.md · .docx
- Quick start: QUICK_START.md
- Tool reference: TOOLS_REFERENCE.md
Links
- MNE-Python: https://mne.tools/
- MCP Protocol: https://modelcontextprotocol.io