Semantic Code MCP Server
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., "@Semantic Code MCP ServerFind the definition of 'calculateTotal' in src/utils.ts"
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.
Semantic Code MCP Server
This is a Model Context Protocol (MCP) server that provides semantic code analysis capabilities using the Language Server Protocol (LSP).
Features
Semantic Navigation: Go to definition, find references, hover info.
Relationship Analysis: Check if function A calls function B (using LSP references).
Related MCP server: Codex LSP Bridge
Architecture
This server acts as a bridge between MCP and LSP. It spawns a typescript-language-server instance and translates MCP tool calls into LSP JSON-RPC requests.
Tools
get_definition: Find where a symbol is defined.get_references: Find all usages of a symbol.search_in_file: Search for a string in a file to find its line and character position.check_function_call: Analyze if one function calls another.
Usage
Installation
Clone the repository:
git clone git@github.com:thousandmiles/lsp-mcp-server.git cd lsp-mcp-serverRun the setup script to build the project and generate the configuration:
./setup.shCopy the output JSON and paste it into your MCP client configuration file.
Manual Setup
Install dependencies and build:
npm install npm run buildConfigure your MCP client (e.g. Claude Desktop) to run this server:
{ "mcpServers": { "semantic-code": { "command": "node", "args": ["/path/to/code_node/build/index.js"] } } }
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/thousandmiles/lsp-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server