MCP-MultilspyLSP
An MCP server that enables language models to access code intelligence features like completions, definitions, and references across multiple programming languages through the Language Server Protocol.
README
MCP-MultilspyLSP
An MCP server that exposes Language Server Protocol (LSP) capabilities through multilspy.
What is this?
This project provides an MCP (Model Context Protocol) server that gives language models access to language intelligence features from the Language Server Protocol (LSP). It uses multilspy, a Python library that simplifies interfacing with various language servers.
Features
- Language Intelligence: Get code completions, find definitions, references, and more
- Multi-language Support: Works with multiple programming languages including Python, Java, TypeScript, and more
- Easy Integration: Works with any MCP-compatible client like Claude Desktop
- Static Analysis: Leverage the power of language servers for code understanding
Installation
pip install mcp-multilspy
Usage
Start the server directly:
mcp-multilspy
Or install it in Claude Desktop:
mcp install mcp-multilspy
Supported Languages
- Java (Eclipse JDTLS)
- Python (jedi-language-server)
- Rust (Rust Analyzer)
- C# (OmniSharp/RazorSharp)
- TypeScript (TypeScriptLanguageServer)
- JavaScript (TypeScriptLanguageServer)
- Go (gopls)
- Dart (Dart Language Server)
- Ruby (Solargraph)
Example
Here's how to use this server with an MCP client:
# Initialize a TypeScript language server session
session = await initialize_language_server(
session_id="ts-session",
project_root="/path/to/project",
language="typescript"
)
# Find where a symbol is defined
definitions = await request_definition(
session_id="ts-session",
file_path="src/index.ts",
line=10, # 0-indexed
column=15 # 0-indexed
)
# Find all references to a symbol
references = await request_references(
session_id="ts-session",
file_path="src/index.ts",
line=10,
column=15
)
# Get code completion suggestions
completions = await request_completions(
session_id="ts-session",
file_path="src/index.ts",
line=10,
column=15
)
# Get hover information
hover_info = await request_hover(
session_id="ts-session",
file_path="src/index.ts",
line=10,
column=15
)
# Get document symbols
symbols = await request_document_symbols(
session_id="ts-session",
file_path="src/index.ts"
)
# Clean up when done
await shutdown_language_server(session_id="ts-session")
Requirements
- Python 3.12 or higher
- Language-specific requirements:
- For Java: JDK 17.0.6 or higher
- For JavaScript/TypeScript: Node.js v18.16.0 or higher
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.