MCP.so
登录
L

Leankg MCP Server

@FreePeak

基本信息

分类

其他

传输方式

stdio

作者

FreePeak

提交者

Linh N. Doan

关于 Leankg MCP Server

A local, Rust-based Knowledge Graph MCP server. Cuts AI coding token usage by up to 98% by intelligently querying your codebase instead of sending full files.

Leankg MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "leankg": {
      "command": "leankg",
      "args": [
        "start",
        "--mcp"
      ]
    }
  }
}

Leankg MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is LeanKG?

LeanKG is a local Knowledge Graph powered by Rust and Tree-sitter that indexes your codebase and uses the Model Context Protocol (MCP) to feed your AI assistant only the exact structural context it needs. It is built for developers who want to drastically reduce token usage (up to 98% drop) and avoid sending entire files or repositories to cloud-based AI tools.

How to use LeanKG?

Visit the LeanKG GitHub repository for full installation instructions, benchmarks, and supported languages. After installation, the MCP server exposes tools that your AI assistant can invoke — no additional configuration steps beyond connecting it to an MCP-compatible host (e.g., Claude Desktop, Cursor, Windsurf, OpenCode).

Key features of LeanKG

  • Reduces token usage by up to 98% (from ~10,000+ to ~40 tokens per query).
  • 100% local execution — runs securely on your machine with Rust and CozoDB.
  • Deep code understanding via Graph RAG, including call graphs and circular dependencies.
  • Universal MCP support for any MCP-compatible AI host.
  • Provides tools like analyze_dependencies and extract_signatures.

Use cases of LeanKG

  • Slash API costs when interacting with large codebases in Claude or Cursor.
  • Quickly understand call graphs and dependencies without reading entire files.
  • Extract precise function signatures and types for documentation or refactoring.
  • Avoid leaking proprietary code by keeping indexing entirely local.

常见问题

1

How does LeanKG reduce token usage?

It uses Graph RAG to extract precise function signatures, dependencies, and variables instead of sending entire files or repositories.

2

Is my code ever uploaded to an external server?

No. LeanKG runs entirely on your local machine; your repository is never blindly uploaded.

3

Which AI tools are compatible with LeanKG?

LeanKG supports any MCP-compatible host, including Claude Desktop, Cursor, Windsurf, and OpenCode.

评论

其他 分类下的更多 MCP 服务器