Axon MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
pip install axoniq
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add axon -- node "<FULL_PATH_TO_AXON>/dist/index.js"

Replace <FULL_PATH_TO_AXON>/dist/index.js with the actual folder you prepared in step 1.

README.md

The knowledge graph for your codebase

Axon

The knowledge graph for your codebase — explore it visually, or let your AI agent query it.

Indexes any codebase into a structural knowledge graph — every dependency, call chain, cluster, and execution flow. Explore it through an interactive web dashboard with force-directed graph visualization, or expose it through MCP tools so AI agents get full structural understanding in every tool call.

$ axon analyze .

Walking files...               142 files found
Parsing code...                142/142
Tracing calls...               847 calls resolved
Analyzing types...             234 type relationships
Detecting communities...       8 clusters found
Detecting execution flows...   34 processes found
Finding dead code...           12 unreachable symbols
Analyzing git history...       18 coupled file pairs
Generating embeddings...       623 vectors stored

Done in 4.2s — 623 symbols, 1,847 edges, 8 clusters, 34 flows

Then explore your codebase visually:

axon ui                      # Opens interactive dashboard at localhost:8420

Three views, one command:

  • Explorer — Interactive force-directed graph (Sigma.js + WebGL). Click any node to see its code, callers, callees, impact radius, and community. Community hull overlays show architectural clusters at a glance.
  • Analysis — Health score, coupling heatmap, dead code report, inheritance tree, branch diff — your codebase health in one dashboard.
  • Cypher Console — Write and run Cypher queries against the graph with syntax highlighting, presets, and history.

Plus: command palette (Cmd+K), keyboard shortcuts, flow trace animations, graph minimap, and SSE-powered live reload when watch mode is active.


The Problem

Your AI agent edits UserService.validate(). It doesn't know that 47 functions depend on that return type, 3 execution flows pass through it, and payment_handler.py changes alongside it 80% of the time.

Breaking changes ship.

This happens because AI agents work with flat text. They grep for callers, miss indirect ones, and have no understanding of how code is connected. Context windows are finite. LSPs don't expose call graphs. Grepping gives you strings, not structure.

The agent needs a knowledge graph — not more text.


How Axon Solves It

Most code intelligence tools give the agent raw files and hope it reads enough. Axon takes a different approach: precompute structure at index time so every tool call returns complete, actionable context.

A 12-phase pipeline runs once over your repo. After that:

  • axon_impact("validate") returns all 47 affected symbols, grouped by depth (will break / may break / review), with confidence scores — in a single call
  • axon_query("auth handler") returns hybrid-ranked results grouped by execution flow, not a flat list of name matches
  • axon_context("UserService") returns callers, callees, type references, community membership, and dead code status — the full picture

Three benefits:

  1. Reliability — the context is already in the tool response. No multi-step exploration that can miss code.
  2. Token efficiency — one tool call instead of a 10-query search chain. Agents spend tokens on reasoning, not navigation.
  3. Model democratization — even smaller models get full architectural clarity because the tools do the heavy lifting.

Zero cloud dependencies. Everything runs locally — parsing, graph storage, embeddings, search. No API keys, no data leaving your machine.


TL;DR

pip install axoniq            # 1. Install
cd your-project && axon analyze .  # 2. Index (one command, ~5s for most repos)
axon ui                       # 3. Explore visually at localhost:8420

For AI agents — add to .mcp.json in your project root:

{
  "mcpServers": {
    "axon": {
      "command": "axon",
      "args": ["serve", "--watch"]
    }
  }
}

For developers — explore the graph yourself:

axon ui                      # Interactive dashboard (standalone or attaches to running host)
axon ui --watch              # Live reload on file changes
axon host --watch            # Shared host: UI + multi-session MCP

What You Get

Explore your codebase visually

Web UI

A full interactive dashboard — no terminal or extensions

Tools (3)

axon_impactReturns all symbols affected by a change, grouped by depth with confidence scores.
axon_queryPerforms hybrid-ranked search results grouped by execution flow.
axon_contextReturns callers, callees, type references, community membership, and dead code status for a symbol.

Configuration

claude_desktop_config.json
{"mcpServers": {"axon": {"command": "axon", "args": ["serve", "--watch"]}}}

Try it

Analyze the impact of changing the UserService.validate function.
Find all callers and callees for the authentication handler in my project.
Query the codebase for 'auth handler' to see how it fits into execution flows.
Identify any dead code or unreachable symbols in the current project.

Frequently Asked Questions

What are the key features of Axon?

Indexes codebases into a structural knowledge graph. Provides deep context on function calls, types, and execution flows. Interactive web dashboard with force-directed graph visualization. Zero-dependency local execution with no cloud data transmission. Supports impact analysis and dead code detection.

What can I use Axon for?

Assisting AI agents in understanding complex dependency chains before refactoring. Visualizing architectural clusters and coupling heatmaps in large codebases. Performing impact analysis to prevent breaking changes in shared services. Navigating large projects by exploring call graphs and execution flows.

How do I install Axon?

Install Axon by running: pip install axoniq

What MCP clients work with Axon?

Axon works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Axon docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare