AST-Indexer MCP Server
AST-Indexer is a Model Context Protocol (MCP) server for indexing Git repositories with AST parsing. It extracts functions, classes, imports, variables, and SQL schema objects from JavaScript, TypeScript, C#, and SQL codebases so they can be queried through MCP tools.
README
AST-Indexer MCP Server
AST-Indexer is a Model Context Protocol (MCP) server for indexing Git repositories with AST parsing. It extracts functions, classes, imports, variables, and SQL schema objects from JavaScript, TypeScript, C#, and SQL codebases so they can be queried through MCP tools.
Installation
Install the server globally:
npm install -g @klouwer94/ast-indexer
AST-Indexer requires Node.js 20 or newer.
Add it to your MCP client configuration:
{
"mcpServers": {
"ast-indexer": {
"command": "ast-indexer"
}
}
}
For npx usage and HTTP transport configuration, see docs/usage.md.
Features
- Index Git repositories with include and exclude glob patterns.
- Parse JavaScript and TypeScript, including
.js,.jsx,.mjs,.cjs,.ts,.tsx,.mts, and.cts. - Parse C# using regex-based extraction (classes, methods, properties, using directives, UTF-16 encoding support).
- Parse SQL using regex-based extraction (tables, views, stored procedures, functions, triggers, and indexes).
- Search indexed repositories for functions, classes, imports, SQL tables, SQL views, SQL triggers, and SQL indexes.
- Return repository-level statistics for indexed files and extracted symbols.
- Two-layer cache: per-file memory cache backed by a disk cache keyed on Git commit hash or file mtime.
- Supports both
stdio(default) and HTTP (--transport http) transport modes. - Built with TypeScript, Zod, and Vitest.
Using the MCP server
See docs/usage.md for the full tool reference, CLI flags, configuration examples, and glob pattern behavior.
If you want to understand how the codebase is structured, see docs/project-architecture.md.
Contributors
Contributions are welcome. See CONTRIBUTING.md for local setup and contribution guidelines.
License
ISC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.