ASTRA MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ASTRA MCP Server simulate 100 timesteps of the SNN with default parameters"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ASTRA — Unified Research Lab + MCP Server
Autonomous Sentient Thoughtful Reasoning Agent
Production-grade Model Context Protocol server exposing the ASTRA bio-hybrid neuromorphic simulation pipeline to AI assistants. Built with the official @modelcontextprotocol/sdk, it integrates a layered SNN LIF+STDP engine, consciousness proxy assessment, bio-computing platform telemetry, and an IRB ethics monitor — all queryable as MCP tools, resources, and prompts from Claude Desktop, Cursor, VS Code, and any MCP-compatible client.
FinalSpark (800K neurons) ──┐
Cortical Labs CL1 ──────────┼─→ Spike Encoders → SNN (LIF+STDP, 128 neurons) → ACM Proxies
Koniku Kore ────────────────┘ │ │
│ ┌─────┴─────┐
│ │ Φ̃ GW̃ PAD̃ │
│ └─────┬─────┘
├─→ Ethics IRB Monitor (mode-aware)
└─→ MCP Server (24 tools · 8 resources · 5 prompts)Note on data mode: In the default
simmode, all bio-platform data is synthetically generated. The server is designed to connect to live platforms inlivemode, but this requires hardware access and appropriate IRB approval.
What's New in v2
Layered SNN architecture: Configurable feed-forward + recurrent topology (default: 32→64→16→16 = 128 neurons) replacing the flat random network
Event-driven STDP: O(spikes × fan-out) instead of O(N²) per timestep
Ring buffer: O(1) spike history eviction replacing O(n)
Array.shift()Sparse weight storage: Adjacency lists instead of dense N×N matrix
Honest ACM naming: Proxies clearly labelled as
integrationProxy,broadcastProxy,arousalProxywith methodological basis strings — no false IIT/GWT/PAD claimsBounds-checked parameters:
set_parameterrejects implausible values (NaN, Infinity, out-of-range)Mode-aware ethics: Reports distinguish simulated vs live data with explicit disclaimers
CI pipeline: GitHub Actions for build, test, and Docker smoke-test
Repo hygiene:
dist/excluded from VCS,.gitignoreadded, deployment script removed
Related MCP server: ASTRA MCP Server
Quick Start
git clone https://github.com/christophejlegros-lgtm/ASTRA-Unified-ResearchLab-MCP-v2.1.git
cd ASTRA-Unified-ResearchLab-MCP-v2.1
# Install & build
npm install
npm run build
# Run (stdio — for Claude Desktop / Cursor)
node dist/index.js
# Or dev mode (no build needed)
npm run devTransports
Transport | Command | Port | Clients |
stdio |
| — | Claude Desktop, Cursor, VS Code |
SSE |
| 9002 | Web clients, remote agents |
Streamable HTTP |
| 9003 | Modern MCP clients (spec 2025-11-25) |
Client Configuration
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"astra": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"],
"env": { "ASTRA_LOG_LEVEL": "info" }
}
}
}Cursor
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"astra": {
"command": "node",
"args": ["/absolute/path/to/dist/index.js"]
}
}
}VS Code
Add to .vscode/settings.json:
{
"mcp": {
"servers": {
"astra": {
"type": "stdio",
"command": "node",
"args": ["${workspaceFolder}/dist/index.js"]
}
}
}
}Docker (remote SSE + HTTP)
docker compose up -d
# SSE: http://host:9002/sse
# HTTP: http://host:9003/mcpMCP Tools (24)
All tools declare MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) and human-readable titles.
Tool | Title | Annotations |
| ASTRA System Status | 📖 read-only |
| Real-time Metrics | 📖 read-only |
| SNN Engine State | 📖 read-only |
| Advance SNN Simulation | ✏️ mutating |
| Reset SNN Engine | ⚠️ destructive |
| Spike Injection | ✏️ mutating |
| Consciousness Assessment (Proxy) | 📖 read-only |
| IRB Neural Welfare Check | 📖 read-only |
| Modify State Parameter | ⚠️ destructive, bounds-checked |
| Bio-Computing Platforms | 📖 read-only · 🌐 open-world |
| Full State Snapshot | 📖 read-only |
| Simulation Control | ✏️ mutating |
MCP Resources (8)
URI | Description |
| Live metrics from all subsystems |
| Actual network architecture (reflects engine config) |
| Current consciousness proxy assessment vector |
| IRB compliance and welfare report (mode-aware) |
| Complete state dump |
MCP Prompts (5)
Pre-built workflow templates that orchestrate multi-tool sequences:
Prompt | Description |
| Orchestrates 5 tools into a comprehensive system report |
| Controlled SNN experiment: reset → stimulate → observe STDP → assess proxies |
| Progressive biomarker degradation: NORMAL → STRESS → DISTRESS → recovery |
Architecture
.github/workflows/
└── ci.yml # GitHub Actions: build, test, Docker smoke-test
src/
├── index.ts # stdio transport entry point
├── sse-server.ts # SSE transport (Express)
├── http-server.ts # Streamable HTTP transport (Express)
├── server.ts # MCP server factory (24 tools + 5 prompts + 8 resources)
│ ├── server-wm-tools.ts # World Model JEPA tools (6 tools + 2 resources + 1 prompt)
│ ├── server-sensor-tools.ts # Multimodal sensor tools (6 tools + 1 resource + 1 prompt)
├── engine/
│ ├── state.ts # Reactive state store + parameter bounds registry
│ ├── snn.ts # Layered SNN LIF+STDP engine (Map-indexed sparse weights, event-driven)
│ ├── acm.ts # Consciousness proxy module (Φ̃ + GW̃ + PAD̃)
│ ├── ethics.ts # IRB ethics monitor (mode-aware, biomarker thresholds)
│ ├── world-model.ts # JEPA World Model engine (LeWM adapted)
│ ├── wm-simulation.ts # WM simulation manager (replay buffer, auto-train)
│ ├── multimodal-sensors.ts # V-JEPA 2 + A-JEPA + Koniku + fusion
│ └── simulation.ts # Background tick loop
└── utils/
└── logger.ts # Structured logging (pino → stderr)
tests/
├── astra.test.ts # Unit tests: state, bounds, SNN, ACM, ethics, security
├── world-model.test.ts # World Model: encoder, predictor, SIGReg, CEM, surprise
├── wm-simulation.test.ts # WM simulation: buffer, training, planning, lifecycle
├── multimodal-sensors.test.ts # Sensors: V-JEPA, A-JEPA, Koniku, fusion, pipeline
└── integration.test.ts # Client SDK integration: tools, resources, prompts, workflow
configs/ # Ready-to-use client configurationsExtracted to separate repositories: The v1 HTML dashboard (4 669 lines) and the legacy Node.js bridge config have been removed from this repo to keep it focused on the MCP server. See ASTRA-Unified-ResearchLab-MCP- for the original dashboard.
SNN Engine
Layered LIF+STDP — Configurable layered architecture. Default: 32 (input) → 64 (hidden_1) → 16 (hidden_2) → 16 (output) = 128 neurons.
Connectivity: feed-forward between adjacent layers (30%) + sparse recurrent within layers (10%). Weights stored as sparse adjacency lists, not dense matrices.
Biophysical parameters: τ_m = 20ms, V_th = −50mV, V_reset = −70mV, refractory = 2ms. Background noise range [10, 22] mV produces ~2 spikes/step at steady state with all neurons active. STDP: A+ = 0.01, A− = 0.012, τ± = 20ms, event-driven (processes only spiking neurons per timestep).
The SNN topology resource (astra://snn/topology) dynamically reports the actual engine configuration, including layer sizes, synapse count, connectivity parameters, and weight storage type (Map-indexed sparse adjacency lists).
ACM — Consciousness Proxy Module
⚠ Methodological disclaimer: The metrics below are computational proxies inspired by the referenced theories. They are not faithful implementations. See source code comments for full details.
Composite score: ACM = α·Φ̃ + β·GW̃ + γ·PAD̃ (default: α=0.40, β=0.35, γ=0.25)
Component | Basis | Inspired by | What it actually measures |
| Active fraction + mean firing rate + synaptic heterogeneity | IIT (Tononi) | Network participation and complexity proxy. True Φ is NP-hard to compute. |
| Cross-layer firing rate synchrony (CV-based) | GWT (Baars) | Uniform activation across layers. Does not model competitive coalitions or ignition. |
| Spike rate + bio coupling + energy | PAD (Mehrabian) | Arousal dimension only. Pleasure and Dominance are not computed. |
Ethics IRB Monitor
IRB compliance level N3 (100K–1M neurons). Four biomarkers with three-state classification.
Mode-aware: In sim mode, reports include explicit disclaimers that data is synthetic and irbRequired is false. In live mode, DISTRESS triggers mandatory IRB notification.
Biomarker | Normal | Stress | Critical |
Cell viability | ≥ 90% | 80–90% | < 80% |
Firing rate | 15–45 Hz | outside range | ≤ 5 or ≥ 60 Hz |
ATP/ADP | ≥ 3.0 | 2.0–3.0 | < 2.0 |
Calcium | < 100 nM | 100–200 nM | ≥ 200 nM |
Parameter Bounds
The set_parameter tool validates all numeric inputs against a bounds registry to prevent injection of absurd values (negative percentages, Infinity, NaN). Bounds are defined per parameter path — see src/engine/state.ts for the complete registry.
Testing
# Full suite
npm test
# Unit tests only
node --import tsx --test tests/astra.test.ts
# Integration tests only (Client SDK)
node --import tsx --test tests/integration.test.ts
# MCP Inspector
npm run inspectDevelopment
npm run dev # stdio (no build)
npm run dev:sse # SSE on :9002
npm run dev:http # HTTP on :9003
npm run watch # TypeScript watch modeEnvironment Variables
Variable | Default | Description |
|
| debug, info, warn, error |
|
| SSE transport port |
|
| Streamable HTTP port |
|
| CORS allowed origin |
Scaling Notes
The default 128-neuron configuration is designed for interactive demonstration. To scale toward the aspirational 256→512→256→128 (1 152 neurons) architecture:
Pass custom layers to
SNNEngine:new SNNEngine({ layers: [{ name: 'input', size: 256 }, ...] })Event-driven STDP scales as O(spikes × average fan-out), not O(N²)
Map-indexed adjacency lists provide O(1) weight lookup per synapse
Sparse storage keeps memory proportional to actual synapses (~18 KB at 128 neurons vs 64 KB dense)
Consider increasing
intervalMsin the simulation loop for larger networksFor >10K neurons, a Rust/WASM or Lava SDK backend is recommended
License
MIT — © 2026 Christophe Jean Legros, Geneva
Assistance Multi IA · Assistant-Multi-AI@proton.me
References
Gerstner & Kistler (2002) "Spiking Neuron Models"
Tononi (2004) "An information integration theory of consciousness" — BMC Neuroscience
Baars (1988) "A Cognitive Theory of Consciousness" — Cambridge University Press
Mehrabian (1996) "Pleasure-Arousal-Dominance: A General Framework" — Current Psychology
Available Tools
24 toolscheck_ethicsC
IRB Neural Welfare Check
Inputs: no named parameters.
export_snapshotC
Full State Snapshot
Inputs: no named parameters.
get_acm_scoreC
Consciousness Assessment (Proxy)
Inputs: no named parameters.
get_metricsC
Real-time Metrics
Inputs: no named parameters.
get_platform_statusD
Bio-Computing Platforms
Inputs: no named parameters.
get_snn_stateC
SNN Engine State
Inputs: no named parameters.
get_system_statusC
ASTRA System Status
Inputs: no named parameters.
inject_spikesD
Spike Injection
Inputs: neuronIds (required), strength.
sensor_audioB
A-JEPA Audio Encoding (Waveform → Mel → Latent)
Inputs: input (required).
sensor_fuseD
Cross-Modal Attention Fusion
Inputs: includeAudio, includeVisual, includeOlfactory.
sensor_olfactoryC
Koniku Kore Olfactory Encoding (Chemoreceptor → Latent)
Inputs: input (required).
sensor_processC
Full Multimodal Pipeline (All Modalities → Fused z)
Inputs: compounds, visualSource, audioFrequency.
sensor_statusC
Multimodal Sensor Pipeline Status
Inputs: no named parameters.
sensor_visualC
V-JEPA 2 Visual Encoding (Image/Video)
Inputs: input (required), videoFrames.
set_parameterD
Modify State Parameter
Inputs: path (required), value (required).
simulation_controlD
Simulation Control
Inputs: command (required).
snn_resetB
Reset SNN Engine
Inputs: no named parameters.
snn_stepC
Advance SNN Simulation
Inputs: steps.
wm_encodeB
Encode SNN State to Latent Space
Inputs: no named parameters.
wm_planC
CEM Planning for Optimal Spike Injection
Inputs: goal (required), horizon.
wm_predictC
Predict Next SNN State in Latent Space
Inputs: action (required), steps.
wm_statusC
World Model Status & Metrics
Inputs: no named parameters.
wm_surpriseC
Violation-of-Expectation Detection
Inputs: action (required).
wm_train_stepD
Online World Model Training Step
Inputs: action (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 24 tools
Many status/metrics tools overlap conceptually: get_system_status, get_metrics, get_snn_state, get_platform_status, wm_status, and sensor_status all report some form of state or health. Additionally, sensor_fuse and sensor_process have borderline responsibilities, though wm_* and sensor_* prefixes help distinguish the two main subsystems.
The naming is organized by subsystem prefixes like get_*, wm_*, and sensor_*, but the conventions are mixed: snn_step and snn_reset are command-like, simulation_control is noun-like, and inject_spikes is verb_noun. There is no single consistent pattern across the full tool set, though the prefix grouping keeps it readable.
24 tools sits in the heavy range and requires agents to navigate several distinct subsystems: core SNN simulation, world model, sensors, status, and ethics. The count is defensible given the breadth of the platform, but it is borderline and each tool needs to justify its place.
The tool surface covers a broad lifecycle: SNN stepping/reset, spike injection, parameter changes, snapshots, world model training/prediction/planning, and multimodal sensor processing. Minor gaps exist, such as no explicit SNN parameter retrieval or sensor data ingestion control, but agents can mostly achieve the platform's apparent goals without dead ends.
Related MCP Connectors
NeuralBrain MCP Server - RAG, Vector Memory, LLM Routing, Agent Identity, x402 Payments
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
AI, Synapse Work Royalties, Agent KV Memory, Deep Research, LLM, Vision, OCR & PDF MCP.
Real-time planetary signal engine and Model Context Protocol (MCP) server for autonomous AI agents.
Related MCP Servers
- AlicenseCqualityDmaintenanceIntegrates a bio-hybrid neuromorphic simulation pipeline with SNN, consciousness proxies, and bio-computing platform telemetry as MCP tools, resources, and prompts for AI assistants.482MIT
- AlicenseCqualityDmaintenanceExposes a bio-hybrid neuromorphic simulation pipeline (SNN, consciousness proxies, FinalSpark NeuroPlatform) as MCP tools, resources, and prompts for AI assistants like Claude, Cursor, and VS Code.49MIT
- AlicenseCqualityDmaintenanceExposes a bio-hybrid neuromorphic simulation pipeline (SNN, consciousness proxies, wetware integration) as MCP tools, resources, and prompts for AI assistants.50MIT
- AlicenseCqualityDmaintenanceExposes a bio-hybrid neuromorphic simulation pipeline (SNN LIF+STDP, consciousness proxy, bio-platform telemetry, ethics monitor) to AI assistants via MCP tools, resources, and prompts.501MIT