home / mcp / mcp logic mcp server
Provides a self-contained MCP server for first-order logic reasoning using multiple engines.
Configuration
View docs{
"mcpServers": {
"autonull-mcplogic": {
"command": "node",
"args": [
"/path/to/mcplogic/dist/index.js"
]
}
}
}You can run a self-contained MCP server that performs first-order logic reasoning using multiple engines. This server lets you construct incremental knowledge bases, prove theorems, find models, and stream progress to clients, all within a single, TypeScript-based runtime with no external binaries required.
You connect to the MCP server through an MCP client, send requests to load premises incrementally, and ask questions such as proofs or models. The server supports session-based reasoning, so you can build up a knowledge base piece by piece, request proofs or models for your current KB, and receive structured errors or progress updates. You can control verbosity to tailor responses for debugging, development, or production usage.
Follow these concrete steps to set up the MCP server locally and prepare it for use.
git clone <repository>
cd mcplogic
npm install
npm run buildConfigure the server in your MCP client by pointing to the local runtime as shown in the example below. This config loads the compiled MCP logic from the build output and executes it via Node.
{
"mcpServers": {
"mcp_logic": {
"command": "node",
"args": ["/path/to/mcplogic/dist/index.js"]
}
}
}Start the server after building to begin responding to client requests. The standard workflow includes installation, building, and launching the server, followed by a health check to ensure engines are available and ready.
npm startIf you encounter issues related to engine availability or memory usage, try the default small-scale configuration first and confirm the build completed successfully. Use the health check command to verify the server and engine readiness, and adjust any resource limits if needed.
For development workflows, you can run tests or a development server with auto-reload as you iterate on the TypeScript source.
npm test
npm run devProve statements using resolution with engine selection
Validate formula syntax with detailed errors
Find finite models satisfying premises
Find counterexamples showing statements don\'t follow
Generate FOL for categorical diagram commutativity
Get axioms for category/functor/monoid/group
Translate natural language to FOL (requires LLM)
Create a new reasoning session with TTL
Add a formula to a session\'s knowledge base
Query the accumulated KB with a goal
Remove a specific premise from the KB
List all premises in a session
Clear all premises (keeps session alive)
Delete a session entirely