Axon.MCP.Server
Integrates with Google AntiGravity IDE to provide deep code context for intelligent code assistance.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Axon.MCP.Servershow me the architecture diagram of the payment service"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
๐ 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
๐ง Semantic Understanding: Goes beyond grep to understand what code means, not just what it says
๐ Relationship Mapping: Automatically builds call graphs, inheritance trees, and dependency networks
๐ค AI-Native Integration: Built specifically for ChatGPT, Claude, Cursor IDE, and other MCP-enabled tools
๐ Multi-Language Mastery: Deep analysis for C# (Roslyn), Python, JavaScript, TypeScript
๐ Vector-Powered Search: Find code by meaning using semantic embeddings
๐๏ธ Architecture Intelligence: Auto-detects services, APIs, Entity Framework mappings, design patterns
โก Production-Ready Performance: <500ms p95 latency, handles 10,000+ files with ease
๐ Enterprise Security: JWT auth, RBAC, audit logging, rate limitingโnot a toy project
๏ฟฝ 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
Axon MCP providing deep code context to Google AntiGravity for intelligent code assistance
Cursor IDE - AI-First Code Editor
Real-time code intelligence powered by Axon's semantic understanding in Cursor
๐๏ธ Management Dashboard
Real-time monitoring of code analysis and synchronization
๐ ๏ธ Architecture Visualization
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 |
| Semantic + full-text code search | "Find all authentication controllers" |
| Function call relationships | "Who calls UserService.CreateUser?" |
| Class inheritance tree | "Show me all BaseController implementations" |
| List REST API routes | "What endpoints modify the User table?" |
| Entity Framework mappings | "Show database schema for Orders" |
| AI-generated code summaries | "Explain what PaymentService does" |
| Navigate service architecture | "Show me the API service structure" |
| Interface implementations | "Find all IRepository implementations" |
| Generate architecture diagrams | "Visualize system dependencies" |
| Detailed symbol info | "Show UserController.Login signature" |
| List symbols in a file | "What's in AuthService.cs?" |
| Project/solution organization | "Show .NET solution structure" |
โจ Key Features
๐ฌ 1. Hybrid Python/C# Analysis Engine
Tree-sitter: Lightning-fast syntactic parsing for Python, JavaScript, TypeScript, and C#
Roslyn Subprocess: Compiler-grade semantic analysis for C# (type resolution, cross-file references, metadata)
EF Core Analyzer: Extracts Entity Framework entities, table mappings, and relationships automatically
๐๏ธ 2. Intelligent Code Indexing
๐ Automatically discovers repositories from GitLab/Azure DevOps
๐ท๏ธ Extracts symbols (classes, functions, variables) with rich metadata (docstrings, parameters, return types)
๐ Builds call graphs, inheritance hierarchies, and import dependency maps
๐๏ธ Detects services, APIs, workers, and libraries with auto-classification
๐งฎ Generates vector embeddings for semantic search powered by pgvector
๐ค 3. AI-Powered Enrichment
๐ LLM-generated summaries for symbols and modules (using OpenRouter/OpenAI)
โก Parallel processing with 8-worker Celery pipeline for blazing speed
๐พ Smart caching to avoid re-generation and reduce API costs
๐ 4. Production-Grade Observability
๐ Pre-configured Prometheus metrics (API latency, sync status, search performance, cache hit rates)
๐ Beautiful Grafana dashboards for real-time monitoring
๐ Structured JSON logging with
structlogfor easy parsing๐ก Real-time sync progress via Redis Pub/Sub for responsive UI updates
๐ 5. Enterprise Security
๐ JWT authentication + API keys for flexible auth strategies
๐ฅ Role-based access control (admin, readonly) for granular permissions
๐ช HTTP-only cookies with CSRF protection
โฑ๏ธ Rate limiting and comprehensive audit logging
๐ Data Model Highlights
The system maintains a rich relational model:
Repositories: Source control repos (GitLab/Azure DevOps)
Files: Source code files with content hashes
Symbols: Functions, classes, variables with AI enrichment
Relations: Inherits, implements, calls, references, imports
Services: Detected APIs, workers, libraries
EfEntities: Entity Framework โ database table mappings
Embeddings: pgvector embeddings for semantic search
Chunks: Code chunks (function/class level) for RAG
Total Tables: 14 with optimized indexes, cascading deletes, unique constraints
๐ Quick Start
Get up and running in 5 minutes with Docker Compose.
Prerequisites
๐ณ Docker & Docker Compose installed
๐ Python 3.11+ (for local development)
๐ GitLab or Azure DevOps access token
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 .envEdit .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-xxxxxxxxxxxxxxxxStep 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 | Login with | |
REST API Docs |
| |
MCP Server |
| For AI assistants (see MCP Tools) |
Grafana |
| |
Prometheus | No auth |
๐ You're Ready!
Next Steps:
๐ View the React Dashboard and add your first repository
๐ Try a semantic search: "Find all authentication controllers"
๐ค Connect an AI assistant using the MCP server
๐ 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
Contextual Code Completion: AI understands your entire codebase structure
Intelligent Chat: Ask questions about architecture, dependencies, and implementation details
Semantic Code Search: Find code by what it does, not just what it's called
Refactoring Assistance: AI knows all usages across your entire codebase
Google AntiGravity
Vibe Coding Intelligence: Deep understanding of code patterns and architecture
Cross-Repository Context: Work with multiple projects seamlessly
Smart Code Generation: AI suggestions based on your actual codebase patterns
Real-Time Documentation: Instant explanations of complex code sections
Other MCP-Enabled Tools
Claude Desktop: Ask natural language questions about your codebase
ChatGPT with MCP: Deep code analysis and architectural insights
Custom MCP Clients: Build your own AI-powered dev tools
๐ For Development Teams
Onboarding: New developers can ask "How does authentication work?" and get comprehensive answers
Code Review: AI-assisted review with full context of dependencies and impacts
Documentation: Auto-generated explanations for complex modules
Impact Analysis: "What breaks if I change this API?" with complete dependency traces
๐ For Software Architects
Architecture Visualization: Auto-generated service dependency diagrams
Design Pattern Detection: Identify patterns and anti-patterns across the codebase
Technical Debt Analysis: Find complex, tightly-coupled code sections
Migration Planning: Understand all dependencies before major refactors
๐ Documentation
๐ Architecture
Overview - System architecture and core components
Data Models - Database schema and relationships
Infrastructure - Deployment and scaling
๐ Guides
Setup Guide - Prerequisites and installation
Development Guide - Dev environment setup and testing
Deployment Guide - Docker and Kubernetes deployment
Security Guide - Security features and best practices
๐ API & Tools
REST API Reference - API endpoints and usage
MCP Tools Reference - MCP tools for AI assistants
โ๏ธ Reference
Configuration - Environment variables
Troubleshooting - Common issues and solutions
๐ง 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?
Hybrid Intelligence: Syntactic (Tree-sitter) + Semantic (Roslyn) analysis
AI-First Design: Built specifically to feed AI assistants with code context
Production-Grade: Real auth, monitoring, distributed processing, caching
Multi-Source: Supports GitLab and Azure DevOps
Deep C# Support: Compiler-grade analysis via Roslyn
Semantic Search: Vector embeddings enable "find similar code" queries
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)
API Authentication: JWT tokens + API keys for hybrid auth scenarios
Hybrid Authentication: UI login with cookies + programmatic API key access
Memory Optimization: Keyset pagination for efficient large dataset handling
Vector Search: Semantic code search powered by pgvector embeddings
Multi-Language Support: Python, JavaScript, TypeScript, C# (via Roslyn)
๐ง In Progress (v3.2 โ v3.3)
Roslyn Process Manager Refactor: Improved stability and resource management
Pipeline Pattern Refactor: More modular and testable processing architecture
๐ฏ Next Release (v3.3 - Q1 2026)
RAG Pipeline: Ask natural language questions about your codebase ("How does auth work?")
Architecture Visualization: Auto-generate Mermaid/PlantUML diagrams from code structure
Impact Analysis Tool: See what breaks before you change it ("What depends on UserService?")
Conversation Memory: Multi-turn AI conversations with context retention
๐ Future Enhancements (v4.0+)
AI Test Generation: Automatically generate unit tests for your code
Code Review Assistant: AI-powered PR reviews with security and quality checks
Complexity Heatmaps: Visual complexity analysis to identify refactoring candidates
Dependency Audit: Track and visualize package dependencies and vulnerabilities
Language Expansion: Java, Go, Rust, Ruby, PHP support
IDE Plugins: Native plugins for VS Code, JetBrains IDEs
Collaboration Features: Team annotations, shared searches, codebase bookmarks
๐ก 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).
Best for: Open-source projects, hobbyists, researchers, and educational use.
The Rule: If you modify this code or use it in a service accessible over a network, you must open-source your own project under the same AGPLv3 license.
Details: See the LICENSE file for complete terms.
2. Commercial License (Enterprise)
Want to integrate Axon into a proprietary/closed-source product?
Best for: Startups, Enterprises, and SaaS products who cannot open-source their code.
Benefits:
Release your product under your own proprietary license
No requirement to share your source code
Priority support and direct access to the maintainer
Legal indemnification options
Custom features and integrations
๐ฉ 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
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
3. Guidelines
๐ Development Guide - Setup, coding standards, and best practices
โ Code Quality: We use Black, mypy, and pylint for code quality
๐งช Testing: Maintain >80% test coverage for all new code
๐ Pull Requests: Follow our PR template and ensure CI passes
๐ Support & Community
Need help or want to discuss features?
๐ Bug Reports: GitHub Issues
๐ Documentation: Browse the
docs/directory๐ฌ Community: Join us on
#axon-mcp-server(internal Slack)โ Questions: Open a discussion or issue on GitHub
Built with โค๏ธ by the Axon DevOps Team
Empowering developers with AI-driven code intelligence
This server cannot be installed
Maintenance
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ali-kamali/Axon.MCP.Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server