mcp-rocq
RoCQ (Coq Reasoning Server)
Documentation
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
2. Clone this repository:
git clone https://github.com/angrysky56/mcp-rocq.gitcd 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:
3. Install dependencies:
pip install -r requirements.txtUsage
The server provides three main capabilities:
1. Type Checking
{
"tool": "type_check",
"args": {
"term": "",
"expected_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": "",
"tactics": [""],
"use_automation": true
}
}License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is mcp-rocq?
mcp-rocq is RoCQ (Coq Reasoning Server)
How do I install mcp-rocq?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-rocq open source?
Yes — it is hosted on GitHub at https://github.com/angrysky56/mcp-rocq and has 8 stars.
Related MCP tools
A powerful coding agent toolkit providing semantic retrieval and editing capabilities (MCP server & other integrations) Python-based implementation.
Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth! Python-based implementation. Trusted by 11000+ developers.
An official Qdrant Model Context Protocol (MCP) server implementation Python-based implementation. Trusted by 1000+ developers.
A middleware to provide an openAI compatible endpoint that can call MCP tools Python-based implementation. Trusted by 800+ developers.
Shell and coding agent on claude desktop app for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Vibetest MCP - automated QA testing using Browser-Use agents Python-based implementation. Trusted by 500+ developers. Trusted by 500+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP