Aidex

Created By
CSCSoftware4 months ago
MCP Server that gives AI coding assistants instant access to your entire codebase through a persistent Tree-sitter index. Instead of grep flooding your context with 2000+ tokens per search, AiDex returns precise identifier matches in ~50 tokens. Supports 11 languages: C#, TypeScript, JavaScript, Rust, Python, C, C++, Java, Go, PHP, Ruby. Features include method signatures, cross-project search, time-based filtering, session notes, and an interactive browser-based viewer.
Overview

Stop wasting 80% of your AI's context window on code searches.

AiDex indexes your codebase once using Tree-sitter and gives AI assistants instant access to every function, class, and method signature.

The Problem

Every time your AI assistant searches for code, it:

  • Greps through thousands of files → hundreds of results flood the context
  • Reads file after file to understand the structure → more context consumed
  • Forgets everything when the session ends → repeat from scratch

A single "Where is X defined?" question can eat 2,000+ tokens. Do that 10 times and you've burned half your context on navigation alone.

The Solution

Index once, query forever:

Before (grep): grep "PlayerHealth" → 200 hits in 40 files → 2000+ tokens consumed, 5+ tool calls

After (AiDex): aidex_query({ term: "PlayerHealth" }) → Engine.cs:45, Player.cs:23, UI.cs:156 → ~50 tokens, 1 tool call

Why Not Just Grep?

Grep/RipgrepAiDex
Context usage2000+ tokens per search~50 tokens
ResultsAll text matchesOnly identifiers
Precisionlog matches catalog, logarithmlog finds only log
PersistenceStarts fresh every timeIndex survives sessions
StructureFlat text searchKnows methods, classes, types

Features

  • Smart Extraction: Uses Tree-sitter to parse code properly — indexes identifiers, not keywords
  • Method Signatures: Get function prototypes without reading implementations
  • Project Summary: Auto-detected entry points, main classes, language breakdown
  • Incremental Updates: Re-index single files after changes
  • Cross-Project Links: Query across multiple related projects
  • Time-based Filtering: Find what changed in the last hour, day, or week
  • Session Notes: Leave reminders for the next session — persists in the database
  • Interactive Viewer: Browser-based project explorer with live reload

Supported Languages

C#, TypeScript, JavaScript, Rust, Python, C, C++, Java, Go, PHP, Ruby

Quick Start

npm install -g aidex-mcp
aidex setup

aidex setup automatically detects and registers AiDex with your installed AI clients (Claude Code, Claude Desktop, Cursor, Windsurf, Gemini CLI, VS Code Copilot).

Technology

  • Parser: Tree-sitter — Real parsing, not regex
  • Database: SQLite with WAL mode — Fast, single file, zero config
  • Protocol: MCP — Works with any compatible AI assistant

Server Config

{
  "mcpServers": {
    "aidex": {
      "command": "aidex",
      "args": []
    }
  }
}
Project Info
Created At
4 months ago
Updated At
4 months ago
Author Name
CSCSoftware
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Tavily Mcp
@tavily-ai

JavaScript
a year ago
Crevio

a day ago