Skip to main content
Glama

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/rules

    • runPrologQuery: Execute complex logical queries

    • saveSession: Persist session state

    • loadSession: 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 build

Performance:

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

F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

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/adamrybinski/prolog-mcp'

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