MCP.so
Sign In
Servers

language-server-mcp MCP Server

@alexwohletz

Overview

What is language-server-mcp?

language-server-mcp is a TypeScript-based Model Context Protocol (MCP) server that provides language support features for code editing, including hover information, code completion suggestions, and diagnostic reporting. It is designed for developers using MCP-compatible clients like Claude Desktop, and has been tested with TypeScript while theoretically supporting Python.

How to use language-server-mcp?

Install dependencies with npm install, build with npm run build, and add the server configuration to your MCP client (e.g., Claude Desktop's claude_desktop_config.json). Use the exposed tools — get_hover, get_completions, and get_diagnostics — by providing the required parameters (languageId, filePath, content, line, character where applicable).

Key features of language-server-mcp

  • Provides hover information for symbols in code
  • Offers code completion suggestions
  • Reports diagnostic information (errors, warnings)
  • Integrates with the Model Context Protocol
  • Exposes language features as MCP tools
  • Debuggable using the MCP Inspector

Use cases of language-server-mcp

  • Getting hover information for a symbol at a specific position
  • Obtaining code completion suggestions at a cursor location
  • Retrieving diagnostic information (errors/warnings) for a document

FAQ from language-server-mcp

What languages does language-server-mcp support?

It has been tested with TypeScript and theoretically supports Python.

What MCP tools does language-server-mcp provide?

Three tools: get_hover (parameters: languageId, filePath, content, line, character), get_completions (same parameters), and get_diagnostics (parameters: languageId, filePath, content).

How can I debug language-server-mcp?

Use the MCP Inspector, available via npm run inspector, which provides a URL to access debugging tools.

How do I install language-server-mcp with Claude Desktop?

Add the server config to claude_desktop_config.json — on MacOS at ~/Library/Application Support/Claude/claude_desktop_config.json, on Windows at %APPDATA%/Claude/claude_desktop_config.json — with the command pointing to the built index.js.

What are the build requirements for language-server-mcp?

Run npm install to install dependencies, then npm run build to compile the TypeScript server.

Tags

More from Other