@aiready/ast-mcp-server
OfficialClick on "Deploy 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., "@@aiready/ast-mcp-serverfind definition of calculateTotal"
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.
@aiready/ast-mcp-server
Best-in-Class TypeScript/JavaScript Codebase Exploration for AI Agents.
This Model Context Protocol (MCP) server provides high-precision, AST-aware tools for navigating complex codebases. Unlike standard search tools, it understands imports, exports, types, and references.
🚀 Key Features
Hybrid Indexing: Combines
ripgrepspeed withts-morphprecision. Only loads relevant files into memory to handle massive monorepos.O(1) Symbol Resolution: Instantly find where any function, class, or type is defined using a pre-built disk cache.
Surgical Reference Finding: Uses a two-stage lookup (Regex + AST) to find every usage of a symbol across the project without OOM crashes.
Monorepo Intelligent: Automatically discovers
tsconfig.jsonboundaries and respects TypeScript project references.Zero Configuration: Bundles the
ripgrepbinary and handles all TypeScript parsing out-of-the-box.Path Security: Hardened against path traversal and malicious agent inputs.
Related MCP server: ts-graph-mcp
🛠 Tools Provided
Tool | Purpose |
| Find where a symbol is defined (file, line, signature, JSDoc). |
| Find all usages of a symbol across the project (paged). |
| Find concrete classes implementing an interface/abstract class. |
| Return a structural tree of a file (classes, methods, enums). |
| Blazingly fast regex search via bundled ripgrep. |
| Extract full JSDoc/TSDoc metadata for any symbol. |
| Find callers and callees for a symbol (incoming/outgoing). |
| Warm the disk cache for a project (highly recommended). |
📦 Installation
npx -y @aiready/ast-mcp-server⚙️ Configuration
Environment Variables
AST_WORKSPACE_ROOT: Path to the root of the allowed workspace (default:cwd).AST_MAX_HEAP_MB: Max memory allowed for AST Projects (default:1536).AST_WORKER_POOL_SIZE: Number of worker threads for parsing (default:2).
Agent Configuration (Cursor/Claude Desktop)
{
"mcpServers": {
"ast-explorer": {
"command": "npx",
"args": ["-y", "@aiready/ast-mcp-server"],
"env": {
"AST_WORKSPACE_ROOT": "/path/to/your/project"
}
}
}
}🛡 Security
All tool arguments are strictly validated. Any attempt by an agent to access files outside the AST_WORKSPACE_ROOT will result in a hard rejection.
📄 License
MIT © AIReady
This server cannot be deployed
Maintenance
Related MCP Connectors
Stateless TS/JS compiler facts for agents: references, imports, impact. No repo index or OAuth.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Codebase graphs, caller impact analysis, and recorded project context for AI coding agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceA TypeScript-aware MCP server that provides coding agents with repository discovery, code intelligence, and web project context for local codebases. It enables deep symbol navigation, diagnostic reporting, and structural analysis of monorepos without requiring full IDE integration.75 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA TypeScript code graph tool with MCP integration that enables AI agents to perform semantic search and graph traversal (call graphs, paths between symbols) across a codebase.23 npm8MIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing 29 tools across 5 layers for semantic TypeScript/JavaScript code intelligence, enabling AI agents to find references, trace impacts, guard APIs, and explain errors without text-search false positives.16 npm1MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for semantic codebase navigation that builds an AST index of symbols, imports, and exports, providing AI agents with tools to search, explore, and understand code.MIT