Skip to main content
Glama
thousandmiles

Semantic Code MCP Server

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

  1. Clone the repository:

    git clone git@github.com:thousandmiles/lsp-mcp-server.git
    cd lsp-mcp-server
  2. Run the setup script to build the project and generate the configuration:

    ./setup.sh
  3. Copy the output JSON and paste it into your MCP client configuration file.

Manual Setup

  1. Install dependencies and build:

    npm install
    npm run build
  2. Configure your MCP client (e.g. Claude Desktop) to run this server:

    {
      "mcpServers": {
        "semantic-code": {
          "command": "node",
          "args": ["/path/to/code_node/build/index.js"]
        }
      }
    }
F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

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