penrose-mcp

penrose-mcp

3.3

A Model Context Protocol (MCP) server for Penrose, enabling the creation of mathematical diagrams through natural language.

The Penrose MCP Server is designed to facilitate the creation of mathematical diagrams using Penrose's domain-specific languages. It leverages the Model Context Protocol to provide a structured approach to defining, describing, and styling mathematical concepts. The server supports three main components: Domain (DSL) for defining mathematical types and relationships, Substance for describing mathematical objects and their relationships, and Style for specifying visual representation rules. This server is an essential tool for researchers and developers working with Penrose to create visually appealing and accurate mathematical diagrams.

Features

  • Domain (DSL): Define mathematical types and relationships.
  • Substance: Describe mathematical objects and their relationships.
  • Style: Specify visual representation rules.
  • MCP Protocol: Implements the official MCP protocol for structured diagram creation.
  • Documentation: Comprehensive resources and examples for server implementation.

Usage with Different Platforms

justfile

bash
# List all available commands
just --list

# View the server architecture
just architecture

# Access MCP specifications
just mcp-spec