@aiready/ast-mcp-server
OfficialClick 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., "@@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.
🛠 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 installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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/getaiready/aiready-ast-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server