Mmcp.market

Neurarch MCP server

by neurarch-ai·io.github.neurarch-ai/neurarch-mcp·v0.14.0

Reads a PyTorch .py, a Neurarch graph, or a HF repo; agents inspect, lint, verify and rank designs.

B82/100grade B
What users say
No reviews yet
Be the first
Safety scan
B82/100

full report

Adoption
Growing

1 stars86 downloads/wk

Reviews

Write one

Nobody has reviewed Neurarch yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Neurarch tools (36, 6 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • add_connection

    Wire two existing layers: a directed edge from "from" to "to". Fails on self-loops or duplicate edges. The target layer's cached shape is invalidated. Call save_model afterwards to persist.

  • add_layerwrite action

    Insert a new layer into the model. Provide the layer type, a unique name, optionally an existing layer to auto-connect from, and any layer-specific params. Returns the new layer id. Call save_model afterwards to persist to disk. WARNING: this mutates the model. Call layer_impact first when inserting into the middle of an existing path so you can warn the user about cascading shape changes.

  • architecture

    A library id from list_architectures, e.g. "qwen2.5-7b", "llama-3-8b", "bert-base", "resnet-50". Leave blank to have the closest one picked.

  • check_design

    Get Neurarch's full verdict on this model: is it structurally sound and ready to train, what will a training run cost and how long will it take, which deployment target fits it best and at what latency, and which decisions are still the human's to make. Call this BEFORE proposing an architecture change and again after, so you can say what your edit actually did. Broader than validate_model, which

  • compare_layers

    Structurally diff two layers: whether they are the same type, their parameter-count delta, whether input/output shapes match, and exactly which param keys differ (only-in-a, only-in-b, and changed values). Use to answer "are block_0 and block_1 identical?" before deciding whether an edit to one should mirror to the other, or whether two blocks can share an implementation. Returns null when either

  • delete_connectionwrite action

    Remove a single directed edge between two existing layers. The target layer's cached shape is invalidated. Fails when no such edge exists. Call save_model afterwards.

  • delete_layerwrite action

    Remove a layer and every connection touching it. Cached shapes on former downstream layers are invalidated and the layer is removed from any groups it belonged to. Returns the list of layers whose shape contracts must be recomputed and the groups affected. Call save_model afterwards. WARNING: this is destructive. Call layer_impact first if the layer sits in the middle of an active path.

  • describe_architecture

    One-call orientation: topologically-ordered layer pipeline, model depth (longest path), input/output shapes, total params and MACs, the top-5 heaviest layers by parameters AND by compute, and a validation rollup. Use this instead of chaining get_model_summary + param_count_by_block + flops_by_block + validate_model \u2014 it answers "what is this model and where is the budget" in a single call.

  • diff_models

    Structurally diff the current model against another .neurarch.json file: layers only in current, only in the other, and modified (with field-level changes), plus added/removed connections. Layers are matched by name. Use to review what changed between the model and a saved checkpoint or variant. "current" is the loaded model; the file you pass is "other", so onlyInCurrent is what this model adds r

  • explain_finding

    What a lint rule or check_design finding means for this model, the evidence behind it, and the smallest edit that clears it.

  • export_pytorch

    Render the current graph as a runnable PyTorch nn.Module, the same generator behind the app's Export panel. Use it after editing the graph with the write tools, or to hand a zoo:/hf: architecture to the user as code. The source is returned; pass save_to to also write it to a file (honoured only under --write, and never over the .py this server was started from: the graph was derived from that file

  • find_layers

    Search layers by type, name regex, scope prefix, and/or applied augmentation, then optionally rank by parameter count. Answers "where are all the convolutions?", "which layers under encoder.layer.3 are frozen?", or "what are the 5 biggest layers?". Returns name, type, scope, param count, and any augmentations \u2014 call get_layer for full detail.

  • find_models

    Walk a directory for model definitions: .py files declaring an nn.Module subclass and saved .neurarch.json graphs. Each .py is tried against the parser, so the answer distinguishes files this server can read now from ones that need a runtime trace (neurarch-trace). Use it on arrival in an unfamiliar repository, then pass the path you want as model_path to any other tool. Skips node_modules, virtua

  • find_path

    BFS shortest directed path from one layer to another. Answers "does encoder.0.attention reach lm_head?" \u2014 returns the ordered list of layer names along the path, or null when unreachable. Useful before recommending an edit to confirm two layers are actually on the same flow.

  • flops_by_block

    Group MAC counts (FLOPs \xF7 2) by block, scope, or type. Answers "where is compute spent?" \u2014 pairs with param_count_by_block to find parameter-light but compute-heavy regions (attention) versus the inverse (large MLPs).

  • get_block

    Drill into one block (named group, or a scope prefix like "encoder.layer.0"): its member layers with per-layer params and FLOPs, the block totals, and the edges crossing the block boundary \u2014 what feeds the block and what it feeds. Use after list_blocks to understand how a block connects to the rest of the graph before recommending extracting, replacing, or freezing it. Returns null when the n

  • get_design_notes

    Return the model's pinned design rationale: notes the user promoted from advisor warnings or agent replies, or typed manually. Each note has source/title/body/createdAt and optional affected layer ids. Use this to ground recommendations in the user's stated intent for the architecture before suggesting a change.

  • get_layer

    Return the full definition of a single layer (params, shapes, notes, connections). Looks up by exact name first, then by id, then by case-insensitive substring. Returns null when no match.

  • get_model_summary

    Return a one-shot overview of the Neurarch model: layer count, connection count, total parameters, dominant layer types, and the input/output shape. Use this first to orient yourself before drilling into specific layers.

  • layer_impact

    Compute the blast radius of changing a layer (or a regex-matched set): every upstream and downstream layer reachable through connections, flagged for shape sensitivity and weight rebuild requirements. Use this BEFORE recommending a destructive edit so you can warn the user about cascading effects. Mirrors the GitNexus impact tool.

  • lint_modelwrite action

    Run Neurarch's structural design rules over the model, offline and with no API key: attention head-dim and GQA divisibility, normalization and activation ordering, dropout and feature ranges, missing residuals in deep stacks, and the shape rules that can be decided statically. Returns findings with a stable rule id and severity (block | warn | info). This is the same rule set the Neurarch CI actio

  • list_architectures

    Search the reference library bundled with this server: verified graphs of published architectures (DeepSeek-V3, Qwen2.5, Llama, Mixtral, Whisper, CLIP, BERT, ViT, ResNet and more), each with real dimensions from the model's config and a parameter count checked against the published one. Offline. Any read tool can then be asked about an entry by passing model_path: "zoo:<id>", so you can compare th

  • list_blocks

    List the model's collapsed groups ("blocks"): name, member count, params, FLOPs. Returns scope-derived blocks (dotted module path prefixes) when no explicit groups exist. Use this to talk about the architecture at a high level instead of layer-by-layer.

  • list_connections

    Return every connection as {from, to, label?}, with optional filters by source or target layer name. Useful when get_layer's upstream/downstream is not enough and the agent needs a flat edge list (e.g. for "what are all the residual links?").

  • list_hyperparams

    Dump the model-level hyperparameter table (learning rate, batch size, dropout, etc.) the user has set in the Neurarch hyperparams panel. Empty object when none defined. These are training-config knobs, NOT per-layer params.

  • load_architecture

    Open one reference architecture from the bundled library and describe it: pipeline, depth, parameter and compute hotspots, validation. Pass save_to to write it out as a .neurarch.json the user can edit in the app or start this server on (requires --write). For further questions, pass model_path: "zoo:<id>" to any tool.

  • load_hf_model

    Build a graph for a Hugging Face model from its config.json and describe it. This is the one tool that reaches the network (huggingface.co only; HF_TOKEN is sent for gated repos), which is why it is listed only when the server runs with --hf. The result says whether it came from the real config or a generic family template (configSource), and quotes the parameter count HF publishes so you can see

  • mermaid_diagram

    Render the model as Mermaid flowchart syntax (top-down). The caller wraps the result in ```mermaid``` fences. Use sparingly \u2014 it gets noisy past ~30 layers; pair with namePattern via find_layers to give the user a clearer mental model.

  • modify_layer

    Modify an existing layer: shallow-merge new params, rename, or change scope. Returns a before/after diff. Cached shapes on this layer are invalidated when params change, so the user should reopen the model in Neurarch to recompute shape contracts. Call save_model afterwards. WARNING: shape-changing edits propagate downstream \u2014 call layer_impact first.

  • param_count_by_block

    Group parameter counts by block (named group), scope (dotted module path), or layer type. Answers "where do my parameters live?" \u2014 useful for finding bloated subnets.

  • rank_designswrite action

    Order several candidate designs for the one decision an agent cannot make by inspection: which of them to spend a training run on. Candidates are model files (model_path), zoo:<id> or hf:<id> references, or inline graphs; include_current adds the model this server holds. Blocked candidates (a pre-flight finding that means the graph will not forward-pass) rank last and are reported as budget you ca

  • rule

    The rule id or finding title, e.g. "head-dim-divisibility".

  • save_model

    Persist the current in-memory model to disk. Writes to the file passed on the command line by default; pass "path" to write elsewhere (will overwrite). Call this AFTER add_layer / modify_layer / add_connection \u2014 those tools only mutate memory. Returns the written path and byte count.

  • suggest_fix

    Turn lint findings into edits to the source file: a unified diff per finding, labelled exact (a number or an order the rule pins, changed on every line that shares it) or proposal (a missing layer inserted with a note on what forward() still needs). Works on a .py; for a .neurarch.json use the write tools. Findings with no mechanical fix come back under notFixable with the reason. Apply the diff,

  • trace_model

    Trace the model at runtime with neurarch-trace (pip install neurarch-trace) and get a graph with real shapes: instantiate it in Python, run one forward pass with hooks, write a .neurarch.json. Use when find_models or parseQuality says the static parse is thin or partial. target is "path/to/file.py:ClassOrFactory", "module.path:attr" or "hf:<repo>"; input is the batch-first dims per model input. Th

  • validate_modelwrite action

    Run structural invariants over the model: cycles, dangling connection refs, duplicate ids/names, and orphan layers (no upstream / no downstream). Call before recommending a destructive edit so you can flag pre-existing issues separate from your change. Returns a list of findings with severity error|warn.

Public scan report

scanner v0.1.9 · 2026-09-20 · same rubric, same numbers if you re-run it

1 medium
  • Code scan4 source files scanned20/25
  • Live reliabilityno gateway calls yet and no remote to proben/a
  • Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 2 days ago15/15
  • Maintainer identityregistry namespace matches repository owner6/10

Findings (1)

  • mediumeval / new Function usedexec.eval
    dist/index.js: … ${className}() `; code += ` model.eval() `; if (hasMultipleInputs) { con…
Overall 82/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

Install directly

Runs npx -y neurarch-mcp on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add neurarch-mcp -- npx -y neurarch-mcp
Add to Cursor

Neurarch: common questions

Is Neurarch MCP server safe?
Mostly: it is graded B (82/100). Read the Neurarch safety report
How do I install Neurarch?
It runs on your machine. Copy the Claude Code, Claude Desktop or Cursor config from the install section.
Does Neurarch need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Neurarch maintained?
The last commit was 2 days ago (2026-09-19). The latest release is v0.14.0.
What can I use instead of Neurarch?
Servers from other publishers that do the same job: Actuator MCP server, Scholar Feed MCP server and Log10x MCP server. Compare all Neurarch alternatives.

Alternatives to Neurarch

Same job from other publishers: the closest match first, then the best rated.

All Neurarch alternatives →
  • Actuator
    Hire vetted local people for real-world jobs: post, rank, hire, pay in escrow, verify with photos.
    B
  • Scholar Feed
    Rank CS/AI/ML papers by citations, forecast impact, or code adoption; trace 23.2M citation edges.
    B
  • Log10x MCP
    Tools to rank log patterns by volume and cost and to compact, tier down or offload each pattern
    A
  • Mencoro
    Track how your brand appears in AI answers: rank, mentions, sentiment, share of voice.
    A
  • Namera
    Check name availability across domains, trademarks, and social handles. Score and rank candidates.
    A

More from neurarch-ai