
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
mne-docs-mcp
Advanced tools
DEPRECATED - superseded by the 'mne-docs' Python package on PyPI. MCP server for MNE-Python documentation, source code, GitHub issues, and forum.
⚠️ Deprecated — this project moved to Python
mne-docs-mcpis archived. It is superseded bymne-docs, a zero-dependency Python CLI.pip install mne-docsWhy: an AI assistant with a shell and local files can grep and read MNE's source better than any tool schema can rank for it. The MCP server's 15 tools, symbol ranking, and caching turned out to be scaffolding around one good idea — put the user's version of MNE on disk and read it. That idea is now a single command, with no server, no Node runtime, and no GitHub token.
v1.0.50 is the final release. It exists to fix one real bug before the lights go out: every code and docs search in v1.0.10–v1.0.49 silently returned zero results, because the GitHub code-search query carried an unsupported
ref:qualifier. If you are staying on this package, upgrade to v1.0.50. Otherwise, please move tomne-docs.
/mcp) and stdio transport>=20python on Windows, python3 on Linux/macOS)MNE_GITHUB_TOKEN) with access to public repositoriesgit clone https://github.com/weiyongxu/mne-docs-mcp.git
cd mne-docs-mcp
npm install
npm run build
Set token:
# Linux/macOS
export MNE_GITHUB_TOKEN=ghp_your_token_here
# Windows PowerShell
$env:MNE_GITHUB_TOKEN="ghp_your_token_here"
Start server:
npm start
Default endpoint: http://127.0.0.1:8000/mcp
Health check: http://127.0.0.1:8000/health
Metrics: http://127.0.0.1:8000/metrics
Use dist/index.js and set MNE_TRANSPORT=stdio:
{
"mcpServers": {
"mne-docs": {
"command": "node",
"args": ["/path/to/mne-docs-mcp/dist/index.js"],
"env": {
"MNE_GITHUB_TOKEN": "ghp_your_token_here",
"MNE_TRANSPORT": "stdio"
}
}
}
}
{
"mcpServers": {
"mne-docs": {
"type": "http",
"url": "https://your-server.com/mcp"
}
}
}
docker run -p 8000:8000 \
-e MNE_GITHUB_TOKEN=ghp_your_token_here \
ghcr.io/weiyongxu/mne-docs-mcp:latest
Or use the included docker-compose.yml:
# Linux/macOS
export MNE_GITHUB_TOKEN=ghp_your_token_here
# Windows PowerShell
$env:MNE_GITHUB_TOKEN="ghp_your_token_here"
docker compose pull
docker compose up -d
The compose file only requires MNE_GITHUB_TOKEN. Other settings use image defaults.
list_mne_versionsget_mne_fileget_mne_docfind_mne_symbolsearch_mne_docssearch_mne_issuesget_mne_issueget_mne_issue_commentssearch_mne_forumget_mne_forum_topicget_symbol_referencesget_related_symbolsget_mne_changelogget_mne_examplelookup_mne_errorSupported packages:
mne-python (default)mne-bids-pipelinemne-bidsmne-connectivitymne-nirsmne-rsamne-icalabelmne-realtimemne-lslmne-gui-addonspackage parameter is supported by code/docs/issues/changelog/example/symbol tools.
Forum tools (search_mne_forum, get_mne_forum_topic) and lookup_mne_error do not take a package parameter.
Key environment variables:
| Variable | Default | Notes |
|---|---|---|
MNE_GITHUB_TOKEN | — | Required |
MNE_TRANSPORT | http | http or stdio |
MNE_HOST | 127.0.0.1 | Use 0.0.0.0 in containers |
MNE_PORT | 8000 | HTTP mode port |
MNE_ALLOWED_ORIGINS | * | CORS/Origin allowlist |
MNE_DEFAULT_PACKAGE | mne-python | Default package |
MNE_PYTHON_PATH | python (Win) / python3 (Unix) | Parser executable |
MNE_LOG_LEVEL | info | debug, info, warn, error |
MNE_LOG_JSON | false | Structured logs |
See .env.example for a minimal local template.
Full tool test run:
node scripts/run-tests.mjs
Curated 25-example smoke test:
node scripts/run-example-tests.mjs
Against another endpoint:
MNE_MCP_BASE=https://your-server.com/mcp node scripts/run-tests.mjs
MNE_MCP_BASE=https://your-server.com/mcp node scripts/run-example-tests.mjs
Add timeout guard:
MNE_TOOL_TIMEOUT_MS=20000 node scripts/run-tests.mjs
Stable benchmark mode (for slow/stuck investigation):
node scripts/run-tests.mjs --benchmark-stable --warm-pass --stable-runs 3
npm run dev
npm run typecheck
npm run lint
npm test
npm run build
npm run release:patch # or :minor / :major
The release script:
package.json)server.jsonpackage.json, package-lock.json, server.jsonRelease vX.Y.Z)vX.Y.Z)Tag push triggers release.yml, which publishes:
401 / Bad credentials: verify MNE_GITHUB_TOKEN/metricsMNE_PYTHON_PATH)/health should return status=healthyMIT
FAQs
DEPRECATED - superseded by the 'mne-docs' Python package on PyPI. MCP server for MNE-Python documentation, source code, GitHub issues, and forum.
We found that mne-docs-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.