← all repositories
ktnyt/cclsp

Because LLMs can't count lines: an LSP bridge for Claude Code

cclsp exposes LSP features as MCP tools so Claude Code can navigate codebases, even when the AI botches coordinates.

667 stars TypeScript Coding AssistantsLLMOps · Eval
cclsp
Not currently ranked — collecting fresh signals.
star history

What it does cclsp acts as a bridge between Model Context Protocol clients like Claude Code and standard Language Server Protocol servers. It exposes LSP capabilities—definition lookup, reference finding, symbol renaming, and diagnostics—as MCP tools that an AI agent can invoke. You configure it with a JSON file pointing to whatever language servers you have installed for your stack.

The interesting bit The README is unusually honest about the core problem: LLM coding assistants “often struggle with providing accurate line/column numbers,” which makes direct LSP integration fragile. cclsp solves this by intelligently trying multiple position combinations until it resolves a symbol, effectively compensating for the AI’s shaky spatial reasoning.

Key highlights

  • Exposes six MCP tools: find_definition, find_references, rename_symbol, rename_symbol_strict, get_diagnostics, and restart_server
  • Works with any LSP-compatible server; the README lists configurations for TypeScript, Python, Go, Rust, C/C++, Java, Ruby, PHP, C#, and Swift
  • Includes an interactive setup wizard that auto-detects project languages and suggests matching language servers
  • rename_symbol applies changes across all affected files and creates .bak backups automatically; if the symbol is ambiguous, it returns candidates and falls back to rename_symbol_strict

Caveats

  • You must install and maintain language servers separately; cclsp is strictly the glue layer
  • Symbol renaming can return multiple candidates when the AI’s guess is ambiguous, requiring manual disambiguation via rename_symbol_strict
  • Only as useful as the underlying LSP servers you configure; there is no built-in language intelligence beyond the adapter logic

Verdict Useful if you want IDE-grade code navigation inside Claude Code without switching contexts. If you already live in VS Code or JetBrains, this adds little.

Frequently asked

What is ktnyt/cclsp?
cclsp exposes LSP features as MCP tools so Claude Code can navigate codebases, even when the AI botches coordinates.
Is cclsp open source?
Yes — ktnyt/cclsp is open source, released under the MIT license.
What language is cclsp written in?
ktnyt/cclsp is primarily written in TypeScript.
How popular is cclsp?
ktnyt/cclsp has 667 stars on GitHub.
Where can I find cclsp?
ktnyt/cclsp is on GitHub at https://github.com/ktnyt/cclsp.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.