TypeScript MCP

TypeScript MCP is an MCP server that connects Language Server Protocol instances to AI clients, providing advanced code manipulation and semantic analysis capabilities. Built on the lsmcp engine, the server bridges development environments with AI assistants such as Claude, allowing them to inspect project structures, navigate type definitions, and verify compiler diagnostics. Software developers and engineers use this tool to grant language-aware code intelligence directly to language models working in complex codebases. In addition to TypeScript via presets like tsgo, the server supports other language server runtimes including Rust, Go, OCaml, and Deno. It provides high-level tools for workspace exploration, cross-file reference tracking, precise symbol definitions, hover documentation, and automated code actions. TypeScript MCP also includes external library indexing, which scans node_modules declaration files to resolve imported definitions, alongside a persistent project memory system for storing architecture guidelines and project conventions. By operating through structured language server commands rather than raw string searching, it enables accurate, syntax-aware refactoring operations, parameter completions, and safe symbol renaming across entire multi-file software projects without breaking surrounding code.

Category: Developer Tools & Code Intelligence

Tags: code analysis, javascript, refactoring, typescript

Visit TypeScript MCP

How to install and configure TypeScript MCP

Follow these steps to set up and register TypeScript MCP with Claude: 1. Ensure your environment has Node.js 22.0.0 or higher installed, as required for built-in SQLite support. 2. Install the necessary packages in your project: bash npm add -D @mizchi/lsmcp @typescript/native-preview 3. Initialize the server configuration using the TypeScript preset: bash npx @mizchi/lsmcp init -p tsgo 4. Add the server to Claude using the CLI: bash claude mcp add lsmcp npx -- -y @mizchi/lsmcp -p tsgo 5. Alternatively, specify a custom language server binary command: bash claude mcp add lsmcp npx -- -y @mizchi/lsmcp --bin="<lsp-command>" 6. Adjust indexing and concurrency options in .lsmcp/config.json as needed.

What you can do with TypeScript MCP

  • Exploring codebase architecture by generating project overviews and querying symbol hierarchies to understand interfaces, classes, and file relationships. - Investigating bugs by jumping to symbol definitions, finding references across files, and pulling compiler diagnostics for error detection. - Refactoring multi-file codebases safely through workspace-wide symbol renaming, automated code actions, and document formatting. - Resolving external library declarations by indexing node_modules type definitions to clarify third-party types and available methods. - Maintaining persistent project context and coding conventions across sessions using the built-in memory management file system.

Key facts

  • https://github.com/mizchi/typescript-mcp
  • Developer Tools & Code Intelligence
  • code analysis, javascript, refactoring, typescript

Part of MCP Servers

Related MCP servers

  • MCP LaTeX Server β€” MCP LaTeX Server is an MCP server that provides tools for creating, editing, validating, and compiling LaTeX documents directly through…
  • MCP JSON β€” MCP JSON is an MCP server collection that bundles tools for file system operations, Google search, browser-based web automation, and…
  • MCP Jupyter Complete β€” MCP Jupyter Complete is an MCP server that provides tools for manipulating Jupyter notebook files through position-based cell operations and…
  • MCP LSP Go β€” MCP LSP Go is an MCP server that connects AI assistants to the official Go Language Server Protocol implementation, gopls,…
  • MCP Manager β€” MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab β€” MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…

How do I install TypeScript MCP?

Install Node.js 22.0.0 or higher on your machine. Next, install the package and native preview with npm add -D @mizchi/lsmcp @typescript/native-preview, then initialize the configuration using npx @mizchi/lsmcp init -p tsgo. Finally, register the server in Claude by executing claude mcp add lsmcp npx -- -y @mizchi/lsmcp -p tsgo in your terminal.

What can TypeScript MCP do?

TypeScript MCP exposes Language Server Protocol features to LLMs. It enables semantic code analysis, workspace-wide symbol searching, jumping to definitions, finding all usages of a symbol, diagnostic error checking, and code completions. It also supports automated symbol renaming, external node_modules library indexing, and a persistent memory system for tracking project conventions.

Which language servers are supported by TypeScript MCP?

While specialized for TypeScript through the tsgo and typescript presets, the server also includes presets for Rust with rust-analyzer, Go with gopls, Deno, MoonBit, F# via fsautocomplete, OCaml, and Haskell Language Server. Custom language server binaries can also be connected using the manual bin command argument.

Is TypeScript MCP open source?

Yes, TypeScript MCP is open-source software distributed under the MIT license. You can inspect its source code, review community contributions, report issues, and view example configurations directly on GitHub at https://github.com/mizchi/typescript-mcp.

What are the system requirements for TypeScript MCP?

TypeScript MCP requires Node.js version 22.0.0 or higher to run. This specific runtime requirement is necessary because the underlying server relies on Node's built-in SQLite support for maintaining symbol caches, index metadata, and persistent project storage.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories