ts-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ts-mcpwhat functions are exported in src/utils.ts?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ts-mcp
MCP server providing AI-invocable tools for semantic navigation of TypeScript and JavaScript source files. Addresses code by name (via the TypeScript compiler AST) rather than by line number or raw string, making it practical to locate and read specific declarations in large files without loading the entire file.
Tools
ts-symbols
List all named declarations in a file.
Parameters:
filename— absolute path to a.ts,.tsx,.js, or.jsxfileexported_only— (optional, defaultfalse) when true, omit unexported symbols
Returns: array of symbol objects with name, kind, className (for methods/properties), exported, startLine, endLine.
Kinds: function, class, interface, type, enum, const, let, method, property.
Use this first to orient in a file, then call ts-read with the name you need.
ts-read
Return the full source text of a named declaration including its leading JSDoc comment.
Parameters:
filename— absolute path to a.ts,.tsx,.js, or.jsxfilename— declaration name, orClassName.methodNamefor class methods
Returns: object with name, kind, source (full text), and overloaded (true when the function has multiple overload signatures — in that case source includes all signatures plus the implementation body).
ts-imports
Return all import declarations as structured data.
Parameters:
filename— absolute path to a.ts,.tsx,.js, or.jsxfile
Returns: array of import objects with moduleSpecifier, defaultImport, namedImports, namespaceImport, isTypeOnly, line.
ts-replace
Replace a named declaration with new source text. Writes atomically (temp file + rename).
Parameters:
filename— absolute path to a.ts,.tsx,.js, or.jsxfilename— declaration name, orClassName.methodNamefor class methodssource— complete replacement declaration text (include JSDoc if it should be preserved)allow_kind_change— (optional, defaultfalse) when true, allow replacing with a declaration of a different kind
Returns: object with message and linesChanged. Returns an error (file untouched) when the name is not found, the kind does not match, or an unexpected error occurs.
For overloaded functions, source must include all overload signatures plus the implementation body. The entire group is replaced atomically.
ts-diagnostics
Run TypeScript type-checking on a file and return structured diagnostics.
Parameters:
filename— absolute path to a.ts,.tsx,.js, or.jsxfile
Returns: object with diagnostics (array), tsconfig (path used or null if none found), and message.
Each diagnostic has file, line, column, code, category ("error", "warning", or "suggestion"), and message.
Walks up the directory tree from filename to find the nearest tsconfig.json. Falls back to permissive defaults if none is found. Always excludes errors from node_modules.
Related MCP server: TypeScript LSP MCP
Build
Requires Docker and Make.
make install # install npm dependencies
make compile # compile TypeScript
make test # run unit tests
make clean # remove build artifactsUsage
Run the server directly:
node dist/index.jsOr install globally via npm:
npm install -g .
ts-mcpThe server communicates over stdio using the MCP JSON-RPC protocol. Configure it in your MCP client (e.g., Claude Code's claude_desktop_config.json or .claude/mcp.json) as a stdio server.
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Ask a codebase what calls what: search, blast radius, paths between symbols, and diffs.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables querying and analyzing code relationships by building a lightweight graph of TypeScript and Python symbols. Supports symbol lookup, reference tracking, impact analysis from diffs, and code snippet retrieval through natural language.
- AlicenseBqualityDmaintenanceExposes TypeScript Language Server Protocol functionality to AI agents, enabling them to query types at specific positions, find definitions and references, get diagnostics, run type tests, and type-check inline code just like in an IDE.91463MIT
- AlicenseNot gradedqualityDmaintenanceAST-aware TypeScript/JavaScript codebase exploration for AI agents, providing high-precision symbol resolution, reference finding, and structural analysis via MCP tools.160MIT
- AlicenseAqualityCmaintenanceEnables AI coding agents to interact with TypeScript projects through compiler-level code intelligence, providing tools for navigation, type information, diagnostics, refactoring, and semantic search.293393Apache 2.0
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/happydave/ts-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server