agent-lsp
MCP server for language intelligence. Give AI agents structured access to language servers: go-to-definition, find-all-references, rename, diagnostics, completions, call hierarchy, and speculative execution.
66 tools. 23 agent workflows. 30 CI-verified languages. Single Go binary.
Why
AI coding agents navigate code with grep and file reads. This wastes 5-34x more tokens than necessary and produces 92-99% false positives on symbol lookups. Language servers already have the answers; agent-lsp makes them accessible via MCP.
Install
pip install agent-lsp
Or via other channels:
brew install blackwell-systems/tap/agent-lsp # macOS/Linux
npm install -g @blackwell-systems/agent-lsp # npm
curl -fsSL https://raw.githubusercontent.com/blackwell-systems/agent-lsp/main/install.sh | sh
Usage
# Start with auto-detection
agent-lsp
# Explicit language server
agent-lsp go:gopls typescript:typescript-language-server,--stdio
# HTTP mode
agent-lsp --http --port 8080 go:gopls
Then configure your AI tool's MCP settings to point at agent-lsp.
What it does
- 66 tools covering navigation, analysis, refactoring, diagnostics, formatting, speculative execution, composite exploration, safe editing, build, test, and more
- 23 agent workflows (skills) that encode correct multi-step operations: rename safely, analyze blast radius, simulate edits before applying
- 30 CI-verified languages: Go, Python, TypeScript, Rust, Java, C, C++, C#, Ruby, PHP, Kotlin, Swift, Scala, Zig, Lua, Elixir, Gleam, and more
- Speculative execution: preview edits in memory, see what breaks before touching disk
- Phase enforcement: blocks out-of-order operations so agents follow correct workflows
Token savings
Measured across 5 codebases (Go, TypeScript, Python):
| Codebase | Lines | Savings |
|---|---|---|
| agent-lsp | 15K | 5x |
| Hono (TypeScript) | 24K | 13x |
| FastAPI (Python) | 33K | 2x |
| Next.js (TypeScript) | 196K | 5x |
| HashiCorp Consul (Go) | 319K | 34x |
Full experiment: agent-lsp.com/token-savings
Works with
Claude Code, Cursor, Windsurf, GitHub Copilot, and any MCP-compatible client.
Links
Metadata
Release files for agent-lsp 0.22.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| agent_lsp-0.22.0-py3-none-win_arm64.whl | Python 3 | none | Windows ARM64 | Details |
| agent_lsp-0.22.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| agent_lsp-0.22.0-py3-none-manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| agent_lsp-0.22.0-py3-none-manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| agent_lsp-0.22.0-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| agent_lsp-0.22.0-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
Total release size: 64.3 MB
Release files / agent_lsp-0.22.0-py3-none-win_arm64.whl
| Download URL | agent_lsp-0.22.0-py3-none-win_arm64.whl |
|---|---|
| Size | 10.9 MB |
| Tags | Python 3 Windows ARM64 |
|
SHA-256 checksum How to use checksums |
c801572aca9b6459b3422ad7bf31bae771f0c86a2cd597d2fce6f6a188d0feb9
|
|
BLAKE2b-256 checksum How to use checksums |
efa67fa7416fe4168373593449f74ff1d64df563dff86ec062051962b4a99a0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / agent_lsp-0.22.0-py3-none-win_amd64.whl
| Download URL | agent_lsp-0.22.0-py3-none-win_amd64.whl |
|---|---|
| Size | 6.1 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
fd7f1347a0f4d23d56cbae2de4b420a82bd5aa32650fecad1fae7fd62b0f8a25
|
|
BLAKE2b-256 checksum How to use checksums |
08bd76d3af148de19d59081f8b672aeda643888d7917f12cf2e69ab694fc9cb3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / agent_lsp-0.22.0-py3-none-manylinux2014_x86_64.whl
| Download URL | agent_lsp-0.22.0-py3-none-manylinux2014_x86_64.whl |
|---|---|
| Size | 12.0 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
6ae9da3b1f834aeb47467b438b2aa544f08273345719ca4bfaf5625608fc1aa5
|
|
BLAKE2b-256 checksum How to use checksums |
10c92433baaf8bd0cf7de7499717f8c27f488d0e247c0e8f5588459d2b871e01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / agent_lsp-0.22.0-py3-none-manylinux2014_aarch64.whl
| Download URL | agent_lsp-0.22.0-py3-none-manylinux2014_aarch64.whl |
|---|---|
| Size | 11.5 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
37ab1bef52479b4268543a6189d7fe930502c825620d7965743997a50411e7d0
|
|
BLAKE2b-256 checksum How to use checksums |
715f41e727e3e44a95ccfc3e611373d710c4535e61084124e6881b981857467f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / agent_lsp-0.22.0-py3-none-macosx_11_0_arm64.whl
| Download URL | agent_lsp-0.22.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 11.7 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
85ab81874b7330a51a2d979b3015bf73536e8b7f7fe2b13ceab230b209880af4
|
|
BLAKE2b-256 checksum How to use checksums |
dd090557f93e60bc7dce53d34d32d7af2bbfc7f43813c019b8f5100c5fb5b47d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / agent_lsp-0.22.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | agent_lsp-0.22.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 12.1 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
b2f861d27b12806fd0f1df58b4ae63e413591bd71e9be882fa0d35cdc5b794ab
|
|
BLAKE2b-256 checksum How to use checksums |
8c3600438bfc4a4628bc8686b7aedbb6a39e9f8af2e0c401628cdc6c390e263e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|