MCP Server (Language Server Protocol)
Meeneshsolanki
README
MCP Server (Language Server Protocol)
A TypeScript-based Language Server Protocol implementation for code reference searching with support for multiple search strategies.
Features
- 🔍 Fast code reference search using ripgrep
- 🌐 Web interface for easy searching
- 💻 Terminal interface for command-line usage
- 📊 Grouped results by file type
- 🔄 Fallback search mechanisms
- 🔥 Hot reload support for development
Prerequisites
Before you begin, ensure you have the following installed:
- Node.js (v14 or higher)
- npm (comes with Node.js)
- Homebrew (for macOS users)
- ripgrep (recommended for faster searches)
Installation
1. Clone the Repository
git clone <your-repository-url>
cd <repository-name>/src/mcp-server/v1
2. Install Homebrew (macOS only)
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Add Homebrew to PATH (follow the instructions shown after installation)
# Usually these commands:
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Restart your terminal or run
source ~/.zprofile
3. Install ripgrep
# macOS (using Homebrew)
brew install ripgrep
# Ubuntu/Debian
sudo apt-get update && sudo apt-get install ripgrep
# Fedora
sudo dnf install ripgrep
# Windows (using Chocolatey)
choco install ripgrep
4. Install Dependencies
npm install
Usage
Building the Project
npm run build
Starting the Server
Production Mode
npm run start
Development Mode (with hot reload)
npm run dev
Accessing the Interfaces
-
Web Interface
- Open your browser and navigate to:
http://localhost:3000
- Enter your search term and directory
- View results grouped by file type
- Open your browser and navigate to:
-
Terminal Interface
- The terminal interface starts automatically with the server
- Follow the prompts to enter search terms
- Results will be displayed in the terminal
Search Strategies
The server uses multiple search strategies in the following order:
-
ripgrep (fastest)
- Uses regular expressions for exact and partial matches
- Excludes common directories (node_modules, .git, etc.)
- Provides line numbers and context
-
grep (fallback)
- Used if ripgrep is not available
- Similar functionality but slower
-
Node.js (final fallback)
- Pure JavaScript implementation
- Used if neither ripgrep nor grep is available
Configuration
Environment Requirements
- The server automatically checks for required software
- Provides installation instructions if anything is missing
- Verifies correct working directory
TypeScript Configuration
- Target: ES2020
- Module: CommonJS
- Strict type checking enabled
- Source maps generated for debugging
Troubleshooting
Common Issues
-
Wrong Directory
- Ensure you're in the
src/mcp-server/v1
directory - Check the path shown in the environment check
- Ensure you're in the
-
Homebrew Installation
- If Homebrew commands fail, ensure PATH is configured
- Check
~/.zprofile
for Homebrew configuration
-
ripgrep Not Found
- Verify Homebrew is installed and in PATH
- Try reinstalling:
brew reinstall ripgrep
-
Port Already in Use
- The server will automatically find an available port
- Default port is 3000
Error Messages
If you see these errors, try the following:
-
command not found: brew
- Reinstall Homebrew
- Reconfigure PATH
-
command not found: rg
- Install ripgrep:
brew install ripgrep
- Verify PATH configuration
- Install ripgrep:
-
EADDRINUSE
- Port is in use
- Server will automatically try another port
Development
Available Scripts
npm run build
: Build the projectnpm run start
: Start in production modenpm run dev
: Start with hot reloadnpm run clean
: Clean build output
Adding New Features
- Modify
server.ts
for core functionality - Update
index.html
for web interface changes - Run in dev mode to test changes
- Build and restart to apply
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
MCP Package Docs Server
Facilitates LLMs to efficiently access and fetch structured documentation for packages in Go, Python, and NPM, enhancing software development with multi-language support and performance optimization.
Claude Code MCP
An implementation of Claude Code as a Model Context Protocol server that enables using Claude's software engineering capabilities (code generation, editing, reviewing, and file operations) through the standardized MCP interface.
@kazuph/mcp-taskmanager
Model Context Protocol server for Task Management. This allows Claude Desktop (or any MCP client) to manage and execute tasks in a queue-based system.
Linear MCP Server
Enables interaction with Linear's API for managing issues, teams, and projects programmatically through the Model Context Protocol.
mermaid-mcp-server
A Model Context Protocol (MCP) server that converts Mermaid diagrams to PNG images.
Jira-Context-MCP
MCP server to provide Jira Tickets information to AI coding agents like Cursor

Linear MCP Server
A Model Context Protocol server that integrates with Linear's issue tracking system, allowing LLMs to create, update, search, and comment on Linear issues through natural language interactions.

Sequential Thinking MCP Server
This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.