SWI-Prolog
Provides secure execution of SWI-Prolog queries and operations for tools-enabled LLMs and applications via a Model Context Protocol server.
About
The SWI-Prolog server acts as a bridge, empowering large language models and other intelligent agents to directly interact with SWI-Prolog. It supports loading Prolog files, dynamically managing facts and rules, listing symbols, and executing queries with options for both deterministic pagination and true engine backtracking. With its hybrid sandbox security model, it ensures safe Prolog query execution, making it a robust backend for symbolic reasoning and logical problem-solving within AI-driven workflows.
Key Features
- Two query modes: deterministic pagination and true engine backtracking
- 1 GitHub stars
- Comprehensive database operations (assert, retract, dump)
- Secure Prolog query execution with hybrid sandbox security
- API for listing Prolog symbols
- Support for loading Prolog files and dynamic predicate management
Use Cases
- Integrating Prolog's symbolic reasoning capabilities into AI applications
- Enabling LLMs to solve logical problems and puzzles using Prolog
- Providing a controlled and secure environment for executing arbitrary Prolog code from external agents