Language Server Protocol (LSP)
Open JSON-RPC protocol standardizing communication between code editors and language servers
The Language Server Protocol (LSP) is a standard JSON-RPC 2.0 protocol created by Microsoft, Red Hat, and Codenvy in 2016 to decouple programming-language tooling from individual code editors and IDEs. By separating the editor (client) from a standalone analysis process (language server) and negotiating capabilities during initialization, a single language server such as clangd can be reused across many editors. Version 3.18 (June 4, 2026) is the latest published specification.
- Initial Announcement
- June 27, 2016 (Microsoft, Red Hat, Codenvy)6
- Message Format
- JSON-RPC 2.05
- Latest Specification
- Version 3.18 (June 4, 2026)1
- Previous Major Spec
- Version 3.17.0 (May 10, 2022)2
- Feature Discovery
- Client-server capability negotiation at init3
- Example Server
- clangd (LLVM C/C++ language server)7
The Language Server Protocol (LSP) is an open communication standard that defines how code editors and IDEs exchange language-intelligence features such as autocomplete, go-to-definition, and find-references with separate language servers.
Also known as LSP, Language Server Protocol
Purpose and Client-Server Decoupling
Before the Language Server Protocol (LSP), adding rich language support such as auto-completion, diagnostics, go-to-definition, and symbol references required building a custom plugin for every combination of M editors and N programming languages.46 Announced on June 27, 2016 by Microsoft, Red Hat, and Codenvy, LSP reduced that M-by-N integration matrix to M clients plus N servers.6
- 4Language Server Extension GuideVisual Studio Code Documentation ↗
- 6A Common Protocol for LanguagesVisual Studio Code Blog ↗
Under LSP, the editor or integrated development environment (IDE) acts as a lightweight client, while language parsing, type checking, and semantic analysis run in a separate language server process written in any language.14
- 1Official page for Language Server ProtocolMicrosoft (GitHub Pages) ↗
- 4Language Server Extension GuideVisual Studio Code Documentation ↗
JSON-RPC 2.0 Messaging and Capability Negotiation
LSP exchanges structured messages formatted according to the JSON-RPC 2.0 specification, including requests, responses, and one-way notifications over streams such as standard input/output or sockets.35
- 3Language Server Protocol Specification - 3.18Microsoft ↗
- 5JSON-RPC 2.0 SpecificationJSON-RPC Working Group ↗
Because not every editor or language server implements every feature, LSP relies on capability negotiation during the initialize handshake. The client declares which UI and protocol features it supports, and the server responds with the exact language capabilities (such as completion, formatting, or semantic tokens) it provides.34
- 3Language Server Protocol Specification - 3.18Microsoft ↗
- 4Language Server Extension GuideVisual Studio Code Documentation ↗
Specification Evolution (3.17 to 3.18)
The official LSP specification is maintained publicly on GitHub Pages by Microsoft.1 Version 3.17.0 was published in the specification changelog on May 10, 2022 and served for several years as the baseline reference for modern editors and servers.2
- 1Official page for Language Server ProtocolMicrosoft (GitHub Pages) ↗
- 2Language Server Protocol Specification - 3.17Microsoft ↗
As of December 4, 2026, the official LSP portal lists version 3.18 as the latest specification, with 3.18.0 dated June 4, 2026 in its changelog.13 The site also notes related work on the Language Server Index Format (LSIF) for precomputed code intelligence.1
- 1Official page for Language Server ProtocolMicrosoft (GitHub Pages) ↗
- 3Language Server Protocol Specification - 3.18Microsoft ↗
Real-World Implementations and Compatibility Notes
Visual Studio Code documents a clean separation between a thin editor extension (client) and an independent language server process.4 A widely deployed example is LLVM's clangd, which provides C and C++ code completion, compile diagnostics, and cross-references to any editor supporting LSP.7
- 4Language Server Extension GuideVisual Studio Code Documentation ↗
- 7clangd - What is clangd?LLVM Project ↗
Because LSP capabilities are optional and evolve across versions, the exact set of supported features depends on the specific editor client and language server release notes rather than protocol compliance alone.34
- 3Language Server Protocol Specification - 3.18Microsoft ↗
- 4Language Server Extension GuideVisual Studio Code Documentation ↗
Frequently asked questions
- Why can one language server be reused across multiple editors?
- LSP standardizes communication between an editor client and a separate language server over JSON-RPC 2.0, so any editor implementing an LSP client can talk to any language server without language-specific editor plugins.145
- How do an editor and a language server know which features are supported?
- During the initialization handshake, the client and server exchange capability objects declaring the exact LSP features each side implements.3
- What is the latest version of the LSP specification?
- As of December 4, 2026, the official Microsoft LSP site lists version 3.18 as the latest specification, with 3.18.0 dated June 4, 2026.13
- What is an example of a widely used LSP language server?
- LLVM's clangd is a prominent open-source language server that provides C and C++ code intelligence to LSP-compatible editors.7
Quotable sentences
LSP separates code editors (clients) from language analysis processes (servers) using JSON-RPC 2.0 messages, enabling one server to serve multiple editors.
145Microsoft, Red Hat, and Codenvy publicly announced the common Language Server Protocol collaboration on June 27, 2016.
6During initialization, LSP clients and servers exchange capability declarations so both sides know which language features are supported.
34The official LSP site lists version 3.18 as the latest specification (3.18.0 dated June 4, 2026), succeeding 3.17.0 (May 10, 2022).
123
Timeline
Sources
Academic and news
- 5JSON-RPC 2.0 Specification · JSON-RPC Working Group · published 2013-01-04 · checked 2026-12-04https://www.jsonrpc.org/specification
- 7clangd - What is clangd? · LLVM Project · published 2026-01-01 · checked 2026-12-04https://clangd.llvm.org/
Official sites
- 1Official page for Language Server Protocol · Microsoft (GitHub Pages) · published 2026-06-04 · checked 2026-12-04https://microsoft.github.io/language-server-protocol/
- 2Language Server Protocol Specification - 3.17 · Microsoft · published 2022-05-10 · checked 2026-12-04https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/
- 3Language Server Protocol Specification - 3.18 · Microsoft · published 2026-06-04 · checked 2026-12-04https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/
- 4Language Server Extension Guide · Visual Studio Code Documentation · published 2026-12-02 · checked 2026-12-04https://code.visualstudio.com/api/language-extensions/language-server-extension-guide
- 6A Common Protocol for Languages · Visual Studio Code Blog · published 2016-06-27 · checked 2026-12-04https://code.visualstudio.com/blogs/2016/06/27/common-language-protocol
Review and writing
Expert review pending
When a credentialed expert reviews this page, the reviewer's name and the review date appear here. (Current version 54fb594c)
How this page was written
Written automatically from the public information in the sources above.
Version
54fb594c68c5f5fb3252ce19cd29a233d11497ce55b62ddc37a865f69be05a07
Each edit gives the page a new version number.
Mimirwiki. "Language Server Protocol (LSP)." Version 54fb594c, 2026-12-04. https://mimirwiki.com/wiki/language-server-protocol
# Markdown curl https://mimirwiki.com/wiki/language-server-protocol.md # JSON-LD, by content negotiation curl -H "Accept: application/ld+json" \ https://mimirwiki.com/wiki/language-server-protocol
Add an extension to the address to get the same content in that format.