
Jsc Typescript Ast Mcp
Uses ts-morph to expose TypeScript AST analysis through three tools: find_reference locates all usages of a class method across your codebase, find_dependency shows which files import a given library, and component_tree generates JSON representations of React component hierarchies with optional prop and attribute extraction. You point it at a tsconfig.json and query your project structure without manual grep work. Helpful when refactoring large TypeScript codebases, tracking dependency usage before updates, or mapping out React component relationships. The component_tree tool can capture custom data attributes and onClick handlers, making it useful for documentation or migration planning.
- GitHub stars
- 1
- tools
- 3
- auth
- Required
- transport
- STDIO
- env var
- 1
- last updated
- Apr 8, 2026
Tools
3 toolsPublic tool metadata for what this MCP can expose to an agent.
find_referenceFind all references to a given class method in your codebase.
Find all references to a given class method in your codebase.
No parameter schema in public metadata yet.
find_dependencyList all files that import a specified library.
List all files that import a specified library.
No parameter schema in public metadata yet.
component_treeAnalyze React component structures in your codebase.
Analyze React component structures in your codebase.
No parameter schema in public metadata yet.
Sponsors
Configuration
PROJECT_TSCONFIG_PATH*The path to your TypeScript project's tsconfig.json file
Readme
TypeScript AST MCP Server
A Model Context Protocol (MCP) server that provides TypeScript AST (Abstract Syntax Tree) analysis capabilities. This server allows you to find references for classes and methods, analyze component trees, and find dependencies in TypeScript code using the ts-morph library.
Features
- MCP Server: Implements the Model Context Protocol for integration with AI assistants
- TypeScript Analysis: Uses ts-morph for powerful TypeScript AST parsing and analysis
- Reference Finding: Find all references to a given class method in your codebase
- Dependency Finding: Use the
find_dependencytool to list all files that import a specified library. - Component Tree Analysis: Use the
component_treetool to analyze React component structures in your codebase. - The tools are part of the MCP server and can be invoked via Claude Code or other MCP clients.
Prerequisites
- Node.js (version compatible with the project)
- Yarn package manager
Setup
-
Clone the repository
-
Install dependencies:
yarn install -
Copy the example configuration files:
cp .env.example .env
Details
- Repository
- github.com/jscoobyced/jsc-typescript-ast-mcp
- Category
- Data & Analytics
- Package
jsc-typescript-ast-mcp- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active