ast-mcp-server MCP Server

ast-mcp-server gives coding agents compact, type-aware access to TypeScript and JavaScript projects. It uses the real compiler project model through ts-morph, so declarations, references, rename…

Local serverISC

What is the ast-mcp-server MCP Server?

ast-mcp-server is an MCP project maintained in the yailperalta/ast-mcp-server repository. The maintainer describes its purpose as “ast-mcp-server gives coding agents compact, type-aware access to TypeScript and JavaScript projects. It uses the real compiler project model through ts-morph, so declarations, references, rename…”. Read the project documentation for the complete scope.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
ast_list_filesPaginated, project-relative source file inventory
ast_get_project_statusRead-only compiler, freshness, index, and operation status
ast_exploreBounded composed selectors, source evidence, and references
ast_get_fileBounded exact source lines, byte hash, and snapshot state
ast_get_outlineBody-free declaration signatures; detailed symbol metadata is opt-in
ast_get_symbol_sourceExact source for one declaration
ast_search_symbolsPaginated structural symbol discovery
ast_find_referencesCompiler-resolved references with bounded context
ast_get_impactBounded incoming/outgoing compiler-backed impact evidence
ast_find_test_candidatesPaginated affected tests with atomic compiler relationship proofs
ast_get_diagnosticsProject- or file-scoped TypeScript diagnostics
ast_rename_symbolPrepare a project-wide rename
ast_replace_symbol_bodyPrepare a body-only replacement while preserving the signature
ast_scaffold_classPrepare one new class file with explicit placeholder methods
ast_get_operation_previewRetrieve the complete retained diff for a prepared plan
ast_apply_operationApply one reviewed, hash-bound plan