mimirwiki.com/wiki/language-server-protocol
rev 54fb594cUpdated 2026-12-04EN · KO · JA · ZH · ES · DE · FR · PT · RU · IT · HI · AR
Concept/Technology and AI

Language Server Protocol (LSP)

Open JSON-RPC protocol standardizing communication between code editors and language servers

Expert review pending
Written automatically from public sources7 sources
View the page in the format AI receives
Summary

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

01

Purpose and Client-Server Decoupling

Government and public records Academic and news Official sites

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

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

02

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

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

03

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

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

04

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

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

05

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
06

Quotable sentences

Each sentence has a source, so you can quote it as it is.
  1. LSP separates code editors (clients) from language analysis processes (servers) using JSON-RPC 2.0 messages, enabling one server to serve multiple editors.145
  2. Microsoft, Red Hat, and Codenvy publicly announced the common Language Server Protocol collaboration on June 27, 2016.6
  3. During initialization, LSP clients and servers exchange capability declarations so both sides know which language features are supported.34
  4. The 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
07

Timeline

  1. Microsoft, Red Hat, and Codenvy announce the Language Server Protocol for cross-editor language tooling.6
  2. LSP 3.17.0 specification release recorded in the official changelog.2
  3. LSP 3.18.0 specification release recorded as the latest official version.13
08

Sources

7 sources

Academic and news

  1. 5
    JSON-RPC 2.0 Specification · JSON-RPC Working Group · published 2013-01-04 · checked 2026-12-04https://www.jsonrpc.org/specification
  2. 7
    clangd - What is clangd? · LLVM Project · published 2026-01-01 · checked 2026-12-04https://clangd.llvm.org/

Official sites

  1. 1
    Official page for Language Server Protocol · Microsoft (GitHub Pages) · published 2026-06-04 · checked 2026-12-04https://microsoft.github.io/language-server-protocol/
  2. 2
    Language 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/
  3. 3
    Language 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/
  4. 4
    Language 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
  5. 6
    A 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
09

Review and writing

review signature

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.

10

Version

SHA-256

54fb594c68c5f5fb3252ce19cd29a233d11497ce55b62ddc37a865f69be05a07

Each edit gives the page a new version number.

Cite this page

Mimirwiki. "Language Server Protocol (LSP)." Version 54fb594c, 2026-12-04. https://mimirwiki.com/wiki/language-server-protocol

Formats for AI
# 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.

Pages that link here