language-server-mcp
The language-server-mcp is a TypeScript-based server that provides language support for code editing via the Model Context Protocol (MCP).
It offers three main capabilities:
Hover Information: Retrieve details for code symbols using
get_hoverCode Completion: Get suggestions at specific positions with
get_completionsDiagnostics: Fetch errors and warnings through
get_diagnostics
Each function requires parameters like languageId, filePath, content, and projectRoot. The server is primarily tested with TypeScript, with theoretical support for Python and potential for additional language integrations.
Theoretically provides language support for Python code editing, though it has only been tested with TypeScript.
Provides language support for TypeScript code editing with features like hover information, code completion, and diagnostics.
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., "@language-server-mcpget hover info for line 15 character 7 in my typescript file"
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.
language-server-mcp MCP Server
A Model Context Protocol (MCP) server providing language support for code editing.
This is a TypeScript-based MCP server designed to enhance code editing experiences by providing features such as hover information, code completion, and diagnostics. It demonstrates core MCP concepts by providing:
Language-specific tools for code analysis and manipulation
Integration with the Model Context Protocol for seamless communication
Features
Language Support
Provides hover information for symbols in code
Offers code completion suggestions
Reports diagnostic information (errors, warnings)
Only tested with typescript, theoretically should support Python. Would love to add additional language servers or be more agnostic if possible.
MCP Integration
Implements the MCP protocol for communication with clients
Exposes language features as MCP tools
Tools
get_hover: Get hover information for a position in a documentTakes languageId, filePath, content, line, and character as required parameters
get_completions: Get completion suggestions for a position in a documentTakes languageId, filePath, content, line, and character as required parameters
get_diagnostics: Get diagnostic information for a documentTakes languageId, filePath, and content as required parameters
Related MCP server: VSCode LSP MCP Server
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchInstallation
To use with Claude Desktop, add the server config:
On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"language-server-mcp": {
"command": "/path/to/language-server-mcp/build/index.js"
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that enables LLMs to understand and work with TypeScript APIs they haven't been trained on by providing structured access to TypeScript type definitions and documentation.Last updated5046MIT
- Alicense-qualityAmaintenanceAn MCP server that exposes Language Server Protocol features to external clients, allowing access to hover information, definitions, completions, references, and rename functionalities.Last updated2339MIT
- AlicenseAqualityDmaintenanceA lightweight MCP server that provides 40 tools for TypeScript/JavaScript refactoring and code intelligence, directly mapping to TypeScript's tsserver protocol commands for accurate structural changes and workspace analysis.Last updated40303MIT
- Alicense-qualityCmaintenanceA TypeScript-based MCP server that enables code search, file reading, and project management via the GitLab API.Last updated151ISC
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for doc2mcp documentation, generated by doc2mcp.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/alexwohletz/language-server-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server