MCP HubMCP Hub
angrysky56

mcp-logic

by: angrysky56

Fully functional AI Logic Calculator utilizing Prover9/Mace4 via Python based Model Context Protocol (MCP-Server)- tool for Windows Claude App etc

20created 13/01/2025
Visit
Python
AI

πŸ“ŒOverview

Purpose: MCP-Logic aims to provide automated reasoning capabilities using Prover9/Mace4 for AI systems, enabling logical theorem proving and model verification.

Overview: MCP-Logic is a server designed to connect AI systems with formal logic, offering an intuitive interface for automated reasoning. It supports complex logical proofs and enhances knowledge validation through rigorous formal verification.

Key Features:

  • Automated Theorem Proving: Integrates seamlessly with Prover9 to provide automated logical proofs.

  • Complex Logical Support: Handles complicated logical formulas and nested proofs, allowing for advanced reasoning tasks.

  • Syntax Validation: Includes built-in validation to ensure logical statements are well-formed and accurate.

  • User-Friendly Interface: Provides a clean MCP server interface for effective interaction and integration with AI applications.

  • Robust Error Handling: Features extensive error logging and handling capabilities to assist in troubleshooting and ensure reliability.


mcp-logic/ β”œβ”€β”€ src/ β”‚ └── mcp_logic/ β”‚ └── server.py # Main MCP server implementation β”œβ”€β”€ tests/ β”‚ β”œβ”€β”€ test_proofs.py # Core functionality tests β”‚ └── test_debug.py # Debug utilities β”œβ”€β”€ Documents/ # Analysis and documentation β”œβ”€β”€ pyproject.toml # Python package config β”œβ”€β”€ setup-script.sh # Setup script (installs LADR & dependencies) β”œβ”€β”€ run-mcp-logic.sh # Docker-based run script (Linux/macOS) β”œβ”€β”€ run-mcp-logic.bat # Docker-based run script (Windows) β”œβ”€β”€ run-mcp-logic-local.sh # Local run script (no Docker) └── README.md # This file


Note: After running setup-script.sh, a "ladr" directory will be created containing the Prover9 binaries, but this directory is not included in the repository itself.

## Development

Run tests:

```bash
uv pip install pytest
uv run pytest