FEAGI MCP Server
Model Context Protocol (MCP) server for FEAGI neural monitoring and control. Enables LLMs to observe brain activity, design neural circuits, and debug neurorobotic systems in real-time.
Features
Monitoring & Observation
- Monitor cortical activity - Real-time firing rates, spike patterns, and neuron states
- Trace signal paths - Verify connectivity between cortical areas
- Inspect embodiment - Check controller registration, motor/sensor mappings
- Analyze connectivity - Examine synaptic connections and morphologies
Circuit Building
- Stimulate areas - Trigger specific cortical regions for testing
- Validate circuits - Check genome structure and parameter sanity
- Get area parameters - Inspect neuron properties and dimensions
Genome Management
- Upload genomes - Load neural architectures into running FEAGI
- Download genomes - Retrieve current brain configuration
- List areas - Enumerate all cortical regions
External .genome files pass through feagi_mcp.genome_artifact. The current
codec uses UTF-8 JSON, but artifact encoding is separate from the embedded
genome_schema_version and its FEAGI migration chain. Direct JSON parameters
to MCP tools remain API documents rather than file artifacts. MCP snapshots
store the standard genome artifact in <label>.genome and keep snapshot-only
annotations in <label>.snapshot.json.
Composer integration (optional)
- Simulator asset packs - List/resolve/download shared packs from Composer when
FEAGI_COMPOSER_BASE_URLis set
Installation
# From PyPI
pip install feagi-mcp
# Or install from a source checkout (editable)
cd feagi-mcp
pip install -e .
# Or with uv
uv pip install -e .
Usage
Standalone Server (stdio)
feagi-mcp
With Configuration
export FEAGI_HOST=localhost
export FEAGI_PORT=8000
# Optional: Composer public API (shared simulator packs, embodiment metadata APIs, etc.)
export FEAGI_COMPOSER_BASE_URL=https://staging-api.brainsforrobots.com
feagi-mcp
Cursor Integration
Add to your Cursor MCP settings (~/.cursor/mcp.json):
{
"mcpServers": {
"feagi": {
"command": "python",
"args": ["-m", "feagi_mcp.server"],
"env": {
"FEAGI_HOST": "localhost",
"FEAGI_PORT": "8000",
"FEAGI_COMPOSER_BASE_URL": "https://staging-api.brainsforrobots.com"
}
}
}
}
FEAGI agent skill (Claude Code plugin)
skills/feagi/ is an Agent Skill that
teaches an AI agent how to use these tools: FEAGI vocabulary, naming and placement policy,
reuse-first wiring, verification, memory and plasticity, embodiment, and diagnostics. The
repository root is also a Claude Code plugin that bundles the skill with this server.
In Claude Code:
/plugin install feagi --marketplace feagi/feagi-mcp
The plugin starts the server with uvx feagi-mcp@<version> and passes through FEAGI_HOST
and FEAGI_PORT (defaults localhost and 8000), so uv must be installed.
Other agents that read Agent Skills can use the skills/feagi folder directly; it is plain
Markdown and names no particular model. The wheel also ships it as feagi_mcp/skills/feagi
(feagi_mcp.skill_bundle.skill_dir() returns its path).
When you add, rename, or remove a tool, give it a category in
feagi_mcp.skill_bundle.TOOL_CATEGORIES and regenerate the skill's tool index:
python scripts/generate_skill_tool_index.py
tests/test_skill_bundle.py fails if the index is stale, if the skill references a tool or
parameter that does not exist, or if the plugin version drifts from pyproject.toml.
Available Tools
Agent Introspection
get_registered_agents- List registered agents with ids andagent_nameget_agent_properties- Get agent type, capabilities, version, connection infoget_agent_device_registrations- Inspect motor/sensor structure, group_ids, control modes. Preferget_motor_group_summary/explain_cortical_area_namingfor musculoskeletal agents.compare_device_registration_store- Compact session vs descriptor registration keys (poll_source, leftoverSegmentedVision)get_motor_group_summary- Compact motor bundle titles, unit ids, and channel countsexplain_cortical_area_naming- Why a live area has its title (e.g.ungrouped-1)
Monitoring
monitor_activity/monitor_activity_batch- Firing rates and lifetime stats.summary_only=True(default) omitsspike_historyand neuron-id lists.get_connectivity- Inspect synaptic connections between areastrace_signal_path- Verify signal propagation pathsget_embodiment_status- Live controller registry + compact I/O catalog (/v1/embodiment/statuswhen present)get_sensor_snapshot_last- Latest sensor tap. Defaultsummary_onlyreturns per-Z stats, not every voxel.get_area_parameters- Inspect neuron propertiesget_cortical_synapse_counts- Incoming/outgoing synapse counts fromcortical_area_properties(running counters; can drift after a resize)get_log_tail- FEAGI process logs. Passmessage_containsinstead of dumping the ring buffer. Requires HTTP.get_last_failed_mutation- Most recent failed mutating API call (method/path/status/content-length/error). Use when health is fine but upload/load failed.diagnose_feagi_runtime- Local-first stall diagnosis (feagi-core.log, desktop log,FEAGI_LOG_FILE, then HTTP ring). Also attacheslast_failed_mutationwhen HTTP answers. Returnspaths_checked. Use whenhealth_checktimes out or FEAGI has exited.
Genome Editing (NEW)
create_brain_region- Create the named circuit container. Title must name the function (Sit, Walk CPG); Autogen Circuit / Untitled are rejected.create_cortical_area- Add OPU/IPU/CUSTOM/MEMORY areas programmatically (CUSTOM/MEMORY require a function-namedbrain_region_id; MCP enforces origin/label spacing unless skipped). Naming: circuit title = function; area names = role; never prefix withMcp— seedocs/NEW_TOOLS.md(Circuit naming policy).update_cortical_area- Modify cortical area propertiesset_memory_mp_encoding- Set a memory area's MP encoding (none,mp_learning,mp_differential,mp_ratio) plus its quantization in one call; validates locally and returns the effective mode (warns when FEAGI auto-disables a change mode for temporal_depth < 2)delete_cortical_area- Remove cortical areaslist_opu_areas- List only motor output areaslist_ipu_areas- List only sensory input areaslist_io_areas_compact- Compact IPU/OPU inventory (subtype, dimensions,dev_count, dimension mismatch). Prefer this over*_with_metadata.list_opu_areas_with_metadata- List OPU areas with semantic type/purpose/capabilities infolist_ipu_areas_with_metadata- List IPU areas with semantic type/purpose/capabilities info (do not use for encoder inventories)get_area_semantic_info- Get detailed semantic information about any cortical area
Connection Management (NEW)
propose_connectivity_rule- Local compact-rule judgment (*/?/?+N). Call beforecreate_morphology.get_morphology- Fetch one morphology. Compact rules include parameters by default; enumerated dumps omit them unless requested (judgment.compact_formwhen rows should beN..M). Prefer this overlist_morphologies.update_morphology- Replace an existing morphology and rebuild mappings that use it. Same compactness gate ascreate_morphology.get_cortical_mapping- Get connection configuration between two areasvalidate_magnitude_passthrough- One-call check that graded IPU magnitudes (audio spectrum, analog sensors) reach an OPU unchanged:mp_driven_psp, threshold gating, scaling, fan-out, dimensions, and a realized-wiring sample at the far edge voxel. Each finding carries anupdate_cortical_areafix when one applies. Passclass_countfor class maps: any drift becomes an error.wire_value_passthrough- Wire a one-layer value plane (classifier twin, Depth Map) 1:1 so each potential arrives exactly (source forwarding, destination threshold/leak/accumulation, projector mapping), then validate.expand_value_to_bins- Build aW x H x levelsbin area from a value plane with a Z threshold ramp (cumulative code), for depth ranges or one neuron per class.decode_class_map- Decode the last burst of a class map ((class_id + 1) / class_count) into a class histogram and capped pixel rows from one fire-queue read.create_classifier/update_classifier/attach_classifier_field- Create and edit classifier assemblies (scanner mode takesclass_count) and bind image fields (each gets aW x H x 1twin).measure_audio_io_disparity- While audio is streaming, compare each input frequency column with the output column it produced. Reports which gap dominates: dropped frames, dropped columns, phase, or magnitude.update_cortical_mapping- Create/update connections with morphology rulesdelete_cortical_mapping- Remove connections between areas
Composer shared simulator packs (optional)
Set FEAGI_COMPOSER_BASE_URL to the Composer HTTPS root (e.g. staging). Read-only routes under /v1/public/global/simulator-packs.
composer_list_simulator_packs- Catalog with optional filters (engine,kind,state)composer_get_simulator_pack_versions- Version index for apack_idcomposer_get_simulator_pack_resolved- Resolved manifest and per-file HTTPS URLs (GCS)composer_download_simulator_pack_bundle- Fetch every listed file into a local directory for MJCFincludewiring (MuJoCo still requires XML edit + model reload)
Brain Visualizer parity (full REST router)
list_brain_visualizer_operations- Index of every supportedoperation_idwith HTTP method and path (same surface asFEAGIHTTPAddressList.gd)brain_visualizer_api- Call any whitelisted operation: genome (save, amalgamation, circuits), cortical areas (geometry, properties, multi-put, reset, clone), regions (CRUD, relocate, clone), morphologies (CRUD, rename, usage), cortical mappings (afferents, efferents, batch), burst engine, system visualization tuning, neuroplasticity, insight/monitoring, agents (register, heartbeat, stimulation, device registrations), network, vision input. Usepath_paramsfor{agent_id}/{region_id}routes; for amalgamation-by-upload usepost_genome_amalgamation_by_upload_multipartwithjson_body: {\"genome_json\": \"...\"}.- Voxel / neuron inspection: For a specific cortical area and voxel
(x,y,z)—neuron details, incoming/outgoing synapses at that voxel, or debugging—useoperation_idget_cortical_area_voxel_neurons(GET/v1/cortical_area/voxel_neurons) withquery:cortical_id,x,y,z, optionalsynapse_page.
Control
stimulate_area- Trigger neurons for testingupload_genome- Load a new brain architecturedownload_genome- Retrieve current genome
Inspection
list_cortical_areas- List areas; filter by name, id, or type to avoid a full-genome dumplist_memory_neurons- List paginated runtime memory-neuron IDs and ST/LT countsinspect_memory_neuron- Inspect one memory neuron's lifecycle and weighted synaptic edgesdiagnose_mapping_plasticity- Inspect plastic rules and realized source-to-destination weightsget_genome_info- Get metadata about current genomevalidate_genome- Check genome structure for issuesget_burst_engine_status- Check burst engine stateget_runtime_metrics- Get comprehensive runtime metrics
Example: LLM-Assisted Circuit Design
# LLM can now:
# 1. Monitor CPG oscillation
activity = await monitor_activity(area_id="cCPGa_", duration_ms=1000)
# Returns: {"firing_rate": 5.2, "active_neurons": [0,1,2,3,4], "period_ms": 192}
# 2. Verify connections
conn = await get_connectivity(src_area="cCPGa_", dst_area="cHipFL")
# Returns: {"synapse_count": 150, "morphology": "cpg_to_hip_x", "avg_weight": 18.0}
# 3. Check motor output
status = await get_embodiment_status()
# Returns: {"motor_cortical_id": "opose0", "device_count": 12, "last_packet_ms": 42}
# 4. Debug with stimulation
result = await stimulate_area(area_id="cStart", coords=[0, 0, 0], potential=1.0)
# Trigger walking behavior for testing
Architecture
feagi-mcp/
├── src/feagi_mcp/
│ ├── __init__.py
│ ├── server.py # Main MCP server with tool definitions
│ ├── feagi_client.py # HTTP client for FEAGI REST API
│ ├── config.py # Configuration management
│ └── tools/ # Individual tool implementations
│ ├── monitoring.py
│ ├── control.py
│ └── genome.py
├── tests/
│ ├── test_server.py
│ └── test_feagi_client.py
├── examples/
│ └── circuit_design.py
├── pyproject.toml
└── README.md
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Lint and format
ruff check .
ruff format .
mypy src/
Requirements
- Python 3.10+
- Running FEAGI instance (default: localhost:8000)
- MCP-compatible client (Cursor, Claude Desktop)
License
Apache-2.0 - Copyright 2026 Neuraville Inc.
Support
Metadata
Release files for feagi-mcp 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| feagi_mcp-0.1.9.tar.gz | 1.0 MB | Without provenance | Details for feagi_mcp-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| feagi_mcp-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for feagi_mcp-0.1.9-py3-none-any.whl |
Total release size: 1.5 MB
Release files / feagi_mcp-0.1.9.tar.gz
| Download URL | feagi_mcp-0.1.9.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41ec4872260fd2d2fd3f2890ecfb1942ae1006d94e41309a202451793f54267c
|
|
BLAKE2b-256 checksum How to use checksums |
0a173cb6406924102371d9ec1a2ec03f9a521f3037108edc75450f87d9f35ce4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / feagi_mcp-0.1.9-py3-none-any.whl
| Download URL | feagi_mcp-0.1.9-py3-none-any.whl |
|---|---|
| Size | 463.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1781c0a2ed232c8e08fa38436c8629caa647627a003e465c532e9583fe8c7f8e
|
|
BLAKE2b-256 checksum How to use checksums |
15376ea956077d43d195c91cc025c01e5764c5a8cb70674beb3b305b03b356d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for feagi-mcp 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.