Axon

v1.0.0Developer Toolsstable

A graph-powered code intelligence engine that indexes codebases into a structural knowledge graph to provide AI agents with deep context on function calls, types, and execution flows. It offers local, zero-dependency tools for hybrid search, impact a

claude-codecode-analysiscode-intelligencedead-code-detectionknowledge-graph
Share:
705
Stars
0
Downloads
0
Weekly
0/5

What is Axon?

Axon is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to graph-powered code intelligence engine that indexes codebases into a structural knowledge graph to provide ai agents with deep context on function calls, types, and execution flows. it offers local, z...

A graph-powered code intelligence engine that indexes codebases into a structural knowledge graph to provide AI agents with deep context on function calls, types, and execution flows. It offers local, zero-dependency tools for hybrid search, impact a

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A graph-powered code intelligence engine that indexes codeba

Use Cases

Index codebases into structural knowledge graphs for deep code context. Perform hybrid search for functions, types, and execution flows. Enable dead code detection and impact analysis for refactoring.
harshkedia177

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx axon

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Axon

Axon is a graph-powered code intelligence engine that indexes your codebase into a structural knowledge graph, enabling AI agents to understand function calls, type references, and execution flows with precision. It runs entirely locally using an embedded KuzuDB graph database and Tree-sitter parsers, exposing MCP tools for hybrid search, impact analysis, dead code detection, and call-graph traversal. Developers use Axon to give Claude Code and other AI coding agents deep, accurate context about large codebases without sending code to external services.

Prerequisites

  • Python 3.11 or higher installed
  • uv package manager installed (recommended) or pip
  • An MCP client such as Claude Code or Cursor
  • Git repository to index (Axon works on any local codebase)
  • No API keys required — Axon operates fully offline
1

Install Axon

Install the axoniq package using uv (recommended) or pip. For Neo4j backend support, include the optional dependency.

# Recommended
uv add axoniq

# Or with pip
pip install axoniq

# With Neo4j backend support
pip install axoniq[neo4j]
2

Index your repository

Run axon analyze in your project root to parse and index all code symbols into the local knowledge graph. The graph data is stored at .axon/kuzu/ inside your project.

cd /path/to/your/project
axon analyze .
3

Add .axon to .gitignore

The local graph database should not be committed to version control.

echo '.axon/' >> .gitignore
4

Configure Axon as an MCP server in Claude Code

Add Axon to your project's .mcp.json file. The --watch flag enables live re-indexing as files change.

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

Verify the server is running

Use the axon_list_repos tool to confirm the repository is indexed and the MCP server responds correctly. You can also launch the visual dashboard.

axon ui
# Opens dashboard at http://localhost:8420
6

Query the knowledge graph

Use Axon's CLI to test queries before or alongside MCP integration. Hybrid search combines BM25, vector, and fuzzy matching.

axon context UserService       # 360-degree view of a symbol
axon impact validate --depth 3 # Blast radius for a change
axon dead-code                 # Find unreachable symbols

Axon Examples

Client configuration

Add this to your project's .mcp.json to enable Axon as an MCP server for Claude Code or Cursor.

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

Prompts to try

With Axon connected, ask Claude Code these questions to leverage the knowledge graph:

- "Search for all functions that call the database connection handler"
- "What is the blast radius if I change the UserService.authenticate method?"
- "Find all dead code in the src/ directory"
- "Show me the full call chain from the HTTP handler down to the SQL query for the login endpoint"
- "What symbols in this repo reference the PaymentProcessor type?"

Troubleshooting Axon

axon command not found after installation

Ensure the Python environment where axoniq was installed is active. If using uv, run 'uv run axon' instead, or add the uv-managed bin directory to your PATH.

Index is stale or missing symbols after code changes

Run 'axon analyze .' again to re-index, or start the MCP server with 'axon serve --watch' to automatically re-index on file changes.

axon_cypher tool returns errors on Cypher queries

The axon_cypher tool is read-only; write queries are not permitted. Ensure your Cypher syntax targets KuzuDB (not Neo4j) node/relationship naming conventions from the Axon schema.

Frequently Asked Questions about Axon

What is Axon?

Axon is a Model Context Protocol (MCP) server that graph-powered code intelligence engine that indexes codebases into a structural knowledge graph to provide ai agents with deep context on function calls, types, and execution flows. it offers local, zero-dependency tools for hybrid search, impact a It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Axon?

Follow the installation instructions on the Axon GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Axon?

Axon works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Axon free to use?

Yes, Axon is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "axon": { "command": "npx", "args": ["-y", "axon"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Axon?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides