drio
Open app

LSP Tools MCP Server

Source

An MCP server to build LSP

Catalog onlyCatalog onlySTDIO

Overview

LSP Tools MCP Server is a Model Context Protocol (MCP) server that provides Language Server Protocol-like functionality for text analysis, enabling users to perform regex searches and manage directory access.

To use the LSP Tools MCP Server, install the necessary packages using npm, build the project, and start the server by specifying the allowed directories.

  • Find Regex Position: Identify the line and column positions of regex pattern matches in a file. - List Allowed Directories: Retrieve a list of directories the server can access.
  1. Analyzing text files for specific patterns using regex.
  2. Managing access to directories for secure text analysis.
  3. Integrating with other tools that require text analysis capabilities.

Add to your AI client

Use these steps to connect LSP Tools MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "lsp-tools-mcp-rajnaveen344": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-tools-mcp-rajnaveen344"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "lsp-tools-mcp-rajnaveen344": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-tools-mcp-rajnaveen344"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "lsp-tools-mcp-rajnaveen344": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-tools-mcp-rajnaveen344"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "lsp-tools-mcp-rajnaveen344": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-tools-mcp-rajnaveen344"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "lsp-tools-mcp-rajnaveen344": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-tools-mcp-rajnaveen344"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "lsp-tools-mcp-rajnaveen344": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-lsp-tools-mcp-rajnaveen344"
      ]
    }
  }
}

FAQ

How do I install the LSP Tools MCP Server?

You can install it by running `npm install` and then build it with `npm run build`.

Can I run tests on the server?

Yes! You can run tests using Jest with the command `npm test`.

What programming language is used for this project?

The project is developed in TypeScript.