原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Ephys

作者:happyc0der版本 0.5.1i★ –i在你的电脑上运行
注册名称io.github.happyc0der/ephys-mcp

安装

概览

作者提供的说明(英文原文)

Read-only analysis of intracortical BCI recordings (NWB, DANDI, WAV): spikes, PSTHs, decoding, plots

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 注册中心没有列出需要填写的密钥。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "ephys": {
      "command": "uvx",
      "args": [
        "ephys-mcp"
      ]
    }
  }
}

在终端中运行这条命令

claude mcp add ephys -- uvx ephys-mcp

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "ephys": {
      "command": "uvx",
      "args": [
        "ephys-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "ephys": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "ephys-mcp"
      ]
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 happyc0der 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 18345 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 18345 个服务器的 51% 更新
  • 基础检查结果等于或优于此分类中其他 18345 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Ephys 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.5.1)于2个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, ScienceShot science reference

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211前天更新
安装

ScienceShot science reference

作者:scienceshot.com

Sourced, citable answers in radiation and particle physics, photonics, electronics and quantum.

在云端运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

ephys-mcp

An MCP server that lets an LLM analyse intracortical (spike-level) brain-computer-interface recordings: signal quality, spike detection, firing rates, and cursor-velocity decoding.

Existing BCI MCP servers target scalp EEG. This one targets the kind of data a high-channel-count implant produces, and defines a read-only adapter contract so a live device backend can be added when a vendor publishes an API.

Research and education software. Not a medical device. Not for clinical use.

Not affiliated with or endorsed by Neuralink Corp. or any other implant manufacturer.

Example output

Figures from the built-in synthetic source (32 units, 300 s, seed 2), produced by the server's own plot tools.

plot_psth grouped by reach direction: population rate per direction (mean ± SEM over 166 trials) above a unit-by-time heatmap of change from baselineplot_decoding after fit_decoder(kind="kalman"): decoded against actual cursor velocity on a held-out 10 s window, R² 0.90 (x) and 0.83 (y)

Status

v0.5. The planned feature set is complete: local NWB files, local broadband WAV recordings, live Lab Streaming Layer streams, streaming from the DANDI Archive, a synthetic motor-cortex source with ground truth, spike detection, quality metrics, ridge and Kalman decoders, trial-aligned PSTHs, spike sorting, cross-session (FALCON-style) evaluation, latent-factor models (GPFA, PCA), probe geometry, and figures. 24 tools. Bug reports and feature requests go to GitHub Issues.

Install and run

Needs uv. No install step: uvx ephys-mcp fetches the package and starts the server on stdio.

Claude Code:

claude mcp add ephys -- uvx ephys-mcp

Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "ephys": { "command": "uvx", "args": ["ephys-mcp"] } } }

From a checkout, use uv run ephys-mcp instead, or uv --directory /path/to/ephys-mcp run ephys-mcp in the configs above.

HTTP transport

For remote clients or hosted agents, serve streamable HTTP instead of stdio:

EPHYS_MCP_TOKEN='a-long-random-secret' uvx ephys-mcp --http --host 0.0.0.0 --port 8000

Every request must then carry Authorization: Bearer . The server refuses to bind to a non-loopback address without a token, and tokens must be at least 16 characters. Put TLS in front of it (a reverse proxy) before exposing it beyond a private network: the token travels in clear text otherwise. On loopback the token is optional, so ephys-mcp --http alone serves http://127.0.0.1:8000/mcp for local testing.

Then ask, for real data: *"Find a small motor cortex dataset on DANDI, open it, and tell me how well hand velocity can be decoded."* Or offline: *"Open a synthetic session, check signal quality, fit a Kalman decoder and show me a decoded window."*

Data sources

SourceWhat it opens
syntheticSimulated units tuned to cursor velocity, with broadband signal and ground truth
nwbA local .nwb file (params.path)
wav_dirLocal broadband WAV (params.path): a folder of mono clips, one channel each, or one multi-channel file
lslA live Lab Streaming Layer broadband stream on the local network; keeps the most recent buffer_s of signal. Needs uvx --with 'ephys-mcp[lsl]' ephys-mcp
dandiAn NWB file streamed from the DANDI Archive by HTTP range requests; nothing is mirrored
n1_stubNot implemented. Documents how a live implant adapter would be written on the same base as lsl

Dataset licence and citation come from the archive and are returned by open_session, so the model can attribute the data. Many datasets record only during trials; the server tracks those spans (recorded_fraction) and leaves the gaps out of rates and decoding instead of reading them as silence.

WAV samples carry no physical unit, so amplitudes are reported as ADC counts unless you pass uv_per_count; every amplitude result names its unit. Clips in a folder are separate recordings, so the server says that timing across those channels is not meaningful. Spike times from WAV are threshold crossings, not sorted units.

Reference results, all simple causal linear baselines rather than state of the art:

  • MC_Maze_Small (DANDI 000140, 142 units, last 20% held out, 50 ms bins): ridge R² 0.50, Kalman R² 0.34 for hand velocity.
  • FALCON H1 (DANDI 000954, human 7-DoF velocity, 176 channels, 20 ms bins, eval_mask): ridge trained on the first held-in day scores R² 0.43 on that day's minival, 0.07 one week later and below zero on the held-out days. That decay is the point of the benchmark; the Kalman filter is unsuitable for this scripted calibration data. FALCON's official test labels are private, so these are not leaderboard scores.

Decoder hyperparameters (ridge strength, the neural lead for Kalman) are chosen by blocked cross-validation inside the training split. Ridge history is 0.5 s of spike counts whatever the bin size.

GPFA is implemented from the paper's equations in numpy and scipy (EM over loadings, offsets, noise and per-factor timescales; no deep-learning dependency), and runs in seconds on a hundred trials. On the simulator, whose true latent is 2-D cursor velocity, it finds two dominant factors that explain velocity with R² 0.95 (PCA: 0.68). On MC_Maze_Small it shows the rotating population trajectory around movement onset that motor cortex is known for. LFADS-class models are out of scope: they need a training run of minutes and a deep-learning stack.

Tools

ToolPurpose
list_sourcesSource types and their parameters
search_datasetsSearch DANDI, or list curated intracortical datasets
list_dataset_filesLicence, citation and NWB files of a DANDI dataset
list_lsl_streamsLSL streams visible on the network
get_stream_statusFor a live session: buffered span, whether data is arriving, drops
open_session / close_sessionSession lifecycle
get_session_infoChannels, rates, behaviour signals, licence, citation
get_signal_qualityNoise, SNR, dead/noisy channels
detect_spikesThreshold crossings; precision/recall when truth exists
sort_spikesSpike-sort a broadband window with spikeinterface (sort extra), using probe geometry when known; the session then uses the sorted units
set_probe_geometrySupply contact positions for a session whose file has none: Utah, grid, linear, tetrode layouts or explicit coordinates
get_probeContact positions and brain-area labels per channel
plot_probeFigure: array map, contacts coloured by firing rate, sorted units per contact
get_firing_ratesPopulation rate summary
fit_decoderRidge or Kalman, scored on held-out data; hyperparameters chosen inside the training split
decode_windowDecoded-vs-true preview for a window
evaluate_cross_sessionFit on one session, score unchanged on others: does a decoder survive to a later day? Honours FALCON's eval_mask
get_psthFiring aligned to a trial event, optionally grouped by a trial column or limited to some units
fit_latent_factorsGPFA (Yu et al. 2009) or PCA on trial-aligned activity: single-trial latent trajectories, variance per factor, timescales, and how well the top factors explain a velocity signal
plot_latent_factorsFigure: top three factors over time, the factor-1/factor-2 state space, and variance per factor
plot_psthFigure: PSTH per group with SEM, above a unit-by-time heatmap of change from baseline
plot_rasterFigure: spike raster, unrecorded spans shaded
plot_decodingFigure: decoded against actual behaviour, one panel per dimension

Resource: ephys://sessions. Prompts: analyze_session, falcon_evaluate.

Tools return summaries, never raw arrays, so results fit in a model's context.

Optional extras
ExtraAddsInstall
lslthe lsl live sourceuvx --with 'ephys-mcp[lsl]' ephys-mcp
sortsort_spikes via spikeinterface's built-in sorters (spykingcircus2, tridesclous2); about 330 MB of dependenciesuvx --with 'ephys-mcp[sort]' ephys-mcp

Sorting uses the session's probe geometry, from the file's electrode table or from set_probe_geometry, so contacts under 100 µm apart are sorted jointly. This matters on dense probes: on a simulated 20 µm laminar probe, sorting with the true geometry finds the 12 real units, while treating contacts as independent reports 15, counting the same unit again on neighbouring contacts. Without geometry, channels are placed far apart and treated as isolated electrodes. On the simulator, spykingcircus2 recovers every unit with recall above 0.95.

Brain-area labels come from the NWB electrodes table when present (MC_Maze reports PMd and M1); get_probe lists them per channel so an analysis can be restricted to one area with the units argument. Note that none of the DANDI datasets tried so far stores contact coordinates, so for those set_probe_geometry is the way to supply an array layout.

Plot tools return the PNG inline, so a vision-capable model can read the figure, and also save it under ~/.cache/ephys-mcp/plots (override with EPHYS_MCP_OUTPUT_DIR). Figures use a categorical palette checked for colour-blind separation, with direct labels so identity never rests on colour alone.

Design rules

  • Read-only. The NeuralSource contract has no write, stimulate or configure method. None will be added without a separate safety design.
  • Local by default. stdio transport, no telemetry. HTTP is opt-in and token-gated. Neural data is sensitive.
  • No bundled third-party data. See DATA_LICENSES.md.

Writing a source adapter

For recordings, subclass ephys_mcp.sources.base.NeuralSource (info, read_raw, spike_times, behavior). For a live device, subclass ephys_mcp.sources.live.RingBufferSource and call push(samples) from a reader thread; sources/lsl.py is a complete example in about 60 lines, and sources/n1_stub.py lists what an implant adapter would additionally need. Register the class in ephys_mcp/sources/__init__.py.

Live sessions report time as seconds since open, and only the most recent buffer is readable, so t_start_s and duration_s move forward.

Development

uv run pytest              # offline

uv run pytest -m network # also streams a real file from DANDI uv run ruff check .

Citing

See CITATION.cff; GitHub's "Cite this repository" button uses it. Cite the datasets you analyse separately: get_session_info returns each one's citation.

Licence

CC0 1.0 Universal. The authors waive all copyright and related rights to the extent the law allows. Use it for anything, no attribution required. CC0 does not grant patent or trademark rights.

问 PopNx