jscoobyced avatar

Jsc Typescript Ast Mcp

jscoobyced/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 tools

Public 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_dependency tool to list all files that import a specified library.
  • Component Tree Analysis: Use the component_tree tool 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

  1. Clone the repository

  2. Install dependencies:

    yarn install
    
  3. Copy the example configuration files:

    cp .env.example .env
    

View the full README on GitHub

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

Related Data & Analytics MCP servers

View all
1meelion-com avatarMeelion MCPmeelion-com/meelion-mcpBrazilian fixed income & financial data for AI. Selic, CDI, IPCA, CDB/LCI/LCA rankings, FX rates.1stars
2pageguard avatarPageGuard MCPpageguard/pageguard-mcpPrivacy compliance scanning for AI coding tools. Detects tracking tech, cookies, and data gaps.1stars
3rationalbloks avatarRationalBloksrationalbloks/rationalbloks-mcpDeploy production REST and Neo4j Graph APIs from JSON schemas in seconds.1stars
4scka-de avatarEcb Mcpscka-de/ecb-mcpECB data for AI agents — rates, yields, inflation, money supply, and 100+ datasets. No API key.1stars
5seob717 avatarRedash Mcpseob717/redash-mcpConnect Redash to Claude -- query data, manage dashboards, and run SQL with natural language.1stars
6whdrnr2583-cmd avatarToken Meterwhdrnr2583-cmd/token-meterLocal-first dashboard + MCP for Claude Code and Codex token usage. Per-MCP/tool breakdown.1stars