About this project
kotlin‑lib‑mcp is an MCP server that gives AI agents direct access to the real source code of any published Kotlin or Java library. It downloads the library’s sources jar, parses them with the Kotlin Analysis API (standalone K2/FIR mode), and presents structured information through a collection of tools. Key capabilities include fetching library metadata, listing packages and declarations, retrieving resolved API signatures, extracting KDoc summaries, reading raw source files, searching source code, comparing versions, and exploring dependency trees. The server supports multiple installation methods: Docker images for quick deployment, a standalone release zip, and native integration with Claude Code, IntelliJ IDEA, VS Code, and other MCP‑compatible clients. An optional Compose Desktop dashboard provides an in‑process UI for pre‑warming caches and monitoring logs. All fetched artifacts and parsed indexes are cached on disk by group/artifact/version, ensuring offline access after the first request. The implementation is privacy‑focused, storing nothing remotely and only logging to stderr unless explicitly forwarded. This makes it a reliable, self‑hosted tool for developers who need accurate, version‑specific library introspection without relying on scraped documentation sites.
Comments
0 Rating appears after 10 ratings
Sign in to join the discussion.