lsp-tools-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., "@lsp-tools-mcpShow diagnostics for src/index.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.
lsp-tools-mcp
Standalone Language Server Protocol tools exposed as a stdio MCP server.
Quick Start
npm install
npm run check
npm test
npm run build
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | node dist/cli.js mcpMCP Tools
This server exposes the following tools:
lsp.statuslsp.diagnosticslsp.goto_definitionlsp.find_referenceslsp.symbolslsp.prepare_renamelsp.rename
Tool aliases are also available for compatibility:
lsp_statuslsp_diagnosticslsp_goto_definitionlsp_find_referenceslsp_symbolslsp_prepare_renamelsp_rename
Configuration
Default config paths:
Project:
.codex/lsp-client.jsonUser:
~/.codex/lsp-client.json
Path overrides via environment variables:
LSP_TOOLS_MCP_PROJECT_CONFIGLSP_TOOLS_MCP_USER_CONFIG
Examples:
LSP_TOOLS_MCP_PROJECT_CONFIG=.opencode/lsp.json node dist/cli.js mcp
LSP_TOOLS_MCP_USER_CONFIG=.opencode/lsp.json node dist/cli.js mcpExample config:
{
"lsp": {
"typescript": {
"command": ["typescript-language-server", "--stdio"],
"extensions": [".ts", ".tsx", ".js", ".jsx"]
}
}
}Architecture
src/lsp/*: standalone LSP runtime (process management, JSON-RPC transport, configuration, diagnostics, workspace edits)src/tools.ts: MCP tool definitions and handlerssrc/mcp.ts: stdio MCP server entry and registrationsrc/cli.ts: standalone CLI entry (mcpsubcommand only)
Consumers
This package is consumed by two projects as a git submodule:
codex-lsp - Codex plugin that ships LSP MCP tools plus a Codex-specific PostToolUse diagnostics hook.
oh-my-openagent - OpenCode plugin that registers this MCP server as a built-in Tier-1 stdio MCP, exposing
lsp_diagnostics,lsp_goto_definition,lsp_find_references,lsp_symbols,lsp_prepare_rename,lsp_rename, andlsp_statusto all agents.
Both consumers point at this repo via git submodule add at packages/lsp-tools-mcp/.
Local Development
npm install
npm run check
npm test
npm pack --dry-runLicense
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.
Latest Blog Posts
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/code-yeongyu/lsp-tools-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server