Skip to main content
Glama

MCP-RoCQ

MCP-RoCQ (Coq Reasoning Server)

Currently shows tools but Claude can't use it properly for some reason- invalid syntax generally seems the issue but there could be something else.

There may be a better way to set this up with the coq cli or something. Anyone want to try and fix it who knows what they are doing would be great.

MCP-RoCQ is a Model Context Protocol server that provides advanced logical reasoning capabilities through integration with the Coq proof assistant. It enables automated dependent type checking, inductive type definitions, and property proving with both custom tactics and automation.

Features

  • Automated Dependent Type Checking: Verify terms against complex dependent types
  • Inductive Type Definition: Define and automatically verify custom inductive data types
  • Property Proving: Prove logical properties using custom tactics and automation
  • XML Protocol Integration: Reliable structured communication with Coq
  • Rich Error Handling: Detailed feedback for type errors and failed proofs

Installation

  1. Install the Coq Platform 8.19 (2024.10)

Coq is a formal proof management system. It provides a formal language to write mathematical definitions, executable algorithms and theorems together with an environment for semi-interactive development of machine-checked proofs.

https://github.com/coq/platform

  1. Clone this repository:
git clone https://github.com/angrysky56/mcp-rocq.git

cd to the repo

uv venv ./venv/Scripts/activate uv pip install -e .

JSON for the Claude App or mcphost config- set your paths according to how you installed coq and the repository.

"mcp-rocq": { "command": "uv", "args": [ "--directory", "F:/GithubRepos/mcp-rocq", "run", "mcp_rocq", "--coq-path", "F:/Coq-Platform~8.19~2024.10/bin/coqtop.exe", "--lib-path", "F:/Coq-Platform~8.19~2024.10/lib/coq" ] },

This might work- I got it going with uv and most of this could be hallucinatory though:

  1. Install dependencies:
pip install -r requirements.txt

Usage

The server provides three main capabilities:

1. Type Checking

{ "tool": "type_check", "args": { "term": "<term to check>", "expected_type": "<type>", "context": ["relevant", "modules"] } }

2. Inductive Types

{ "tool": "define_inductive", "args": { "name": "Tree", "constructors": [ "Leaf : Tree", "Node : Tree -> Tree -> Tree" ], "verify": true } }

3. Property Proving

{ "tool": "prove_property", "args": { "property": "<statement>", "tactics": ["<tactic sequence>"], "use_automation": true } }

License

This project is licensed under the MIT License - see the LICENSE file for details.

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

MCP-RoCQ는 Coq 증명 지원 도구와 통합되어 XML 프로토콜 통신을 통해 자동화된 종속 유형 검사, 귀납적 유형 정의 및 속성 증명을 지원합니다.

  1. 현재는 도구가 표시되고 있지만, 어떤 이유에서인지 클로드가 도구를 제대로 사용할 수 없습니다. 일반적으로 잘못된 구문이 문제인 듯하지만, 다른 이유가 있을 수도 있습니다.
    1. 특징
    2. 설치
  2. Claude 앱이나 mcphost 구성에 대한 JSON - Coq와 저장소를 설치한 방법에 따라 경로를 설정합니다.
    1. 이게 효과가 있을 수도 있어요. 저는 자외선으로 해봤는데, 대부분은 환각일 수도 있거든요.
      1. 용법
      2. 특허

    Related MCP Servers

    • -
      security
      A
      license
      -
      quality
      MCP-Logic is a server that provides AI systems with automated reasoning capabilities, enabling logical theorem proving and model verification using Prover9/Mace4 through a clean MCP interface.
      Last updated -
      31
      MIT License
      • Linux
      • Apple
    • A
      security
      A
      license
      A
      quality
      Connect your MCP-compatible clients to Onyx AI knowledge bases for enhanced semantic search and chat capabilities. Retrieve relevant context from your documents seamlessly, enabling powerful interactions and comprehensive answers. Streamline knowledge management and improve access to information acr
      Last updated -
      2
      297
      16
      MIT License
      • Apple
    • -
      security
      F
      license
      -
      quality
      An MCP server that uses Groq's API to expose raw chain-of-thought tokens from Qwen's qwq model, enabling LLMs to think step-by-step before responding.
      Last updated -
      11
    • -
      security
      F
      license
      -
      quality
      Provides basic arithmetic operations and advanced mathematical functions through the Model Context Protocol (MCP), with features like calculation history tracking and expression evaluation.
      Last updated -

    View all related MCP servers

    MCP directory API

    We provide all the information about MCP servers via our MCP API.

    curl -X GET 'https://glama.ai/api/mcp/v1/servers/angrysky56/mcp-rocq'

    If you have feedback or need assistance with the MCP directory API, please join our Discord server