Exposes VSCode's LSP features through MCP, allowing for accurate code analysis and navigation in GitHub repositories
VSCode LSP MCP
๐ Overview
VSCode LSP MCP is a Visual Studio Code extension that exposes Language Server Protocol (LSP) features through the Model Context Protocol (MCP). This allows AI assistants and external tools to utilize VSCode's powerful language intelligence capabilities without direct integration.

๐ Why This Extension?
Large language models like Claude and Cursor struggle to understand your codebase accurately because:
They rely on regex patterns to find symbols, leading to false matches
They can't analyze import/export relationships properly
They don't understand type hierarchies or inheritance
They have limited code navigation capabilities
This extension bridges that gap, providing AI tools with the same code intelligence that VSCode uses internally!
Related MCP server: MCP Server
โ๏ธ Features
๐ LSP Bridge: Converts LSP features into MCP tools
๐ Multi-Instance Support: Automatically handles port conflicts for multiple VSCode windows
๐ง Rich Code Context: Provides accurate symbol information through LSP
๐ ๏ธ Exposed MCP Tools
Tool | Description |
| Get hover information for symbols |
| Find symbol definitions |
| Get intelligent code completions |
| Find all references to a symbol |
| Rename symbols across files |
๐ Configuration
Key | Description | Type | Default |
| Enable or disable the LSP MCP server. |
|
|
| Port for the LSP MCP server. |
|
|
| Maximum number of port retry attempts when the default port is occupied. |
|
|
| Enable or disable CORS (Cross-Origin Resource Sharing). |
|
|
| Allowed origins for CORS. Use
to allow all origins, or provide a comma-separated list of origins (e.g.,
). |
|
|
| Whether to allow credentials (cookies, authorization headers) in CORS requests. |
|
|
| Headers that browsers are allowed to access. Provide a comma-separated list of headers (e.g.,
). |
|
|
๐ Integration with AI Tools
Cursor

Roo Code
๐ป Development
Clone the repository
Run
pnpm installRun
pnpm run updateto generate metadataPress
F5to start debugging