Ts MCP Server logo

Ts MCP Server

Refactors TypeScript and JavaScript code through tsserver, updating symbols, files, imports, diagnostics, and code fixes over MCP.

Install Ts MCP Server

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ts-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "ts-mcp-server"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 40 tools correctly ().

Overview

ts-mcp-server connects MCP clients to TypeScript's tsserver for refactoring and code intelligence across TypeScript and JavaScript projects. It can rename symbols or files, update imports and references, inspect diagnostics, organize imports, and retrieve code fixes. The server also exposes navigation, completion, call hierarchy, project, and refactoring tools using raw tsserver responses. Reach for it when an AI coding workflow needs project-wide structural changes rather than isolated text edits.

Use cases

  • Rename a symbol across an entire TypeScript project
  • Move a file while updating its import paths
  • Inspect diagnostics before requesting automatic fixes
  • Organize imports after a code transformation
  • Trace callers, callees, definitions, and implementations

Key features

  • Project-wide symbol and file renaming
  • Automatic import, require, and re-export updates
  • Raw tsserver responses over MCP
  • Diagnostics and targeted code-fix retrieval
  • TypeScript navigation and code intelligence
  • Automatic tsconfig.json project discovery

Tools40

What Ts MCP Server lets your agent do. Expand a tool for its parameters.

Verified live~8.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

7/7 checks healthy over the last 25d

What it can do

From the 40 tools this server returned when we ran it; 38 declare their own safety hints.

Can delete or modify data · 9Makes network requests · 2Read-only tools · 31
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age244 days
Maintainers1

Observed 2026-11-21 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · ts-mcp-server (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars4Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed40Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Ts MCP Server works

What ts-mcp-server does

ts-mcp-server exposes TypeScript language-service operations through MCP. Its tools cover both source changes and code intelligence, with each operation corresponding to a tsserver protocol command. Refactoring capabilities include renaming symbols, moving or renaming files and directories, organizing imports, formatting code, extracting functions, constants, and types, inferring return types, moving symbols, and inlining variables.

The server also supports analysis and navigation. Agents can inspect semantic and suggestion diagnostics, find references, look up definitions and implementations, search workspace symbols, inspect file references, explore call hierarchies, request completion details, view signature help, generate documentation comment templates, and find TODO-style comments.

How it works

The MCP layer communicates with TypeScript's tsserver over Node IPC. Tool inputs are passed to the corresponding tsserver command, and the resulting response is returned as JSON without additional formatting, grouping, or filtering. This preserves TypeScript's native response structure for clients that need exact language-service data.

Project discovery detects tsconfig.json automatically. Monorepos, project references, and composite builds are supported, allowing operations to work across multi-project workspaces. Refactoring operations can use preview mode to inspect the proposed changes before applying them. File and symbol changes can update references, imports, require paths, and re-exports throughout the project.

Tools and capabilities

The documented tool set includes:

  • rename for symbols and their project-wide references.
  • renameFileOrDirectory for moving or renaming files and directories while updating import paths.
  • references for locating symbol usages.
  • getDiagnostics for separate semantic and suggestion diagnostic results.
  • organizeImports for sorting, combining, and removing unused imports.
  • getCodeFixes for retrieving fixes for selected diagnostic codes and ranges.
  • Refactoring tools for extraction, inlining, return-type inference, symbol movement, formatting, and mapping generated code into a file.
  • Code-intelligence tools for definitions, type definitions, implementations, completions, navigation trees, project information, call hierarchy, inlay hints, and workspace symbol search.

Use getDiagnostics before getCodeFixes to obtain the error codes and source ranges needed by the code-fix request.

Limitations and notes

Responses are raw tsserver results, so the MCP client must interpret TypeScript's response shapes and text spans. The server is intended for TypeScript and JavaScript workspaces and relies on TypeScript project discovery through tsconfig.json. It runs on Windows, macOS, and Linux.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Ts MCP Server

ts-mcp-server is an MCP server that connects AI clients to TypeScript's tsserver for TypeScript and JavaScript projects. Its main tools rename symbols and files, update imports and references, retrieve diagnostics, organize imports, find usages, and request code fixes using TypeScript's language-service results.

Yes, ts-mcp-server is listed as compatible with Cursor. It is designed for MCP-compatible clients and exposes TypeScript refactoring and code-intelligence operations through the client.

The `renameFileOrDirectory` tool asks tsserver for file-rename edits and updates import paths across the project. It is intended for TypeScript and JavaScript files or directories and can account for imports, `require` paths, and re-exports.

Call `getDiagnostics` first to retrieve semantic and suggestion diagnostics, including error codes and ranges. Pass the relevant code and range to `getCodeFixes` to retrieve available automatic fixes for that location.

The listed clients are VS Code Copilot, Claude Desktop, Cursor, Windsurf, and Continue. The server is intended for MCP-compatible clients and returns native tsserver responses through its tools.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTs MCP Server AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ts-mcp-server?style=directory)](https://allmcps.com/mcp/ts-mcp-server)
HTML Embed
<a href="https://allmcps.com/mcp/ts-mcp-server"><img src="https://allmcps.com/api/badge/ts-mcp-server?style=directory" alt="Ts MCP Server on AllMCPs" /></a>