A Model Context Protocol (MCP) server that helps AI code editors find TypeScript symbol definitions in your codebase. This tool is particularly useful when you need to locate the original definition of imported symbols, classes, interfaces, or functions in a TypeScript project.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add typescript-definition-finder -- npx -y ts-def-mcp@latest~/.codex/config.toml
[mcp_servers.typescript-definition-finder]
command = "npx"
args = ["-y", "ts-def-mcp@latest"]
# codex mcp add typescript-definition-finder -- npx -y ts-def-mcp@latest~/.cursor/mcp.json
{
"mcpServers": {
"typescript-definition-finder": {
"command": "npx",
"args": [
"-y",
"ts-def-mcp@latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"typescript-definition-finder": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"ts-def-mcp@latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"typescript-definition-finder": {
"command": "npx",
"args": [
"-y",
"ts-def-mcp@latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"typescript-definition-finder": {
"command": "npx",
"args": [
"-y",
"ts-def-mcp@latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"typescript-definition-finder": {
"command": "npx",
"args": [
"-y",
"ts-def-mcp@latest"
]
}
}
}