Logic-Relational-MCP (v0.10) Model Context Protocol (MCP) server for Logic::Relational knowledge bases. Expose any Logic::Relational (>= 0.04) program to LLMs (Claude Desktop, Cursor, LM Studio, or custom MCP clients) in a single line of Perl over stdio or HTTP, or launch it directly via the bundled CLI. QUICK START use v5.38; use Logic::Relational::Syntax; use Logic::Relational::MCP; logic HospitalKB { description 'Hospital Staffing & Clinical Duty Roster'; program_version '1.0.0'; predicate role => ( doc => 'Clinical role classification (doctor, nurse, surgeon)', args => ['name', 'title'], ); facts { role('Alice', 'doctor'); role('Bob', 'nurse'); } } # One-line stdio MCP server: Logic::Relational::MCP->serve('HospitalKB'); Or launch a .pm knowledge base directly from the command line: logic-relational-mcp -I ./examples --module HospitalKB logic-relational-mcp -I ./examples --module HospitalKB --http 3000 DYNAMIC KNOWLEDGE BASES Although Logic::Relational::MCP v0.10 is read-only over MCP, backing predicates with Logic::Relational generators (e.g., querying a live SQLite, MariaDB, or PostgreSQL table, or live telemetry/APIs) gives you a live-updating knowledge base automatically—each MCP query evaluates against the latest external data. INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install LICENSE AND COPYRIGHT This software is Copyright (c) 2026 by Matt Johnson. This is free software, licensed under the GNU General Public License, Version 3.