skillfed

mne

MNE-Python project for MEG and EEG data analysis.

mne v1.12.1 4.0M downloads/30d#2,397 on PyPI3,482
Permissive license BSD-3-Clause Active released

What it is and what it does

MNE-Python is a mature, open-source toolkit for working with human brain recordings. It handles data from multiple modalities—MEG, EEG, sEEG, ECoG, fNIRS—and provides a complete pipeline from raw data import and preprocessing to visualization and statistical analysis. The package bundles modules for source localization, spectral and time-frequency decomposition, functional connectivity, and machine learning on neural data.

The package is built on standard scientific Python dependencies including numpy, scipy, and matplotlib, and includes convenience functions for common neuroimaging workflows. It is widely used in neuroscience research and clinical settings. Installation is straightforward via pip, and the codebase is actively maintained with comprehensive documentation and a user forum for support.

Use it for:

  • Load and preprocess raw MEG or EEG recordings, apply filters, and detect artifacts before analysis.
  • Estimate the location of neural sources in the brain from surface recordings using inverse methods.
  • Compute spectrograms, power spectral density, or cross-frequency coupling in neurophysiological data.
  • Analyze functional connectivity between brain regions using correlation or coherence measures.
  • Prepare neural data for machine learning pipelines for classification or regression on brain signals.
  • Visualize brain activity on cortical surfaces or as time-series plots for exploratory analysis.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

MNE-Python provides tools for exploring, visualizing, and analyzing human neurophysiological data including MEG, EEG, sEEG, and ECoG recordings, with modules for preprocessing, source estimation, time-frequency analysis, connectivity, and machine learning.

Yes. MNE-Python is a well-established, actively maintained toolkit with no known vulnerabilities, permissive BSD-3-Clause licensing, and low install friction. It is the standard choice for neurophysiological data analysis in Python. Install it if you work with MEG, EEG, or related brain recordings.

Install

mne on PyPI

pip

pip install mne

uv

uv add mne

poetry

poetry add mne

Installing mne

Before you install

Low friction installation via pip with a stable, actively maintained codebase. Last release 116 days ago with active repository (3482 stars, last commit 2026-08-12). Requires Python ≥3.10 and nine well-established scientific dependencies.

License in practice

BSD-3-Clause permissive license allows use in commercial and private projects with minimal restrictions, requiring only preservation of copyright and license notices.

Quickstart

pip install mne

import mne
raw = mne.io.read_raw_fif('sample_data.fif')
raw.plot()

Requires Python ≥3.10. Typical use requires neurophysiological data files (MEG, EEG, etc.) in supported formats.

Verify before relying

  • Whether optional dependencies for advanced visualization or specific file formats are available and their install friction.
  • Performance characteristics for large datasets or real-time processing scenarios.
  • Specific machine learning capabilities and their scope relative to dedicated ML libraries.

Package facts

License BSD-3-Clause (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 9 — decorator, jinja2, lazy-loader, matplotlib, numpy, packaging, pooch, scipy, tqdm
Maintenance actively maintained — 116 days since the last release
Last repo commit
First released
Downloads 4,018,846/month — #2,397 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: mne-1.12.1-py3-none-any.whl

Keywords: ECoG, EEG, MEG, brain, fNIRS, neuroimaging, neuroscience

Intended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI ApprovedOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: UnixProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Scientific/EngineeringTopic :: Software Development

Tags

MEG EEG analysisneurophysiological data processingbrain signal visualizationsource estimationtime-frequency analysis neuroimagingECoG sEEG analysisconnectivity analysis brain data
neurosciencesignal-processingbrain-imaging

More Software Development packages