Skip to main content

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. 24 agent workflows. 33 CI-verified languages. Single Go binary.

Why

AI coding agents navigate code with grep and file reads. In our measurements this used 2-34x more tokens than language server queries, and 92-99% of text matches for a common symbol name were false positives. 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 (requires a bearer token)
AGENT_LSP_TOKEN=your-secret-token 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
  • 24 agent workflows (skills) that encode correct multi-step operations: rename safely, analyze blast radius, simulate edits before applying
  • 33 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 2x
HashiCorp Consul (Go) 319K 34x

Full experiment: agent-lsp.com/guide/token-savings

Works with

Claude Code, Cursor, Windsurf, GitHub Copilot, and any MCP-compatible client.

Metadata

Release files for agent-lsp 0.25.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for agent-lsp 0.25.0
File Actions
agent_lsp-0.25.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for agent_lsp-0.25.0-py3-none-win_arm64.whl
agent_lsp-0.25.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for agent_lsp-0.25.0-py3-none-win_amd64.whl
agent_lsp-0.25.0-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for agent_lsp-0.25.0-py3-none-manylinux2014_x86_64.whl
agent_lsp-0.25.0-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for agent_lsp-0.25.0-py3-none-manylinux2014_aarch64.whl
agent_lsp-0.25.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for agent_lsp-0.25.0-py3-none-macosx_11_0_arm64.whl
agent_lsp-0.25.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for agent_lsp-0.25.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 65.7 MB

Release files / agent_lsp-0.25.0-py3-none-win_arm64.whl

Download URL agent_lsp-0.25.0-py3-none-win_arm64.whl
Size 11.1 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
c13b3b2130a9db8b5af6fe03b7e8702909d9c53c726ce14ccc44e45309e1ad40
BLAKE2b-256 checksum
How to use checksums
48140103638f0635f265e248d2f51d9c982cc3560c5cdde73260710de3e4684f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / agent_lsp-0.25.0-py3-none-win_amd64.whl

Download URL agent_lsp-0.25.0-py3-none-win_amd64.whl
Size 6.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
670f9261936b1c50b912425a2642f4c130242d313cc1ac2714f8e434c24c9ff2
BLAKE2b-256 checksum
How to use checksums
495d1fb430809402b261c2f2945ab78f5354ed3b4d89ff5c4ff65923a1386f2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / agent_lsp-0.25.0-py3-none-manylinux2014_x86_64.whl

Download URL agent_lsp-0.25.0-py3-none-manylinux2014_x86_64.whl
Size 12.3 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
100eaac3a163616d1328dd488fda7282f92cc8eb589344f97cce6360a7cbe70c
BLAKE2b-256 checksum
How to use checksums
b0c397a1732e6ada75e6f2607156a5fe748c27ce37c92474423c2ce9b2d1f5f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / agent_lsp-0.25.0-py3-none-manylinux2014_aarch64.whl

Download URL agent_lsp-0.25.0-py3-none-manylinux2014_aarch64.whl
Size 11.7 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
8c32bf6cb38ad8a8ecc16f979be646e20377a05d4d831164b11a0cb1d1c10c43
BLAKE2b-256 checksum
How to use checksums
efd0bb535ded2ff8d19aa9980283c49b2947162425d759ac4f9367da05afc6b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / agent_lsp-0.25.0-py3-none-macosx_11_0_arm64.whl

Download URL agent_lsp-0.25.0-py3-none-macosx_11_0_arm64.whl
Size 12.0 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f1b54e3da455bd39462c92e1df0f759ca25adad08aff43c0f23d382707071b55
BLAKE2b-256 checksum
How to use checksums
5547b76e7df5d0916fc750a273b4ab33718942d794c4d50eb350e75524f7ba92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / agent_lsp-0.25.0-py3-none-macosx_10_12_x86_64.whl

Download URL agent_lsp-0.25.0-py3-none-macosx_10_12_x86_64.whl
Size 12.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
4f22f2859a13cc90c2b23542b796bc0b5ec19479532a9a81adfb94cf7a022880
BLAKE2b-256 checksum
How to use checksums
55658f8d2ba77a71a3bef4969bbe9ef9fae59369b8f39e377e60ef6c16c02e2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for agent-lsp 0.25.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.25.0 This release

6 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page