prolog-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@prolog-mcp Load a family tree and find all ancestors of Alice"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Prolog-MCP Server
A neurosymbolic AI server combining Prolog’s symbolic reasoning with Model Context Protocol (MCP) for hybrid AI applications.
Features:
Persistent Prolog session: maintain state between tool calls
Session management: save/load knowledge bases to disk
Four core tools:
loadProgram: Load Prolog predicates/rulesrunPrologQuery: Execute complex logical queriessaveSession: Persist session stateloadSession: Restore previous sessions
Type safety via Zod schema validation for all I/O
WebAssembly runtime: Trealla Prolog in WASI environment
Integration with Cline/Roo/Copilot:
{
"mcpServers": {
"prolog-mcp": {
"command": "node",
"args": [
"prolog-mcp/dist/index.js"
],
"disabled": false,
"alwaysAllow": [
"loadProgram",
"runPrologQuery",
"saveSession",
"loadSession"
],
"timeout": 15
}
}
}Development:
git clone https://github.com/adamrybinski/prolog-mcp
cd prolog-mcp
npm install
npm run buildPerformance:
Operation | Avg. Latency | Memory Usage |
Query Execution | 12ms | 18MB |
Session Save | 45ms | 22MB |
Program Load | 8ms | 15MB |
Acknowledgements:
Built with Trealla Prolog and MCP Protocol
Available Tools
4 toolsloadProgramA
Loads Prolog program definitions that can be queried later
Inputs: program (required).
loadSessionB
Loads a previously saved Prolog session
Inputs: filename (required).
runPrologQueryA
Executes a Trealla Prolog query against loaded definitions
Inputs: query (required).
saveSessionA
Saves the current Prolog session to a file for later loading
Inputs: filename (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools are mostly distinct: loadProgram and loadSession both involve loading, but the former loads program definitions while the latter restores a full session. runPrologQuery and saveSession are clearly separate, and descriptions help disambiguate the two load operations.
All tool names follow a consistent camelCase verb_noun pattern: loadProgram, runPrologQuery, saveSession, loadSession. The repeated 'load' verb is coherent for different loading operations.
Four tools is a well-scoped, compact set for a Prolog server, covering the essential actions without redundancy or bloat.
The core workflow is fully supported: load programs, run queries, and persist/restore sessions. Minor gaps like session reset or program listing are absent, but they are not critical for the primary use case.
Maintenance
Related MCP Connectors
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
MCP server for building and testing AI agents with multi-model experimentation and insights.
One MCP server for the services your AI needs: memory, files, Microsoft 365, kanban and more.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server that enables Large Language Models to interactively create, edit, and solve constraint models using backends like MiniZinc, Z3, PySAT, and Clingo. It bridges natural language with symbolic reasoning for solving complex logical, SAT, SMT, and optimization problems.MIT
- AlicenseAqualityDmaintenanceMCP server that gives small LLMs verified symbolic-math & logic tools.62Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMCP server that gives LLMs access to formal verification via Z3 and SWI-Prolog, plus tree-sitter-based source code analysis. Translates natural language problems into formal logic using a template-based pipeline, verifies results with mathematical certainty, and analyzes call graphs for reachability, dead code, and impact analysis.205 npm219Apache 2.0
- AlicenseBqualityBmaintenanceMCP server for logical reasoning that turns facts into formal proofs using a deterministic inference engine with Prolog.866 PyPI9Apache 2.0