language-server-mcp logo

language-server-mcp

by alexwohletz

A Model Context Protocol (MCP) server providing language support for code editing. It enhances code editing experiences by providing features such as hover information, code completion, and diagnostics.

View on GitHub

Last updated: N/A

What is language-server-mcp?

This is a TypeScript-based MCP server designed to enhance code editing experiences by providing language support through the Model Context Protocol.

How to use language-server-mcp?

To use with Claude Desktop, add the server config to the claude_desktop_config.json file in the appropriate location for your operating system (MacOS or Windows). Specify the path to the built index.js file in the command field. Debugging is recommended using the MCP Inspector.

Key features of language-server-mcp

  • Provides hover information for symbols in code

  • Offers code completion suggestions

  • Reports diagnostic information (errors, warnings)

  • Implements the MCP protocol for communication with clients

  • Exposes language features as MCP tools

Use cases of language-server-mcp

  • Enhancing code editing in Claude Desktop

  • Providing language-specific tools for code analysis and manipulation

  • Integrating with the Model Context Protocol for seamless communication

  • Supporting TypeScript code editing

  • Potentially supporting Python code editing

FAQ from language-server-mcp

What languages are supported?

Currently tested with TypeScript, theoretically should support Python. Additional language servers or a more agnostic approach are desired.

How do I install the server?

Install dependencies using npm install and build the server using npm run build.

How do I use the server with Claude Desktop?

Add the server config to the claude_desktop_config.json file with the correct path to the built index.js file.

How do I debug the server?

Use the MCP Inspector by running npm run inspector.

What tools are available?

The server provides get_hover, get_completions, and get_diagnostics tools.