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.3.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.3-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leanblueprint_mcp-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 4335bc38bd95cb340743661d07532de8f21ac2bfbf1af1a34b3f3b7cf39613da
MD5 2fdbadad65c54ea503091e26a8aca3dd
BLAKE2b-256 be15f9fddee0a6a807a815a621c83b549758cefd3dfe64c1d1996e3ea080362e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leanblueprint_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 46987e5d11ebcee4558a2fcb58751dd88fd1b7b1c45c4aae432024ddfb84abdd
MD5 bc10bcd50506c5971d67be98b27e5b49
BLAKE2b-256 1663fa257f048c16e59ff5601d6549656353870140c155092540104af27363ef

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