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.0.tar.gz (14.1 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.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: leanblueprint_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 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.0.tar.gz
Algorithm Hash digest
SHA256 021a74f4f8eb14625a5195d789ea008db99094f8ec96a1eed3e79fbb229408cd
MD5 b6e9e1f776878803b2d6af21a07f4e73
BLAKE2b-256 522ec2c768e9b4a32ef9ef7bef81a1c03ff550fd686fc5fb2f67bc4f44103dfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for leanblueprint_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 281a37b5a0313d33e60149deb05952dd5fab2d5ffbab46e89c7e8cac1288dc0b
MD5 c8d1bcc3410fa0c1132dd4da50cb8dc8
BLAKE2b-256 90db8f35e12d07b840c2517015a03f7ab59d916292ef0f08e4708f4edd7cdb78

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