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. 32 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 (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
  • 32 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/guide/token-savings

Works with

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

Metadata

Release files for agent-lsp 0.24.1

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.24.1
File Actions
agent_lsp-0.24.1-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for agent_lsp-0.24.1-py3-none-win_arm64.whl
agent_lsp-0.24.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for agent_lsp-0.24.1-py3-none-win_amd64.whl
agent_lsp-0.24.1-py3-none-manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for agent_lsp-0.24.1-py3-none-manylinux2014_x86_64.whl
agent_lsp-0.24.1-py3-none-manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for agent_lsp-0.24.1-py3-none-manylinux2014_aarch64.whl
agent_lsp-0.24.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for agent_lsp-0.24.1-py3-none-macosx_11_0_arm64.whl
agent_lsp-0.24.1-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for agent_lsp-0.24.1-py3-none-macosx_10_12_x86_64.whl

Total release size: 65.0 MB

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

Download URL agent_lsp-0.24.1-py3-none-win_arm64.whl
Size 11.0 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
229cbfbd2a071f2569316ee895c0fd3bdbc7c0344d315289a2540f8a94829fe0
BLAKE2b-256 checksum
How to use checksums
fb815a3870c1365a2d949d2f0478c33af1e82ef2d3aa0879245e9e5bf3d068ce
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.24.1-py3-none-win_amd64.whl

Download URL agent_lsp-0.24.1-py3-none-win_amd64.whl
Size 6.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1b3a9aa69222c94e34c3662aab92c42bbde504c24a75ea88e44afd300a2a52fe
BLAKE2b-256 checksum
How to use checksums
5f4e8aad8f2fdbbff847ddee673936853277213aea81fd24f15906acfd3da097
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.24.1-py3-none-manylinux2014_x86_64.whl

Download URL agent_lsp-0.24.1-py3-none-manylinux2014_x86_64.whl
Size 12.2 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
79e86dd9ec14f0481c0c398dc681e5be42bcd5d029fd560d2e0d60656ce7dfa9
BLAKE2b-256 checksum
How to use checksums
07bc68a2a338b80c01ad74aa9a8c51929a2753ef3e02733838c1e85c8caeb8b2
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.24.1-py3-none-manylinux2014_aarch64.whl

Download URL agent_lsp-0.24.1-py3-none-manylinux2014_aarch64.whl
Size 11.6 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
f8a1b1afb72ea226022f025814d2d572abfa9a159edbb00c495cae00c64d93ed
BLAKE2b-256 checksum
How to use checksums
ff5b86ee794abc0a75ada9d840fac7c59773dd131061f71f7057d71ac15fcb00
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.24.1-py3-none-macosx_11_0_arm64.whl

Download URL agent_lsp-0.24.1-py3-none-macosx_11_0_arm64.whl
Size 11.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1a9cb38273abf224af57b9f32643ca6f23ec4f6aeb39b606fd54bb85f59f060b
BLAKE2b-256 checksum
How to use checksums
49e55ea59ade456768469ada95b24514d6ef70e50eabcc4a9f7a0cd2dc5e629e
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.24.1-py3-none-macosx_10_12_x86_64.whl

Download URL agent_lsp-0.24.1-py3-none-macosx_10_12_x86_64.whl
Size 12.3 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e42aeaf19da3ab635c1395b636f7be0eabbe770e2d8ce616812ffb2e7aeaed25
BLAKE2b-256 checksum
How to use checksums
17446c9dfd664e32f085ea82e020845550a7f652fda68195cc4ae465c6731f20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for agent-lsp 0.24.1

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.24.1 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