TypeScript Package Introspector (MCP Server)
About
# TypeScript Package Introspector (MCP Server) This tool introspects TypeScript packages and source code to extract exported symbols (functions, classes, types, constants) and their type information. It can be used both as a library/CLI tool and as a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/)…
Explore
- Extract exported symbols from npm packages using their type definitions
- Analyze TypeScript source code directly
- Get detailed type signatures for all exported symbols
- Extract JSDoc comments as descriptions
- Run as an MCP server to provide context to LLMs
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
TypeScript Package Introspector (MCP Server)Command (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
npm install
bash
import { introspectFromPackage, introspectFromSource } from 'ts-morph-mcp-server';
// Introspect a package
const exports = await introspectFromPackage('zod');
console.log(exports);
// Introspect source code
const source =
export function add(a: number, b: number): number {
return a + b;
}
;
const sourceExports = introspectFromSource(source);
console.log(sourceExports);
This tool can be run as an MCP server to provide TypeScript package introspection capabilities to LLM applications like Claude for Desktop.
```bash
The MCP server provides the following tools:
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"typescript package introspector (mcp server)": {
"ts-morph-mcp-server": {
"command": "node",
"args": [
"dist/index.js",
"zod"
]
}
}
}
}
McpServers
{
"ts-morph-mcp-server": {
"command": "node",
"args": [
"dist/index.js",
"zod"
]
}
}
This tool introspects TypeScript packages and source code to extract exported symbols (functions, classes, types, constants) and their type information. It can be used both as a library/CLI tool and as a Model Context Protocol (MCP) server.
Features
- Extract exported symbols from npm packages using their type definitions
- Analyze TypeScript source code directly
- Get detailed type signatures for all exported symbols
- Extract JSDoc comments as descriptions
- Run as an MCP server to provide context to LLMs
Installation
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



