Skip to main content
Glama

flyconn-mcp

An MCP server that lets Claude, Cursor or any MCP client query public Drosophila connectomes and run in-silico experiments on them through flyconn. It runs locally. Every answer carries flyconn's provenance and honesty labels.

Status: pre-alpha. Read-only queries work; experiments-as-jobs is the next milestone (see PLAN.md, PROGRESS.md).

Install (from source, for now)

git clone https://github.com/moiz-lakkadkutta/flyconn-mcp && cd flyconn-mcp
uv sync
claude mcp add flyconn -- uv --directory "$PWD" run flyconn-mcp

Once released on PyPI: claude mcp add flyconn -- uvx flyconn-mcp.

Data lives in flyconn's cache ($FLYCONN_CACHE, default ~/.cache/flyconn). The server never downloads data itself. Pull a dataset with flyconn data pull malecns@1.0 --level weights (about 1.1 GB); list_datasets reports sizes and what is cached.

Related MCP server: neurograph

Tools

Tool

Does

list_datasets

Registered datasets: licence, citation, download size per level, locally cached level

find_neurons

Neurons by cell-type glob (GNG23*, case-insensitive) and/or super class: counts per super class, top types with predicted NT

neuron_partners

Top upstream / downstream partner types of a cell type: synapses, share of input/output, signed synapses; min_weight threshold (default 5)

find_paths

Paths (≤4 hops) from one cell type to another, grouped by type sequence: strength (product of input fractions), net sign, and stability across synapse thresholds (1×, 2×, 4× min_weight) and 100 NT-sign samples

Every query result includes provenance: dataset@version, the store's converter and build date, flyconn and flyconn-mcp versions, every parameter, the threshold and the sign policy.

Measured on MaleCNS v1.0 (2026-10-24, M4 Pro, 166,700 neurons, 25.6M edges)

neuron_partners(cell_type="GNG232", top_n=5) over stdio, excerpt:

query:    GNG232, 2 neurons, acetylcholine (predicted)
upstream: 2,295 synapses at min_weight=5, 39 partner types
  LB3c     13 neurons  481 syn  21.0%  signed +481  acetylcholine
  LB3d     19 neurons  452 syn  19.7%  signed +452  acetylcholine
  GNG452    4 neurons  209 syn   9.1%  signed -209  gaba
downstream: 2,073 synapses, 53 partner types
  GNG041    2 neurons  403 syn  19.4%  signed +403  (GNG232's sign: ACh)

neuron_partners(cell_type="MN9", direction="upstream"): 6,085 input synapses from 74 types; the top one is DNge062 (556 synapses, +). Each query took ≤0.1 s, and the server's peak RSS was about 340 MB.

find_paths(source_type="GNG232", target_type="MN9") (≤3 hops, min_weight 5): 1,401 neuron paths in 445 type paths, about 1.8 s and 780 MB peak RSS. The top type paths are GNG232 › DNge080 › MN9 (+, sign stability 0.95) and GNG232 › GNG108 › MN9 (+, 0.96). The query prunes in SQL to the ~160 neurons that can lie on such paths and runs flyconn's path_stability on that subgraph. A golden test checks that it finds exactly the full matrix's paths and strengths, where building the full matrix would peak at ~2.5 GB.

Honesty

Wiring is measured; neurotransmitters, and so edge signs, are predicted (argmax policy, flyconn ADR-0007). Simulation outputs, when they arrive, are model predictions and run with rewire / sign-shuffle controls on by default.

Development

scripts/check.sh runs ruff, format check, pyright (strict) and the offline tests. Tests use flyconn's synthetic connectome and drive the tools through the SDK's in-process MCP client.

Licence: Apache-2.0.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      An MCP server that gives Claude access to NCBI Datasets v2 — search genome assembly metadata, retrieve taxonomy records, and download data packages without leaving your conversation.
      10
      -
    • F
      license
      A
      quality
      B
      maintenance
      Exposes NeuroGraph's scientific API to AI models as MCP tools, enabling them to query, analyze, and visualize brain networks — regions, tracts, connectivity, literature, and cross-species homologies — drawn from a portable SSD-based neuroimaging data library. Lets models read real atlas data, load datasets, compute graph metrics, and produce visualization scene descriptors without acting as the scientific engine itself.
      12
      3
      -
    • A
      license
      B
      quality
      B
      maintenance
      Exposes a local-first personal brain to any MCP client, letting agents perform identity-grounded memory recall, simulate stances and value conflicts, propose or approve audited guardrail changes, take snapshots with drift comparison, and run a neural validation harness. Everything runs against a local SQLite neuron/synapse memory graph with consent-gated, append-only auditing.
      6
      CC BY-4.0
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables searching and reading public neuroscience data from DANDI, OpenNeuro, NeuroMorpho, Allen, and BrainGlobe directly from a coding agent, including remote NWB slices with license and citation information.
      2
      MIT