MCP server · Coding
Prolog Reasoner MCP server
by rikarazome
Let your AI solve tricky logic puzzles and constraint problems using a real Prolog engine.

This is a small helper that gives your AI a real logic engine called Prolog. Your AI is great with words but can get tangled up in puzzles that need careful step-by-step reasoning. When you connect this, your AI can hand those puzzles to Prolog and get a correct answer back.
What is an MCP server? The 30-second version
On its own, your AI can only chat. An MCP server is a small helper program that gives your AI a new skill or a connection to another tool. This one connects your AI to SWI-Prolog, a program built for logic and puzzles. So when you ask a tricky reasoning question, your AI writes it down in Prolog and this helper runs it for you.
What this MCP server does
You ask your AI a logic question, like a scheduling puzzle or a riddle with rules. Your AI writes the facts and rules in Prolog and sends them to this helper. The helper runs them through SWI-Prolog on your own computer and sends the answers back. Your AI then explains the result to you in plain words. You can also save a set of rules once and reuse it by name later.
Click to zoomWhat you can do with it
- Solve constraint puzzles like scheduling or seating arrangements
- Work through multi-step logic riddles
- Check whether a set of rules leads to a contradiction
- Run classic puzzles like the zebra puzzle or knights and knaves
- Save a set of rules once and reuse it by name
- See the exact Prolog code your AI wrote, so you can check it
Try asking your AI
- “Solve this logic puzzle: five people sit in a row, Alice is not next to Bob, Carol is left of Dan...”
- “Use Prolog to figure out a weekly schedule where no one works two shifts in a row”
- “Check if these rules contradict each other: all birds fly, penguins are birds, penguins do not fly”
- “Work out the seating for a dinner where each guest has two dislikes”
What it gives back to you
You get a plain answer in the chat, like a list of solutions or a yes or no. Your AI usually shows the Prolog code it wrote and a short explanation of what it found. If something went wrong, you see the error and a hint about what to fix. You can also ask to see a step-by-step proof for some puzzles.
Before you start
What you need
- Python 3.10 or newer
- SWI-Prolog 9.0 or newer installed on your computer (or use the Docker option)
- The Claude desktop app or another app that supports MCP servers
Good to know
It runs Prolog code on your computer, so only use it with an AI you trust, and saved rule sets are stored in a folder on your machine.
Install it with your AI
Add Prolog Reasoner MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check Prolog Reasoner MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 4,066 MCP servers here for you.
Who it's for
Anyone who asks their AI logic puzzles, planning questions, or rule-based problems and wants a more reliable answer.





