# neuro-mcp [Health: Active]

**Category:** 🧬 Biology & Bioinformatics  
**Repository:** https://github.com/AImplifier/neuro-mcp  
**GitHub Stars:** 1  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/neuro-mcp

## Description
MCP for NeuroAgents assisting clinicians: MNE processing, EHR store, NeuroII visualization.

## Tools
Capabilities this server exposes over MCP:

- **neuroii** — `neuroii_push_recording`, `neuroii_create_viz_session`,

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "neuro-mcp": {
    "command": "uvx",
    "args": ["neuro-mcp"]
  }
}
```

## Documentation

## What neuro-mcp does

neuro-mcp exposes a clinical and research EEG workflow through MCP. Its processing layer is based on MNE-Python and covers common operations such as loading recordings, filtering, resampling, montage and reference configuration, bad-channel detection, ICA, event detection, epoching, power spectral density, ERP, time-frequency analysis, and plots. Source-imaging tools support template-head retrieval and extraction of label time courses.

The data layer combines a local or PostgreSQL-backed store with a BIDS recording tree. Agents can register subjects and datasets, import recordings, search datasets, list recordings, and maintain EHR records. Annotation workflows support adding, updating, listing, and voiding annotations. EHR and annotation changes are retained as versions rather than overwriting the previous entry, and mutations include an actor plus an audit trail.

Visualization includes standalone interactive HTML generated with Plotly. Available views cover stacked multi-channel time series, ERP averaging with scalp topomaps, and source-estimate views with ROI time courses and activation displays.

## How it works

The package runs as an MCP process using the stdio transport:

```bash
python -m neuro_mcp
```

An MCP host starts that process and an agent selects tools through natural-language requests. Processing operates on EEG data represented through the MNE workflow. Storage uses SQLite and a scratch BIDS directory by default, while PostgreSQL can be selected through the database connection setting.

The clinical record model distinguishes the operation result from the record's clinical status. Amending an EHR record or annotation creates a new audited version and preserves the prior version; voiding marks the item as entered in error without deleting its history. The audit log records the actor, action, and before-and-after values.

## Setup and configuration

Python 3.10 or newer is supported. Install the base package from PyPI, then add optional extras when needed:

```bash
pip install neuro-mcp
pip install "neuro-mcp[postgres]"
pip install "neuro-mcp[viz3d]"
```

The PostgreSQL extra adds the PostgreSQL driver. The `viz3d` extra adds 3D source rendering dependencies. A source checkout can be installed in editable mode with `pip install -e .`.

Configuration is available through `DATABASE_URL`, `BIDS_ROOT`, and `NEURO_MCP_HOME`. By default, the database is stored at `~/.neuro-mcp/neuro_mcp.db`, recordings use `~/.neuro-mcp/bids`, and the base directory is `~/.neuro-mcp`. Set `DATABASE_URL` to a PostgreSQL SQLAlchemy URL for a PostgreSQL deployment. `NEUROII_API_URL` selects the NeuroII base URL, and `NEUROII_API_TOKEN` supplies an optional bearer token.

## Tools and capabilities

The tool set includes:

- EEG loading, preprocessing, event detection, epoching, ERP, PSD, time-frequency analysis, and plotting.
- Source imaging and ESI operations, including template-head access and label time-course extraction.
- Subject, dataset, recording, EHR, annotation, and audit-log management.
- `neuroii_push_recording` and `neuroii_create_viz_session` for the NeuroII REST contract, plus annotation retrieval.
- Interactive HTML views for time series, averaging, and source estimates.

## Limitations and notes

NeuroII application integration is currently contract-based. When `NEUROII_API_URL` is unset, the NeuroII tools return a `not_configured` result containing the expected contract instead of calling a live service. The contract targets recording creation, visualization-session creation, and annotation retrieval endpoints.

Authentication and role-based access control are planned; actor fields and audit history are present, but those fields do not provide RBAC enforcement. The 3D source visualization requires epochs and montage setup, and the optional rendering dependencies have separate LGPL-3.0 terms. The project itself is licensed under BSD-3-Clause.

_Full upstream README: https://allmcps.com/mcp/neuro-mcp/readme_

