{
  "schemaVersion": 1,
  "slug": "language-server-protocol",
  "locale": "ko",
  "pageClass": "concept",
  "entityType": "DefinedTerm",
  "field": "technology",
  "title": "언어 서버 프로토콜(LSP)",
  "subtitle": "코드 편집기·IDE와 언어 분석 서버 간 통신을 표준화한 JSON-RPC 2.0 기반 규약",
  "aliases": [
    "LSP",
    "Language Server Protocol",
    "언어 서버 프로토콜"
  ],
  "lead": {
    "definition": "언어 서버 프로토콜(Language Server Protocol, LSP)은 코드 편집기나 통합 개발 환경(IDE)이 별도 언어 서버의 자동완성, 정의 이동, 참조 찾기 같은 언어 기능을 호출하도록 정한 개방형 통신 규약이다.",
    "answerSummary": "언어 서버 프로토콜(Language Server Protocol, LSP)은 2016년 마이크로소프트·레드햇·코드엔비(Codenvy)가 발표한 JSON-RPC 2.0 기반 표준 통신 규약이다. 편집기(클라이언트)와 언어 분석 프로세스(서버)를 분리하고 초기화 단계에서 기능 협상(capability negotiation)을 수행함으로써, clangd 같은 단일 언어 서버를 여러 편집기에서 재사용할 수 있게 한다. 2026년 12월 기준 최신 명세는 3.18(2026년 6월 4일)이다.",
    "keyFacts": [
      {
        "label": "최초 발표",
        "value": "2016년 6월 27일(MS·Red Hat·Codenvy)",
        "ref": "s6"
      },
      {
        "label": "메시지 형식",
        "value": "JSON-RPC 2.0",
        "ref": "s5"
      },
      {
        "label": "최신 명세 버전",
        "value": "3.18(2026년 6월 4일 3.18.0)",
        "ref": "s1"
      },
      {
        "label": "이전 주요 버전",
        "value": "3.17.0(2022년 5월 10일)",
        "ref": "s2"
      },
      {
        "label": "기능 확인 방식",
        "value": "초기화 시 클라이언트-서버 기능 협상",
        "ref": "s3"
      },
      {
        "label": "대표 구현체",
        "value": "LLVM clangd(C/C++ 언어 서버)",
        "ref": "s7"
      }
    ]
  },
  "infobox": [
    {
      "label": "분류",
      "value": "개발 도구 통신 프로토콜",
      "ref": "s1"
    },
    {
      "label": "초기 협업 주체",
      "value": "마이크로소프트, 레드햇, 코드엔비",
      "ref": "s6"
    },
    {
      "label": "기반 규격",
      "value": "JSON-RPC 2.0(요청·응답·알림)",
      "ref": "s5"
    },
    {
      "label": "최신 버전",
      "value": "3.18.0(2026-06-04)",
      "ref": "s3"
    },
    {
      "label": "주요 기능",
      "value": "자동완성, 호버, 정의 이동, 참조 찾기",
      "ref": "s4"
    },
    {
      "label": "공식 사이트",
      "value": "microsoft.github.io/language-server-protocol",
      "ref": "s1"
    }
  ],
  "sections": [
    {
      "id": "overview-and-problem",
      "heading": "등장 배경과 클라이언트-서버 분리 구조",
      "bodyMd": "언어 서버 프로토콜(LSP) 이전에는 M개의 편집기에서 N개의 프로그래밍 언어에 자동완성·오류 진단·정의 이동을 제공하려면 M×N개의 개별 플러그인을 구현해야 했다.[^s4][^s6] 2016년 6월 27일 마이크로소프트, 레드햇, 코드엔비가 공동 발표한 LSP는 이를 M개의 클라이언트와 N개의 언어 서버 구현으로 줄였다.[^s6]\n\nLSP 구조에서 편집기나 통합 개발 환경(IDE)은 가벼운 클라이언트 역할을 맡고, 구문 분석과 타입 검사 같은 언어 지능 기능은 독립 프로세스인 언어 서버가 담당한다.[^s1][^s4]"
    },
    {
      "id": "protocol-and-capabilities",
      "heading": "JSON-RPC 2.0 통신과 기능 협상",
      "bodyMd": "LSP 메시지는 JSON-RPC 2.0 명세에 따른 요청(request), 응답(response), 알림(notification) 구조로 주고받는다.[^s3][^s5] 편집기와 언어 서버가 서로 다른 언어로 작성되어도 표준 입출력이나 소켓을 통해 일관된 형식으로 통신할 수 있다.[^s4]\n\n모든 편집기와 서버가 전체 기능을 동일하게 구현하지는 않으므로, 연결 직후 초기화(initialize) 단계에서 양쪽이 지원 기능 목록을 교환하는 기능 협상(capability negotiation)을 거친다. 이를 통해 자동완성, 포맷팅, 시맨틱 토큰 등 실제 사용 가능한 기능 범위가 동적으로 확정된다.[^s3][^s4]"
    },
    {
      "id": "specification-versions",
      "heading": "명세 버전 변천(3.17에서 3.18까지)",
      "bodyMd": "공식 LSP 명세는 마이크로소프트가 운영하는 GitHub Pages 사이트에 공개되어 있다.[^s1] 2022년 5월 10일 변경 이력에 기록된 3.17.0 버전은 다수의 편집기와 언어 서버가 오랫동안 기준으로 삼은 주요 판본이다.[^s2]\n\n2026년 12월 4일 기준 공식 사이트는 3.18을 최신 명세로 안내하며, 변경 이력상 3.18.0 날짜는 2026년 6월 4일이다.[^s1][^s3] 공식 사이트는 사전 인덱싱용 규격인 언어 서버 인덱스 형식(Language Server Index Format, LSIF) 명세도 함께 소개한다.[^s1]"
    },
    {
      "id": "implementations-and-limits",
      "heading": "구현 사례 및 호환성 확인 유의점",
      "bodyMd": "Visual Studio Code 공식 가이드는 편집기 확장(클라이언트)과 독립 언어 서버의 분리 설계를 안내한다.[^s4] 대표적인 공개 구현체로는 C/C++ 코드 자동완성·진단·참조 탐색을 제공하는 LLVM 프로젝트의 clangd가 있다.[^s7]\n\n다만 LSP 기능 상당수가 선택 사항이고 버전에 따라 확장되므로, 특정 편집기나 서버가 어떤 기능을 어느 수준까지 지원하는지는 각 구현체의 릴리스 문서를 별도로 확인해야 한다.[^s3][^s4]"
    }
  ],
  "faqs": [
    {
      "q": "언어 서버 하나를 여러 편집기에서 재사용할 수 있는 이유는 무엇인가요?",
      "a": "편집기(클라이언트)와 언어 분석 프로세스(서버) 사이의 통신을 JSON-RPC 2.0 기반 LSP로 표준화했기 때문에, LSP 클라이언트를 지원하는 편집기라면 별도 언어 플러그인 없이 같은 서버를 연결할 수 있습니다.",
      "refs": [
        "s1",
        "s4",
        "s5"
      ]
    },
    {
      "q": "편집기와 언어 서버가 지원하는 기능은 어떻게 확인하나요?",
      "a": "연결 초기화(initialize) 단계에서 클라이언트와 서버가 각자 지원하는 기능 목록을 주고받는 기능 협상(capability negotiation)으로 확인합니다.",
      "refs": [
        "s3"
      ]
    },
    {
      "q": "현재 LSP 최신 명세 버전은 무엇인가요?",
      "a": "2026년 12월 4일 기준 공식 사이트는 3.18을 최신 명세로 안내하며, 변경 이력상 3.18.0은 2026년 6월 4일입니다.",
      "refs": [
        "s1",
        "s3"
      ]
    },
    {
      "q": "대표적인 LSP 언어 서버 구현 사례는 무엇인가요?",
      "a": "LLVM 프로젝트의 clangd가 대표적이며, LSP를 지원하는 다양한 편집기에 C/C++ 자동완성과 진단 기능을 제공합니다.",
      "refs": [
        "s7"
      ]
    }
  ],
  "claims": [
    {
      "text": "LSP는 편집기(클라이언트)와 언어 분석 서버를 분리해 JSON-RPC 2.0으로 통신함으로써 단일 언어 서버를 여러 편집기에서 재사용할 수 있게 한다.",
      "refs": [
        "s1",
        "s4",
        "s5"
      ]
    },
    {
      "text": "마이크로소프트, 레드햇, 코드엔비는 2016년 6월 27일 LSP 협업을 공식 발표했다.",
      "refs": [
        "s6"
      ]
    },
    {
      "text": "초기화 단계의 기능 협상(capability negotiation)을 통해 클라이언트와 서버가 지원하는 기능 범위를 상호 확인한다.",
      "refs": [
        "s3",
        "s4"
      ]
    },
    {
      "text": "공식 사이트는 3.18(2026년 6월 4일 3.18.0)을 최신 명세로 표시하며, 이전 주요 버전은 3.17.0(2022년 5월 10일)이다.",
      "refs": [
        "s1",
        "s2",
        "s3"
      ]
    }
  ],
  "timeline": [
    {
      "date": "2016-06-27",
      "text": "마이크로소프트·레드햇·코드엔비가 공통 언어 서버 프로토콜 협업을 발표했다.",
      "refs": [
        "s6"
      ]
    },
    {
      "date": "2022-05-10",
      "text": "LSP 3.17.0 명세가 공식 변경 이력에 등재됐다.",
      "refs": [
        "s2"
      ]
    },
    {
      "date": "2026-06-04",
      "text": "LSP 3.18.0 명세가 최신 버전으로 공개됐다.",
      "refs": [
        "s1",
        "s3"
      ]
    }
  ],
  "sources": [
    {
      "key": "s1",
      "url": "https://microsoft.github.io/language-server-protocol/",
      "tier": 3,
      "title": "Official page for Language Server Protocol",
      "publisher": "Microsoft (GitHub Pages)",
      "publishedAt": "2026-06-04",
      "accessedAt": "2026-12-04"
    },
    {
      "key": "s2",
      "url": "https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/",
      "tier": 3,
      "title": "Language Server Protocol Specification - 3.17",
      "publisher": "Microsoft",
      "publishedAt": "2022-05-10",
      "accessedAt": "2026-12-04"
    },
    {
      "key": "s3",
      "url": "https://microsoft.github.io/language-server-protocol/specifications/lsp/3.18/specification/",
      "tier": 3,
      "title": "Language Server Protocol Specification - 3.18",
      "publisher": "Microsoft",
      "publishedAt": "2026-06-04",
      "accessedAt": "2026-12-04"
    },
    {
      "key": "s4",
      "url": "https://code.visualstudio.com/api/language-extensions/language-server-extension-guide",
      "tier": 3,
      "title": "Language Server Extension Guide",
      "publisher": "Visual Studio Code Documentation",
      "publishedAt": "2026-12-02",
      "accessedAt": "2026-12-04"
    },
    {
      "key": "s5",
      "url": "https://www.jsonrpc.org/specification",
      "tier": 2,
      "title": "JSON-RPC 2.0 Specification",
      "publisher": "JSON-RPC Working Group",
      "publishedAt": "2013-01-04",
      "accessedAt": "2026-12-04"
    },
    {
      "key": "s6",
      "url": "https://code.visualstudio.com/blogs/2016/06/27/common-language-protocol",
      "tier": 3,
      "title": "A Common Protocol for Languages",
      "publisher": "Visual Studio Code Blog",
      "publishedAt": "2016-06-27",
      "accessedAt": "2026-12-04"
    },
    {
      "key": "s7",
      "url": "https://clangd.llvm.org/",
      "tier": 2,
      "title": "clangd - What is clangd?",
      "publisher": "LLVM Project",
      "publishedAt": "2026-01-01",
      "accessedAt": "2026-12-04"
    }
  ],
  "links": [
    {
      "predicate": "uses",
      "toSlug": "json-rpc",
      "label": "JSON-RPC"
    },
    {
      "predicate": "related_to",
      "toSlug": "model-context-protocol",
      "label": "Model Context Protocol"
    }
  ],
  "sameAs": [
    "https://microsoft.github.io/language-server-protocol/"
  ],
  "disclaimer": null,
  "status": {
    "review": "awaiting_review",
    "provenance": "prefill",
    "autoWritten": true
  },
  "dateCreated": "2026-12-04",
  "dateModified": "2026-12-04",
  "_meta": {
    "canonicalUrl": "https://mimirwiki.com/ko/wiki/language-server-protocol",
    "revision": {
      "sha256": "144f9004f20c5af9140f1369ee15b8c3794339e9605e89068a77a0c0591b12bd",
      "short": "144f9004",
      "hashedFields": "all fields except status and _meta, RFC 8785 canonical form"
    },
    "formats": {
      "md": "https://mimirwiki.com/ko/wiki/language-server-protocol.md",
      "txt": "https://mimirwiki.com/ko/wiki/language-server-protocol.txt",
      "json": "https://mimirwiki.com/ko/wiki/language-server-protocol.json",
      "jsonld": "https://mimirwiki.com/ko/wiki/language-server-protocol.jsonld"
    },
    "translations": {
      "en": "https://mimirwiki.com/wiki/language-server-protocol",
      "ko": "https://mimirwiki.com/ko/wiki/language-server-protocol",
      "ja": "https://mimirwiki.com/ja/wiki/language-server-protocol",
      "zh": "https://mimirwiki.com/zh/wiki/language-server-protocol",
      "es": "https://mimirwiki.com/es/wiki/language-server-protocol",
      "de": "https://mimirwiki.com/de/wiki/language-server-protocol",
      "fr": "https://mimirwiki.com/fr/wiki/language-server-protocol",
      "pt": "https://mimirwiki.com/pt/wiki/language-server-protocol",
      "ru": "https://mimirwiki.com/ru/wiki/language-server-protocol",
      "it": "https://mimirwiki.com/it/wiki/language-server-protocol",
      "hi": "https://mimirwiki.com/hi/wiki/language-server-protocol",
      "ar": "https://mimirwiki.com/ar/wiki/language-server-protocol"
    }
  }
}
