MCP.so
ログイン

MCP Server Logical Solver

@RyanNg1403

基本情報

カテゴリ

その他

トランスポート

stdio

作者

RyanNg1403

MCP Server Logical Solver について

A project that integrates mcp servers for Prover9/Mace4 for a logical reasoning agent

#mcp-server#logical-solver#theorem-proving

MCP Server Logical Solver の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-server-logical-solver": {
      "command": "python",
      "args": [
        "test.py"
      ]
    }
  }
}

MCP Server Logical Solver のツール

ツール一覧はまだありません

この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。

ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。

概要

What is MCP Server Logical Solver?

MCP Server Logical Solver is a logical reasoning system that combines Large Language Models (LLMs) with formal theorem proving through Prover9/Mace4. It processes logical problems in natural language and First‑Order Logic (FOL) to provide automated reasoning and structured explanations.

How to use MCP Server Logical Solver?

Clone the repository, install dependencies with pip install -r requirements.txt, configure a .env file with your model provider and API key, and set up mcp_config.json to point to the MCP‑Logic server. Run a single problem with python test.py or batch process via python main.py input.json output.json.

Key features of MCP Server Logical Solver

  • Two‑stage pipeline: LLM analysis plus Prover9 verification
  • Supports natural language and First‑Order Logic inputs
  • Automatic XOR operation transformation for Prover9 compatibility
  • Batch processing of multiple logical problems
  • JSON‑structured output with explanation and tool usage status
  • Multiple model providers: OpenAI, Anthropic, Gemini, Ollama

Use cases of MCP Server Logical Solver

  • Validating logical conclusions from natural language premises
  • Formal theorem proving with Prover9 and Mace4
  • Automated reasoning for research or educational tasks
  • Generating detailed, step‑by‑step logical explanations

よくある質問

1

How does MCP Server Logical Solver handle “SEARCH FAILED” from Prover9?

When Prover9 cannot find a proof, the system uses LLM‑based analysis to distinguish between a “False” result (premises contradict the conclusion) and an “Uncertain” result (insufficient premises).

2

What FOL syntax is required for inputs?

Inputs must follow Prover9 syntax: use `all` for ∀, `exists` for ∃, `&` for ∧, `|` for ∨, `->` for →, `<->` for ↔, and `-` for ¬. XOR (⊕) is automatically transformed to an equivalent form.

3

What dependencies are needed to run MCP Server Logical Solver?

You must have the MCP‑Logic server installed and running, Python 3, the packages in `requirements.txt`, and an API key for the chosen LLM provider (unless using Ollama).

4

How does the output look?

The system returns a JSON object containing original premises/conclusions (natural language and FOL), the answer (`True`/`False`/`Uncertain`), a detailed explanation, and a `tool_use` boolean indicating whether tool calling succeeded.

5

Can I run MCP Server Logical Solver locally without cloud APIs?

Yes, by setting the model provider to `ollama` in the `.env` file and running a local model; no API key is required for Ollama.

コメント

「その他」の他のコンテンツ