Nimbus BCI
AI agents build, train, and analyze BCI/EEG pipelines: data, models, experiments, live sessions.
Connect it
Settings → Connectors → Add custom connector
URL: https://nimbus-mcp.fly.dev/mcpSettings → Apps & Connectors → Advanced → Developer mode
Create connector with URL: https://nimbus-mcp.fly.dev/mcp{
"mcpServers": {
"nimbus-mcp": {
"url": "https://nimbus-mcp.fly.dev/mcp"
}
}
}claude mcp add --transport http nimbus-mcp https://nimbus-mcp.fly.dev/mcp{
"servers": {
"nimbus-mcp": {
"type": "http",
"url": "https://nimbus-mcp.fly.dev/mcp"
}
}
}{
"mcpServers": {
"nimbus-mcp": {
"command": "uvx",
"args": [
"nimbus-mcp"
],
"env": {
"NIMBUS_TOKEN": "<value>",
"NIMBUS_MCP_KEY": "<value>"
}
}
}
}claude mcp add nimbus-mcp -- uvx nimbus-mcp58 tools, verified live
account.whoamiread-onlyWho you are authenticated as: account email, plan (isPro / pioneer), this month's free-run quota, and â with a hosted token â the token name and days until it expires. Call this first when setup guidance appears or to check which credential a session uses.
catalog.nodesread-onlyList Nimbus pipeline node types (data, preprocessing, features, models...). Use catalog.node_schema(node_type) for one node's full config schema and ports.
catalog.node_schemaread-onlyFull config JSON schema + input/output ports for one node type.
catalog.templatesread-onlyList built-in starter pipelines (MI/P300/SSVEP...). catalog.template(id) returns the graph.
catalog.templateread-onlyFull template incl. the 'train' execGraph needed by execution.run/pipeline.validate.
catalog.datasetsread-onlyCurated public EEG datasets (MOABB packs) available to pipelines.
catalog.leaderboardread-onlyPublic benchmark leaderboard: pipeline rankings per dataset. Two tracks: the top-level ``within_session`` block (curated suite pipelines) and ``crossSubject`` (leave-one-subject-out â curated pipelines plus BYO ``python_model`` submissions; BYO rows carry ``kind: "byo"`` and an ``owner`` name). Within each dataset, ``rows`` sort desc by ``meanAccuracyPct`` (95% CI in ``ciLoPct``/``ciHiPct``). `
leaderboard.submitSubmit a BYO python_model to a leaderboard track for server-side scoring. Nimbus scores it server-side under the track's fixed protocol â you submit code, never results. Poll ``leaderboard.status`` with the returned ``submissionId``; scoring takes minutes (classical) to tens of minutes (deep). Requirements must be plain PyPI names/specs (max 20, no URLs). Identical code resubmission is idempote
leaderboard.statusread-onlyFetch one of your leaderboard submissions (owner-only). Returns status (queued | scoring | done | failed), metrics when done (meanAccuracyPct + CI, same shape as leaderboard rows), or the error that failed it.
leaderboard.mineread-onlyList your leaderboard submissions (newest first), all datasets.
pipeline.validateread-onlyValidate a pipeline graph before running. ExecGraphSnapshot: {nodes: [{id, type, config}], connections: [{from, to}]}. Build it from catalog.template(id).train or from scratch using catalog.nodes().
pipeline.validate_noderead-onlyValidate one node's config object against its schema (catalog.node_schema).
execution.runStart a pipeline run (NON-BLOCKING). Returns executionId â poll with execution.get() until status is completed/failed, then execution.results().
execution.cancelcan modifyCancel a running execution.
execution.getread-onlyExecution status summary (status: running/completed/failed/cancelled).
execution.listread-onlyRecent executions. Optional status filter (running/completed/failed/cancelled).
execution.resultsread-onlyMetrics for a completed run. Trimmed by default (accuracy, kappa, ITR, confusion matrix, per-class); full=True returns the complete result object.
calibration.startStart a guided subject calibration session (NON-BLOCKING; confirm-gated â the device goes on a human's head). The Nimbus Studio app shows the cues on its calibration dashboard automatically; poll calibration.status. Requires a Pro plan (hosted token or Pro session): calibration nodes and custom-data training are gated by the freemium node policy; local X-MCP-Key principals pass only when the des
calibration.statusread-onlyLive snapshot of a calibration session (phase, current trial, progress, paused). Once complete, carries the recorded upload â call calibration.train to turn it into the subject's own classifier.
calibration.pausePause a running calibration between trials (cues hold; resume anytime).
calibration.resumeResume a paused calibration session.
calibration.trainTrain the subject's own classifier from a COMPLETED calibration session (NON-BLOCKING). Fetches the recorded upload, wires it into a train pipeline as a custom_data source, and starts the run. Requires a Pro plan (custom_data training is freemium-gated). The calibrateâtrain handoff requires a Postgres-backed backend (hosted or local dev); a desktop-local session completes and records, but its up
experiment.runRun 1-25 pipelines as ONE paced experiment (NON-BLOCKING). Returns an experimentId immediately; a background thread submits at most 2 runs at a time (min(max_concurrent, 2)), retries queue-full up to 3 times per run, and polls each execution to completion. Poll experiment.get() for per-run status and, once finished, aggregated metrics.
experiment.getread-onlyExperiment snapshot: status (running/completed/failed), per-run rows ({name, executionId, status, error?, metrics?}) and, once finished, aggregates {metric: {mean, std, best: {name, value}}} over completed runs only (std = population; None below 2 values).
execution.artifactsread-onlyTrained artifacts (models/filters, e.g. *.pkl) saved by an execution.
execution.download_artifactDownload one artifact file to NIMBUS_EXPORT_DIR/executions/<id>/ and return its path.
pipeline.exportExport the pipeline as a standalone runnable Python bundle (zip saved locally).
bids.export_datasetExport a Nimbus dataset as a BIDS-layout zip saved to NIMBUS_EXPORT_DIR/bids/. Continuous sources (EDF/BDF uploads, stream recordings) export as BIDS-raw (EDF byte-passthrough; recordings converted HDF5âEDF with events.tsv). Epoched sources (MOABB packs, trial-table uploads) export as BIDS-derivatives (data passthrough + descriptive trial_index/label/session/run events â no fabricated onsets)
bids.export_executionExport an execution's results as a BIDS-derivative zip (metrics.json, per-subject participants.tsv, protocol.json, full pipeline_snapshot.json, predictions.tsv when stored, provenance/execution.json) saved to NIMBUS_EXPORT_DIR/bids/.
device.listread-onlyEEG devices supported by this backend (OpenBCI, Muse, BrainBit, LSL, PiEEG...).
device.testread-onlyTest a device connection WITHOUT starting a stream (safe, no confirm needed).
stream.startConnect an EEG device and START a live streaming session on the user's head. Requires confirm=True; call device.test first. Track with stream.status(). Idle watchdog: if no stream.status()/stream.telemetry() poll happens for idle_timeout_sec (default 900), the session is stopped and the device disconnected automatically â an abandoned stream never keeps running on the user's head. Any poll reset
stream.statusread-onlyLive snapshot of a streaming session (running, deviceConnected). Polling this also feeds the idle watchdog: each call resets the session's idle timer (see stream.start's idle_timeout_sec).
stream.stopcan modifyStop a streaming session and disconnect the device (always safe to call). Also removes the session from the idle watchdog so it cannot fire after an explicit stop.
plots.confusionConfusion-matrix figure for one execution: heatmap with trial counts + per-class accuracy bars, rendered as a PNG the assistant can see. Use it right after execution.results to eyeball WHICH classes are confused, not just the accuracy number.
plots.datasetFigure over an EEG data source â the visual companion to data.inspect_dataset. kind=psd (Welch, channel mean bold), kind=bandpower (channel à band dB heatmap), kind=topomap (band-power scalp map), kind=spectrogram (time-frequency for one channel). Sources are the same ones inspect uses: MOABB packs, uploads, local files.
plots.erpERP butterfly figure from epoched data: one subplot per class, all channel means (thin) + across-channel mean (bold), time-locked to the trial event. Shows whether class-conditioned evoked structure exists BEFORE training anything.
plots.leaderboardLeaderboard bar chart for one dataset: accuracy with 95% CI whiskers, best first; BYO python_model submissions highlighted in a distinct color. The visual companion to catalog.leaderboard. On the pretrained_few_trial track the figure also includes the classical LOSO baseline as a muted side panel for comparison.
stream.telemetryread-onlyLive snapshot of a streaming session: latest prediction + recent window, signal quality (meanChannelQuality, snrDb, artifactProbability), indicators, running stats. Poll this while a session runs. Works with OR without a deployed model: modelless hardware streams (no classifier) report live signal quality + focus/relaxation band-power indicators with latestPrediction null; deployed sessions additi
data.uploadUpload an EEG file (.edf/.bdf/.mat/.csv/.txt/.tsv/.h5/.hdf5, <=500MB) to the backend and get the registered path for a custom_data node. sampling_rate (Hz, e.g. 250.0) is REQUIRED for plain CSV/TSV/TXT files without embedded metadata â the backend silently assumes 250 Hz otherwise, which mis-times epochs, filters and spectral features. format overrides extension-based detection (auto, mat, csv,
data.inspect_datasetread-onlyExploratory summary of a public EEG dataset (MOABB pack): channels, sampling rate, trial/class balance, per-channel µV stats, band powers and a PSD overview. Look at the data BEFORE building pipelines: class balance drives stratification choices (imbalanced classes skew accuracy), and flatlined channels mean a montage/reference problem worth fixing first. subject is REQUIRED (the backend 400s wi
data.inspect_fileread-onlyExploratory summary of an EEG file (.edf/.bdf/.mat/.csv/.tsv/.txt/.h5): channels, sampling rate, trial/class balance, per-channel µV stats, band powers and a PSD overview. The path shape picks the source: ABSOLUTE path â read the file from disk (only on a LOCAL backend: desktop app / MCP local mode â no upload needed); RELATIVE path (the one data.upload returns) â describe the uploaded fil
project.createCreate a project (container for one pipeline document). Returns projectId.
project.listread-onlyList projects owned by the current principal (agent work included).
project.saveSave a pipeline graph into a project (visible on the studio canvas). Handles revision conflicts automatically (one retry).
project.loadread-onlyLoad a project's saved pipeline (train graph + meta) for editing/re-running.
protocol.validateread-onlyValidate a neurofeedback protocol document WITHOUT saving it. Returns {valid: true, spec} on success, or {valid: false, errors: [...]} with the per-violation list (loc/msg) when the document is invalid â the verdict is data, never an exception.
protocol.saveValidate and persist the NEXT VERSION of a protocol document (confirm-gated: each call appends a version row; accidental calls clutter the version history). Edits create a new version â the assignment pins the version it runs.
protocol.listread-onlyEvery saved protocol id at its latest version.
protocol.start_assignmentEnroll a subject and prepare their neurofeedback deploy session (confirm-gated â a session runs on a human). Creates the assignment (yoked sham arms REQUIRE yoked_donor_upload_id: a recorded simulated session's upload â mint one by running an active-arm session and data.upload-ing its recording), then persists the protocol graph as a deployable execution. Requires a Pro plan for LIVE hardware
protocol.session_statusread-onlyLive snapshot of a protocol deploy session: the scheduler block / session progress + threshold state (under ``protocol``) beside the telemetry window (recent indicators, quality, stats).
protocol.pausePause a running protocol session (blocks freeze; the session and device stay alive â resume with protocol.resume). Simulated and playback sessions only while paused: no data is recorded.
protocol.resumeResume a paused protocol session (restarts the server-driven device loop). Live-hardware resume requires a Pro plan; simulated sessions are free. Pass the session's channel count (start_assignment reports it).
protocol.stopStop a protocol session (always safe to call): stops streaming, saves the block-annotated recording, advances the assignment when the scheduler reached its natural end, and disconnects the device (best-effort â a failed disconnect is reported, never raised).
protocol.export_statsread-onlyPaired pre/post analysis for one assignment's recorded sessions: per-block aggregates (descriptive + CSV), paired t / Wilcoxon / dz (per-statistic minimums: paired t and Cohen's dz need ⥠3 completed sessions, Wilcoxon needs ⥠5), specificity notes, the adaptive-threshold trajectory, and a pre/post figure (base64 PNG â render or save it to look at the effect). An assignment with no recording
python.validateread-onlyStatically check a python_model script (BYO model class) without running it. Compiles the source and verifies the contract â a class with fit(X, y, info) and predict(X); optional predict_proba(X) unlocks confidence panels. Never executes the code, so it is safe against the hosted backend. Use it before execution.run to catch syntax errors, missing methods, or the wrong class name cheaply.
stats.groupedread-onlyCluster-aware group statistics across executions: pools the per-subject (per-group) accuracies each run's evaluation plan stored, then reports the between-group summary â mean accuracy with a t-interval and a one-sample t-test vs chance. Use this instead of eyeballing pooled accuracy: trials within a subject are not independent, so this is the MOABB-style number that survives review.
foundation.compareread-onlyRun every available pretrained backbone on YOUR data and see which wins â a ranked bar chart with CI whiskers, params, and wall time per backbone. Backbones that can't process your data (window size, channel count) are noted, not silently skipped. Each backbone embeds your trials frozen (the exact foundation_features preprocessing), a LDA is cross-validated on the embeddings, and meta.results ca
Change history
Alternatives in Developer Tools
Compare →GIGitDiagramA
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
MDMCP Docs ServerOfficialA
AI access to Mapbox docs, API references, style specs, and guides. No token required.
MGMCP GrafanaOfficialA
An MCP server giving access to Grafana dashboards, data and more.
MDMCP Devkit ServerOfficialA
Provides AI assistants with direct access to Mapbox developer APIs and documentation.
Front-End ChecklistA
Review frontend code and live pages against 386 quality-gated web development rules.
PMPostHog MCP ServerOfficialA
Official PostHog MCP Server for product analytics, feature flags, experiments, and more.