AndyLiner13/ts-mcp-server
TypeScript MCP server for AI-powered refactoring. Rename symbols, extract functions, move declarations, inline variables, find references, and fix diagnostics — strictly via the native tsserver
Platform-specific configuration:
{
"mcpServers": {
"ts-mcp-server": {
"command": "npx",
"args": [
"-y",
"ts-mcp-server"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
[](https://www.npmjs.com/package/ts-mcp-server) [](https://www.npmjs.com/package/ts-mcp-server) [](./LICENSE)
A lightweight Model Context Protocol (MCP) server for TypeScript and JavaScript refactoring. Every tool maps directly to a tsserver protocol command — the output is the raw, unmodified response from TypeScript's compiler. Rename symbols, extract functions, move declarations between files, reorganize imports, get diagnostics, find references, and more — with every import, require, re-export, and reference updated automatically across your entire codebase.
AI coding assistants can read and write code, but they struggle with structural changes that ripple across many files. Renaming a function, extracting a helper, moving a React component, or reorganizing a folder means updating every reference and import that touches it. Miss one and the build breaks.
ts-mcp-server gives any MCP-compatible client — VS Code Copilot, Claude Desktop, Cursor, Windsurf, Continue, and others — the ability to perform these refactors correctly and completely, using TypeScript's own compiler infrastructure.
tsserver protocol commandLoading reviews...