ast-mcp-server
ast-mcp-server gives coding agents compact, type-aware access to TypeScript and JavaScript projects, providing structural code tools based on the real compiler project model through ts-morph for declarations, references, renames, and diagnostics, with safe prepare → review → apply mutation semantics and immutable hash-bound plans.
Install
npx -y ast-mcp-server
Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
{
"mcpServers": {
"ast-mcp-server": {
"command": "npx",
"args": [
"-y",
"ast-mcp-server"
],
"env": {
"AST_MCP_DIR": "<AST_MCP_DIR>",
"HERMES_HOME": "<HERMES_HOME>",
"CLAUDE_CONFIG_DIR": "<CLAUDE_CONFIG_DIR>",
"AST_TOOL_STATE_DIR": "<AST_TOOL_STATE_DIR>"
}
}
}
}Paste the configuration above into your MCP client config (claude_desktop_config.json for Claude Desktop) and restart the client.
Sources: public MCP Server directories. This is an independent third-party directory with no affiliation to or endorsement from the maintainers of the listed servers.