Back to Home
isaacphi icon

mcp-language-server

by isaacphi

Overview

Serves as an MCP (Model Context Protocol) gateway, enabling LLMs to interact with Language Servers (LSPs) for codebase navigation, semantic analysis, and code editing operations.

Installation

Run Command
mcp-language-server --workspace /path/to/yourproject/ --lsp gopls

Environment Variables

  • LOG_LEVEL
  • LOG_COMPONENT_LEVELS
  • LOG_FILE
  • LSP_CONTEXT_LINES

Security Notes

CRITICAL: The server exposes tools like 'edit_file' and 'rename_symbol' that directly accept 'filePath' arguments from MCP clients (potentially LLMs). The source code does NOT appear to sanitize or confine these 'filePath' arguments to the configured '--workspace' directory. This creates a critical vulnerability where a malicious or unconstrained LLM could perform arbitrary file writes, deletions, or renames on the host system outside the intended workspace. Similarly, 'definition', 'references', 'diagnostics', and 'hover' tools, which also accept 'filePath', could lead to arbitrary file reads and information disclosure. The 'lspCommand' to run the underlying Language Server is specified at startup, making it a configuration risk rather than a direct runtime injection vulnerability.

Similar Servers

Stats

Interest Score90
Security Score3
Cost ClassHigh
Avg Tokens3000
Stars1386
Forks112
Last Update2026-01-01

Tags

MCPLSPLLM IntegrationDevelopment ToolsCode Analysis