Neurocode logo

Neurocode

by Arkz-Deepak

Slices and repairs multi-language codebases with an in-memory graph and local models through MCP.

Install Neurocode

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "arkz-deepak-neurocode": {
      "command": "uvx",
      "args": [
        "neurocode-ai"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx neurocode-ai

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Arkz-Deepak/neurocode provides an stdio MCP server for analyzing and modifying local repositories with bounded code context. It builds an in-memory Code Property Graph from Tree-sitter ASTs, then exposes slicing, tracing, impact analysis, symbol lookup, patch validation, and AST grafting tools. Local Ollama models can generate repair patches from the selected context without a cloud API. Reach for it when coding agents need focused multi-file context on machines with limited GPU memory.

Use cases

  • Slice a repository around a reported bug
  • Trace callers and callees across supported source files
  • Generate local Ollama repair patches
  • Validate and graft syntax-aware code changes

Key features

  • In-memory Code Property Graph slicing
  • Tree-sitter support for five languages
  • Token-bounded AST context selection
  • Call-chain, symbol, and impact analysis
  • Deterministic AST grafting with rollback
  • Local Ollama patch generation

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 17d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · neurocode-ai (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit8d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Neurocode works

What Arkz-Deepak/neurocode does

Arkz-Deepak/neurocode is an MCP server and command-line toolkit for local code analysis and repository repair. It converts supported source files into an in-memory Code Property Graph (CPG), combining syntax-tree structure with relationships between symbols, callers, and callees. Agents can request a focused reachability slice rather than placing complete files in a model context.

The slicing process is designed around a token ceiling of 1,200 tokens. A bounded 0/1 knapsack selection chooses relevant AST subtrees around candidate faults, while graph traversal supplies cross-file relationships. The project targets local language models in the 1.5B–14B parameter range and consumer hardware with approximately 4GB–8GB of VRAM.

Supported languages and extensions are Python (.py), TypeScript (.ts, .tsx), JavaScript (.js, .jsx, .mjs, .cjs), Go (.go), and Rust (.rs).

How it works

Tree-sitter grammars parse the repository on the host CPU, and NetworkX is used for the in-memory graph. NeuroCode calculates a topological k-hop closure around relevant code entities, then sends only the selected slice to the model. This separates deterministic repository analysis from neural patch generation and keeps the model input within the configured budget.

For repair, the system can request a single-turn SEARCH/REPLACE patch from a local Ollama daemon. AST grafting applies deterministic subtree changes with indentation alignment, and optional test verification can trigger an automatic rollback. Patch validation can check syntax in memory before changes are written to disk.

The package also includes a CLI. neurocode slice extracts issue-focused context, while neurocode repair can use an Ollama model and apply the resulting repair. neurocode-copilot starts the interactive local workflow.

Setup and configuration

Install the package from PyPI with:

Terminal
pip install neurocode-ai

A source installation is also available through an editable checkout:

bash
git clone https://github.com/Arkz-Deepak/neurocode.git
cd neurocode
pip install -e .

The MCP entry point is neurocode-mcp. Configure it as a stdio server in an MCP client. For Claude Desktop, add a server entry whose command points to the executable, such as /absolute/path/to/neurocode/.venv/bin/neurocode-mcp. Cursor uses the same command in .cursor/mcp.json or its MCP settings. Continue.dev can register it in the experimental.modelContextProtocolServers list.

For local model repair, run an Ollama daemon and select a model such as qwen2.5-coder:7b with the CLI's --provider ollama and --model options.

Tools and capabilities

The MCP interface exposes these tools:

  • neurocode_slice: Selects a token-bounded CPG reachability slice.
  • neurocode_graft: Applies an AST subtree graft with indentation alignment and optional test verification with rollback.
  • neurocode_trace: Traces execution call-chain paths between functions and symbols.
  • neurocode_map: Produces a Mermaid.js architecture flowchart without consuming model tokens.
  • neurocode_impact: Reports upstream callers and downstream callees for a structural blast-radius view.
  • neurocode_symbol: Finds symbols, file locations, line spans, and callers.
  • neurocode_validate_patch: Performs in-memory syntax checks before disk writes.
  • neurocode_seeds: Finds static root-cause candidate entities.
  • neurocode_repair_ollama: Streams a repair patch from a local Ollama service.
  • neurocode_hardware_health: Reports GPU VRAM headroom, CPU cores, and /dev/shm status.

A companion Visual Studio Code extension adds status-bar hardware indicators, file or code-block slicing, prompt copying, and a side-by-side local-Ollama diff viewer.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Neurocode

Arkz-Deepak/neurocode is an MCP server that connects coding agents to local repositories and optional Ollama models. Its main tools provide token-bounded code slicing, symbol lookup, call tracing, impact analysis, AST grafting, patch validation, architecture mapping, root-cause discovery, and local repair patch generation.

Install it with `pip install neurocode-ai`, then register the `neurocode-mcp` executable as a stdio MCP server. You can also clone the repository and run `pip install -e .` for an editable source installation.

Yes, Cursor is supported through its MCP configuration. Add `neurocode-mcp` as a server in `.cursor/mcp.json` or Cursor settings, with an empty `args` array.

Yes, repair can use a local Ollama daemon instead of a cloud API. Run `neurocode repair` with `--provider ollama` and specify a local model, such as `qwen2.5-coder:7b`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewNeurocode AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/arkz-deepak-neurocode?style=directory)](https://allmcps.com/mcp/arkz-deepak-neurocode)
HTML Embed
<a href="https://allmcps.com/mcp/arkz-deepak-neurocode"><img src="https://allmcps.com/api/badge/arkz-deepak-neurocode?style=directory" alt="Neurocode on AllMCPs" /></a>