Skip to main content

MCP server for rendering Lean 4 blueprint dependency graphs from structured theorem data.

Project description

leanblueprint-mcp

MCP server for rendering Lean 4 blueprint dependency graphs from structured theorem data.

Works with any MCP-compatible client (Claude Desktop, Cursor, VS Code, Continue, etc.).

Install

pip install leanblueprint-mcp

Or from source:

pip install -e .

Prerequisites

pip install plastex plastexdepgraph leanblueprint
Package Purpose
Python 3.10+ Runtime
plastex LaTeX → HTML compiler
plastexdepgraph Dependency graph generation (DOT → d3-graphviz)
leanblueprint Blueprint LaTeX macros, CSS, Lean declaration tracking

Optional:

Dependency Purpose Install
Lean 4 (elan) .lean code generation + lake build https://lean-lang.org/lean4/doc/setup.html

MCP Client Configuration

Claude Desktop

{
  "mcpServers": {
    "leanblueprint": {
      "command": "python",
      "args": ["-m", "leanblueprint_mcp.server"]
    }
  }
}

Codex / Cursor / Continue

{
  "mcpServers": {
    "leanblueprint": {
      "command": "leanblueprint-mcp"
    }
  }
}

Tools

leanblueprint_render

Takes a JSON description of mathematical theorems, their proofs, and interdependencies, and compiles them into a color-coded interactive HTML dependency graph.

See AGENTS.md for the full input schema and usage examples for LLM agents.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

leanblueprint_mcp-0.1.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

leanblueprint_mcp-0.1.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file leanblueprint_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: leanblueprint_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for leanblueprint_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 730a4a90a98be20bdaad7d2b03c897af35d4c19c1971d3f87b9d321771789639
MD5 fda2dc684a17d40334f6f2b71149644e
BLAKE2b-256 6f906682d32d2a43718cfd746d1bf7690319c3e251bd8b841fdbc68b70868f2e

See more details on using hashes here.

File details

Details for the file leanblueprint_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for leanblueprint_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f319dd61983d81c59d184fe6da733bd81e1b2ce8e6c8b318789d442e35d02415
MD5 4d8ed39430a13462421a5b7fec4d369b
BLAKE2b-256 ca41ccd0dcb10f218e46464728f4a35868a6b19756032bc3de9ea92d60ac80bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page