Library Context Protocol

LCP Logo

lcp (Library Context Protocol) is primarly a protocol designed to solve the problem of AI agents not having access to up-to-date library documentation, which leads to hallucinations and inaccurate code generation. The LCP SDK provides tools to scan Python packages, extract API information, and generate LCP-compliant JSON manifests. It also includes features for analyzing documentation coverage and generating missing docstrings using AI.

pip install lcp
  • Get Started


    Install LCP and generate your first manifest in 60 seconds.

    Quickstart

  • MCP Server


    Expose LCP manifests to AI agents via the Model Context Protocol.

    MCP Server guide

  • LCP v1 Specification


    Document structure, symbols, signatures, types, and semantics.

    Read the spec