Axon.MCP.Server

Axon MCP Server Banner # Axon.MCP.Server **Model Context Protocol (MCP) Server for AI IDEs - Cursor, AntiGravity & Claude** *Transform your codebase into an intelligent knowledge base for AI-powered development with Cursor IDE, Google AntiGravity, and MCP-enabled assistants* --- [![Python Version](https://img.shields.io/badge/python-3.11+-blue.svg)](https://www.python.org/downloads/) [![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](LICENSE) [![Commercial License](https://img.shields.io/badge/License-Commercial_Available-purple.svg)](#-license--commercial-use) [![Build Status](https://github.com/ali-kamali/Axon.MCP.Server/actions/workflows/ci.yml/badge.svg?branch=public-release)](https://github.com/ali-kamali/Axon.MCP.Server/actions/workflows/ci.yml) [![Docker Image](https://img.shields.io/badge/docker-GHCR-blue.svg)](https://github.com/ali-kamali/Axon.MCP.Server/pkgs/container/axon-mcp-server) [![Coverage](https://img.shields.io/badge/coverage-85%25-yellowgreen.svg)]() [![MCP Protocol](https://img.shields.io/badge/MCP-v1.0-purple.svg)](https://modelcontextprotocol.io) [![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](docs/) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)]()

๐Ÿ“‹ Table of Contents


๐ŸŽฏ The Problem

Modern codebases are complex labyrinthsโ€”thousands of files, intricate dependencies, and evolving architectures. AI assistants like ChatGPT and Claude are brilliantโ€ฆ but theyโ€™re flying blind. Without deep understanding of your codebaseโ€™s structure, relationships, and patterns, they can only see the trees, never the forest.

๐Ÿ’ก The Solution

Axon.MCP.Server transforms your entire codebase into an intelligent, queryable knowledge base using the Model Context Protocol (MCP). Think of it as giving your AI assistant X-ray vision into your codeโ€”understanding not just syntax, but semantics, architecture, and relationships.

Why Axon Stands Out


๏ฟฝ See It In Action

### ๐Ÿค– AI IDE Integration - The Main Use Case **Axon MCP Server seamlessly integrates with leading AI-powered IDEs to supercharge your development workflow** #### Google AntiGravity - Best AI IDE for Vibe Coders ![AntiGravity Integration](assets/screenshots/AntiGravity.png) *Axon MCP providing deep code context to Google AntiGravity for intelligent code assistance* #### Cursor IDE - AI-First Code Editor ![Cursor Integration](assets/screenshots/Cursor.png) *Real-time code intelligence powered by Axon's semantic understanding in Cursor* --- ### ๐Ÿ›๏ธ Management Dashboard ![Axon Dashboard](assets/screenshots/dashboard.png) *Real-time monitoring of code analysis and synchronization* ### ๐Ÿ› ๏ธ Architecture Visualization ![Architecture Map](assets/architecture-diagram.jpg) *Auto-generated service dependency diagrams*

๐Ÿ—๏ธ Architecture Overview

10-Service Microarchitecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Client Layer: AI Assistants, IDEs, React UI, REST Clients โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                            โ”‚
            โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
            โ”‚               โ”‚               โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  MCP Server    โ”‚  โ”‚  REST API   โ”‚  โ”‚  React UI โ”‚
โ”‚    :8001       โ”‚  โ”‚    :8080    โ”‚  โ”‚    :80    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
        โ”‚                  โ”‚
        โ”‚         โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚         โ”‚        โ”‚        โ”‚
        โ”‚    โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ” โ”Œโ”€โ–ผโ”€โ”€โ”€โ”€โ” โ”Œโ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚    โ”‚ Worker โ”‚ โ”‚ Beat โ”‚ โ”‚ Enrichmentโ”‚
        โ”‚    โ”‚ (Sync) โ”‚ โ”‚ Schedโ”‚ โ”‚  Worker   โ”‚
        โ”‚    โ””โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜
        โ”‚         โ”‚                     โ”‚
    โ”Œโ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”
    โ”‚  Analysis: Tree-sitter + Roslyn + EF     โ”‚
    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                        โ”‚
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ”‚               โ”‚               โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ PostgreSQL   โ”‚  โ”‚  Redis  โ”‚  โ”‚ Prometheus +  โ”‚
โ”‚ + pgvector   โ”‚  โ”‚ Cache   โ”‚  โ”‚   Grafana     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Technology Stack

Backend: FastAPI, Celery, SQLAlchemy 2.0 (async), Python 3.11+
Parsing: Tree-sitter (multi-lang), Roslyn (C# semantic analysis)
Database: PostgreSQL 15 + pgvector, Redis
AI/ML: OpenAI/OpenRouter (LLM), sentence-transformers (embeddings)
Frontend: React + TypeScript, Vite
Infrastructure: Docker Compose, Prometheus, Grafana


๐Ÿ”Œ MCP Tools for AI Assistants

The server exposes 12 powerful tools to AI assistants via the Model Context Protocol:

Tool Description Use Case
search Semantic + full-text code search โ€œFind all authentication controllersโ€
get_call_graph Function call relationships โ€œWho calls UserService.CreateUser?โ€
get_inheritance_hierarchy Class inheritance tree โ€œShow me all BaseController implementationsโ€
get_api_endpoints List REST API routes โ€œWhat endpoints modify the User table?โ€
get_ef_entities Entity Framework mappings โ€œShow database schema for Ordersโ€
get_module_summary AI-generated code summaries โ€œExplain what PaymentService doesโ€
explore_service Navigate service architecture โ€œShow me the API service structureโ€
find_implementations Interface implementations โ€œFind all IRepository implementationsโ€
get_system_architecture_map Generate architecture diagrams โ€œVisualize system dependenciesโ€
get_symbol_details Detailed symbol info โ€œShow UserController.Login signatureโ€
get_file_symbols List symbols in a file โ€œWhatโ€™s in AuthService.cs?โ€
get_repository_structure Project/solution organization โ€œShow .NET solution structureโ€

โœจ Key Features

๐Ÿ”ฌ 1. Hybrid Python/C# Analysis Engine

๐Ÿ—‚๏ธ 2. Intelligent Code Indexing

๐Ÿค– 3. AI-Powered Enrichment

๐Ÿ“Š 4. Production-Grade Observability

๐Ÿ” 5. Enterprise Security


๐Ÿ“Š Data Model Highlights

The system maintains a rich relational model:

Total Tables: 14 with optimized indexes, cascading deletes, unique constraints


๐Ÿš€ Quick Start

Get up and running in 5 minutes with Docker Compose.

Prerequisites

Step 1: Clone & Configure

# Clone the repository
git clone https://github.com/ali-kamali/Axon.MCP.Server.git
cd axon.mcp.server

# Copy environment template
cp .env.example .env

Edit .env with your credentials:

# Source control (choose one)
GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx
# OR
AZUREDEVOPS_PASSWORD=your-azure-devops-pat

# Security (generate strong keys)
ADMIN_API_KEY=$(python -c "import secrets; print(secrets.token_urlsafe(32))")
ADMIN_PASSWORD=your-secure-password

# Optional: AI enrichment (for LLM-generated code summaries)
OPENROUTER_API_KEY=sk-or-v1-xxxxxxxxxxxxxxxx

Step 2: Launch Services


# Start all services (PostgreSQL, Redis, API, Workers, UI, Monitoring)
make docker-up

# Run database migrations
make migrate

# Verify health
curl http://localhost:8080/api/v1/health
# โœ… Expected: {"status":"ok"}

Step 3: Access Your Platform

๐ŸŽฏ Service ๐ŸŒ URL ๐Ÿ” Credentials
React Dashboard http://localhost:80 Login with ADMIN_PASSWORD
REST API Docs http://localhost:8080/api/docs X-API-Key: ADMIN_API_KEY
MCP Server http://localhost:8001 For AI assistants (see MCP Tools)
Grafana http://localhost:3000 admin / admin
Prometheus http://localhost:9090 No auth

๐ŸŽ‰ Youโ€™re Ready!

Next Steps:

  1. ๐Ÿ“Š View the React Dashboard and add your first repository
  2. ๐Ÿ” Try a semantic search: โ€œFind all authentication controllersโ€
  3. ๐Ÿค– Connect an AI assistant using the MCP server
  4. ๐Ÿ“ˆ Monitor performance in Grafana dashboards

๐Ÿ’ก Pro Tip: Check out the Development Guide for local development setup and testing.


๐ŸŽฏ Use Cases

๐Ÿš€ Primary: AI IDE Integration (Cursor, AntiGravity, VS Code)

The main purpose of Axon MCP Server is to provide deep code intelligence to AI-powered IDEs:

Cursor IDE

  1. Contextual Code Completion: AI understands your entire codebase structure
  2. Intelligent Chat: Ask questions about architecture, dependencies, and implementation details
  3. Semantic Code Search: Find code by what it does, not just what itโ€™s called
  4. Refactoring Assistance: AI knows all usages across your entire codebase

Google AntiGravity

  1. Vibe Coding Intelligence: Deep understanding of code patterns and architecture
  2. Cross-Repository Context: Work with multiple projects seamlessly
  3. Smart Code Generation: AI suggestions based on your actual codebase patterns
  4. Real-Time Documentation: Instant explanations of complex code sections

Other MCP-Enabled Tools

๐Ÿ“Š For Development Teams

  1. Onboarding: New developers can ask โ€œHow does authentication work?โ€ and get comprehensive answers
  2. Code Review: AI-assisted review with full context of dependencies and impacts
  3. Documentation: Auto-generated explanations for complex modules
  4. Impact Analysis: โ€œWhat breaks if I change this API?โ€ with complete dependency traces

๐Ÿ” For Software Architects

  1. Architecture Visualization: Auto-generated service dependency diagrams
  2. Design Pattern Detection: Identify patterns and anti-patterns across the codebase
  3. Technical Debt Analysis: Find complex, tightly-coupled code sections
  4. Migration Planning: Understand all dependencies before major refactors

๐Ÿ“š Documentation

๐Ÿ— Architecture

๐Ÿ“– Guides

๐Ÿ”Œ API & Tools

โš™๏ธ Reference


๐Ÿ”ง Development

# Install dependencies
make dev-install

# Run tests
make test

# Start API (dev mode with hot reload)
make api-dev

# Start MCP server
make mcp-dev

# Start UI
make ui-dev

# Lint and format
make lint
make format

๐ŸŒŸ What Makes This Special?

  1. Hybrid Intelligence: Syntactic (Tree-sitter) + Semantic (Roslyn) analysis
  2. AI-First Design: Built specifically to feed AI assistants with code context
  3. Production-Grade: Real auth, monitoring, distributed processing, caching
  4. Multi-Source: Supports GitLab and Azure DevOps
  5. Deep C# Support: Compiler-grade analysis via Roslyn
  6. Semantic Search: Vector embeddings enable โ€œfind similar codeโ€ queries
  7. Architectural Awareness: Detects services, APIs, entitiesโ€”not just functions

๐Ÿ—บ๏ธ Roadmap

This project is actively maintained and continuously evolving. Hereโ€™s whatโ€™s on our horizon:

โœ… Completed (v3.2 - Current)

๐Ÿšง In Progress (v3.2 โ†’ v3.3)

๐ŸŽฏ Next Release (v3.3 - Q1 2026)

๐Ÿš€ Future Enhancements (v4.0+)

๐Ÿ’ก Have a feature idea? Open an issue on our GitLab repository!


๐Ÿ“„ License & Commercial Use

Axon.MCP.Server is dual-licensed to ensure sustainability and rapid development.

1. Open Source (AGPLv3)

This project is free software under the GNU Affero General Public License v3.0 (AGPLv3).

2. Commercial License (Enterprise)

Want to integrate Axon into a proprietary/closed-source product?

๐Ÿ“ฉ Contact us to acquire a commercial license.


Why Dual Licensing?

We believe in open source and sustainability. The AGPLv3 ensures the community benefits from improvements, while commercial licenses fund continued development, comprehensive testing, and enterprise features that benefit everyone.


๐Ÿค Contributing

We welcome contributions from the community! Whether itโ€™s bug fixes, new features, or documentation improvements, your help makes this project better.

1. The โ€œRealityโ€ Check: CLA

Since this project is dual-licensed, we must ensure we have the legal right to distribute contributions.

Before merging any PR, we ask contributors to reply to a comment saying:

โ€œI hereby assign copyright of this contribution to the project maintainers and agree to the terms of the Contributor License Agreement.โ€

2. Getting Started

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

3. Guidelines


๐Ÿ“ž Support & Community

Need help or want to discuss features?


**Built with โค๏ธ by the Axon DevOps Team** *Empowering developers with AI-driven code intelligence* [![Star on GitHub](https://img.shields.io/badge/โญ-Star%20Us%20on%20GitHub-orange)](https://github.com/ali-kamali/Axon.MCP.Server)