ts-ast-mcp

gclluch/ts-ast-mcp
★ 0 stars TypeScript Code/Dev Tools Updated today
MCP server for deep structural analysis of TypeScript/JavaScript via the TypeScript Compiler API - 20 tools for call graphs, complexity, dead code, and type queries
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "ts-ast-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gclluch/ts-ast-mcp"
      ]
    }
  }
}

README Excerpt

A Model Context Protocol (MCP) server for deep structural analysis of TypeScript and JavaScript source code. Unlike text-based search, this server parses your code with the TypeScript Compiler API and walks the real AST - types, functions, call relationships, interface satisfaction, and more. Most tools run on the syntactic tier (`ts.createSourceFile`, no type resolution) because it is fast and needs no build. `find_implementations` runs on the semantic tier - a full `ts.Program` and its type ch

Tools (20)

analyze_fileanalyze_packagecall_graphcode_complexitycode_smellsdead_codediff_astdirectionfind_errorsfind_implementationsfind_node_at_positionfind_usagesget_callersget_docget_function_bodyget_type_definitioninclude_externalisTypeAssignableTolist_declarationslist_exports

Topics

astcall-graphcode-analysiscompiler-apimcpmodel-context-protocolstatic-analysistypescript