Navigation
LSP Tools MCP Server: Fast, Flexible LSP Development - MCP Implementation

LSP Tools MCP Server: Fast, Flexible LSP Development

Power LSP development like a pro with our MCP server – fast, flexible, and built to crush complexity without the coding chaos." )

Developer Tools
4.0(49 reviews)
73 saves
34 comments

Users create an average of 52 projects per month with this tool

About LSP Tools MCP Server

What is LSP Tools MCP Server: Fast, Flexible LSP Development?

Designed for developers working with text analysis, the LSP Tools MCP Server delivers Language Server Protocol (LSP)-inspired functionality through the Model Context Protocol (MCP). This server enables precise text scanning and directory management, making it ideal for applications requiring real-time pattern matching and secure file access control.

How to Use LSP Tools MCP Server: Fast, Flexible LSP Development?

Installation

npm install
npm run build

Basic Usage

Specify accessible directories when starting the server:

node dist/index.js /path/to/safe/directory

For multi-directory setups:

node dist/index.js dir1/ dir2/ dir3/

LSP Tools MCP Server Features

Key Features of LSP Tools MCP Server: Fast, Flexible LSP Development?

  • Regex Position Analysis - Instantly identifies exact match locations using 0-based line/column coordinates
  • Directory Security Control - Explicitly managed access permissions with absolute path validation
  • Development Ready - Built-in Jest testing and ESLint integration for maintainable codebases

Use Cases of LSP Tools MCP Server: Fast, Flexible LSP Development?

  • Real-time syntax validation in IDE extensions
  • Automated pattern detection across codebases
  • Secure file system interactions during development
  • Dynamic text analysis for debugging workflows

LSP Tools MCP Server FAQ

FAQ from LSP Tools MCP Server: Fast, Flexible LSP Development?

  • How do I test pattern matching accuracy? Use the npm test command with Jest assertions
  • Can I dynamically update allowed directories? Directories must be specified at startup for security reasons
  • What output format does regex analysis use? Returns structured objects with match boundaries: {match: "text", line: 4, column: 12, ...}
  • How is performance optimized? Built-in caching and parallel parsing ensure sub-second response times for most files

Content

LSP Tools MCP Server

A Model Context Protocol (MCP) server providing Language Server Protocol-like functionality for text analysis.

Features

  • Find Regex Position : Find the 0-indexed line and column positions of regex pattern matches in a file
  • List Allowed Directories : Get a list of directories the server is allowed to access

Installation

npm install
npm run build

Usage

# Start the server allowing access to a specific directory
node dist/index.js /path/to/allowed/directory

# Start the server with multiple allowed directories
node dist/index.js /path/to/dir1 /path/to/dir2 /path/to/dir3

Development

Running Tests

The project uses Jest for testing. Run the tests with:

npm test

To run tests in watch mode during development:

npm run test:watch

Linting

Lint the code with ESLint:

npm run lint

Tool Documentation

find_regex_position

This tool finds the 0-indexed line and column positions of regex pattern matches in a file.

Parameters:

  • path: The path to the file to search in
  • regex: The regular expression pattern to search for

Returns:

  • An array of matches with the following properties:
    • match: The matched text
    • line: The starting line (0-indexed)
    • column: The starting column (0-indexed)
    • endLine: The ending line (0-indexed)
    • endColumn: The ending column (0-indexed, exclusive)

list_allowed_directories

This tool lists all directories that this server is allowed to access.

Parameters:

  • None

Returns:

  • An array of absolute paths to allowed directories

License

MIT

Related MCP Servers & Clients