Back to Home
isaacphi icon

mcp-language-server

Verified Safe

by isaacphi

Overview

Proxies a Language Server Protocol (LSP) server to provide semantic code intelligence tools to Model Context Protocol (MCP) clients, enabling LLMs to interact with codebases.

Installation

Run Command
mcp-language-server --workspace /path/to/yourproject/ --lsp <LSP_COMMAND> [-- LSP_ARGS]

Environment Variables

  • LOG_LEVEL
  • LOG_COMPONENT_LEVELS
  • LOG_FILE
  • LSP_CONTEXT_LINES

Security Notes

The server's core function involves executing an external, user-configured Language Server Protocol (LSP) binary as a child process. This LSP child process is granted extensive file system access (read, write, create, rename, delete) within the specified workspace directory to fulfill its duties. While this is inherent to LSP functionality, it means the server's security heavily relies on the trustworthiness of the *user-selected* LSP executable. If a malicious LSP server is configured, it could potentially compromise the workspace or (less directly) the host system. The server itself does not expose network ports, employ `eval`, or contain hardcoded secrets, and validates LSP command existence with `exec.LookPath` and workspace path validity. The risk is primarily in the user's choice of external LSP.

Similar Servers

Stats

Interest Score100
Security Score7
Cost ClassMedium
Avg Tokens3500
Stars1291
Forks100
Last Update2025-12-02

Tags

LSPMCPLLMCode AnalysisDeveloper Tool