# 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*
---
[](https://www.python.org/downloads/)
[](LICENSE)
[](#-license--commercial-use)
[](https://github.com/ali-kamali/Axon.MCP.Server/actions/workflows/ci.yml)
[](https://github.com/ali-kamali/Axon.MCP.Server/pkgs/container/axon-mcp-server)
[]()
[](https://modelcontextprotocol.io)
[](docs/)
[]()
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.
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.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 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 โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโ โโโโโโโโโโโโโโโโโ
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
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โ |
structlog for easy parsingThe system maintains a rich relational model:
Total Tables: 14 with optimized indexes, cascading deletes, unique constraints
Get up and running in 5 minutes with Docker Compose.
# 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
# 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"}
| ๐ฏ 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 |
Next Steps:
๐ก Pro Tip: Check out the Development Guide for local development setup and testing.
The main purpose of Axon MCP Server is to provide deep code intelligence to AI-powered IDEs:
# 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
This project is actively maintained and continuously evolving. Hereโs whatโs on our horizon:
๐ก Have a feature idea? Open an issue on our GitLab repository!
Axon.MCP.Server is dual-licensed to ensure sustainability and rapid development.
This project is free software under the GNU Affero General Public License v3.0 (AGPLv3).
Want to integrate Axon into a proprietary/closed-source product?
๐ฉ Contact us to acquire a commercial license.
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.
We welcome contributions from the community! Whether itโs bug fixes, new features, or documentation improvements, your help makes this project better.
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.โ
git checkout -b feature/amazing-feature)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)Need help or want to discuss features?
#axon-mcp-server (internal Slack)