mcp-ts-morph MCP Server

ts-morph を利用して、TypeScript / JavaScript コードベースに対する AST ベースのリファクタリング操作を提供する MCP サーバーです。シンボル名の変更、ファイル/フォルダ名の変更、参照検索などを、プロジェクト全体の整合性を保ちながら行えます。

Local serverstdioMIT

What is the mcp-ts-morph MCP Server?

mcp-ts-morph is an MCP project maintained in the sirosuzume/mcp-ts-morph repository. The maintainer describes its purpose as “ts-morph を利用して、TypeScript / JavaScript コードベースに対する AST ベースのリファクタリング操作を提供する MCP サーバーです。シンボル名の変更、ファイル/フォルダ名の変更、参照検索などを、プロジェクト全体の整合性を保ちながら行えます。”. Read the project documentation for the complete scope.

Installation

The documented npm package is @sirosuzume/mcp-tsmorph-refactor. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the mcp-ts-morph MCP Server

{
  "mcpServers": {
    "mcp-tsmorph-refactor": {
      "command": "npx",
      "args": [
        "-y",
        "@sirosuzume/mcp-tsmorph-refactor"
      ],
      "env": {}
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.