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.2.tar.gz (14.5 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.2-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leanblueprint_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 14.5 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.2.tar.gz
Algorithm Hash digest
SHA256 c9d48779e7797edb25394c9849b2b034baef928f9deb00f108d783d3b71ccba0
MD5 9c3e908ed549fc3036ef1f80d6dbb71b
BLAKE2b-256 5cbef0c9dd765f9a703104238865445d4032ca353499ef3ff5104c2af1b17a79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leanblueprint_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e9b993207a92389c5feab77832707941d5c2bde398d61006fc497a6e3da7ec41
MD5 6b7312dc5000ff046d1d2adfdc544a82
BLAKE2b-256 7d92fcf0aaa1a7e055ce26e53297e815552e8933e72fd940b43faf9a1c8efbd7

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