logic-mcp
Allows configuring Google Gemini as an LLM provider for executing logic primitives and cognitive operations, with support for dynamic model switching.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@logic-mcpinfer conclusion: if A then B, not B, therefore?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Logic MCP Server
Overview
The logic-mcp server is a backend application designed to execute advanced logic primitives and cognitive operations. It leverages the Model Context Protocol (MCP) to provide tools for reasoning, data processing, and interaction with Large Language Models (LLMs). This server forms the core engine for complex task execution and structured thought processing.
It features dynamic LLM configuration, allowing users to switch between different language models and providers (like OpenRouter, Google Gemini, etc.) via API calls or a companion web application. All operations and their relationships are traced and stored in a SQLite database, enabling history reconstruction and logic chain visualization.
This server is intended to be used in conjunction with the Logic MCP Webapp for easier management and interaction.
Related MCP server: verifiable-thinking-mcp
Demonstration: Logic Puzzle Solving
Watch a demonstration of the Logic MCP server attempting to solve the "Passport Pandemonium" logic puzzle:
Features
Model Context Protocol (MCP) Server: Exposes logic operations as tools.
Dynamic LLM Configuration:
Add, activate, and delete LLM provider configurations (e.g., OpenRouter, Gemini).
Server uses the currently active LLM configuration.
Falls back to a default LLM if no user configuration is active.
Logic Primitives: Supports operations like
define,infer,decide,synthesize, etc. (extensible).Database Tracing: All operations and logic chains are stored in a SQLite database for traceability and history.
HTTP API:
Manage LLM configurations (
/api/llm-config).Explore logic chains and operations (
/api/logic-explorer).
Environment Variable Management: Uses a
.envfile for API keys.
Companion Web Application
A web application is available to interact with this server, manage LLM configurations, and explore logic chains:
Repository: Mnehmos/logic-mcp-webapp
Functionality:
View and manage LLM provider configurations.
Activate specific LLM configurations for the server to use.
View executed logic chains and their operations.
Clear LLM configurations and logic chain history.
Getting Started
Prerequisites
Node.js (version recommended by your project, e.g., v18+)
npm or yarn
Installation
Clone the repository:
git clone https://github.com/Mnehmos/logic-mcp.git cd logic-mcpInstall dependencies:
npm install # or # yarn installSet up environment variables:
Copy
.env.exampleto.env(if an example file exists, otherwise create.env).Fill in the required API keys, especially
OPENROUTER_API_KEYfor the default LLM and any other providers you intend to use (e.g.,GEMINI_API_KEY).
OPENROUTER_API_KEY="your_openrouter_key" GEMINI_API_KEY="your_gemini_key" # ... other keys ... HTTP_PORT=3001 # Port for the HTTP API
Running the Server
Compile TypeScript:
npm run build # or # tscStart the server:
npm start # or # node build/index.js
The MCP server will start on stdio, and the HTTP API will be available (default: http://localhost:3001).
API Endpoints
LLM Configurations:
GET, POST, PUT, DELETE /api/llm-configActivate:
PATCH /api/llm-config/:id/activate
Logic Explorer:
GET /api/logic-explorer/chains,GET /api/logic-explorer/chains/:chainId, etc.
Contributing
Contributions are welcome! Please feel free to submit pull requests or open issues.
This README provides a basic overview. Further details on specific primitives, API usage, and advanced configurations will be added as the project evolves.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityFmaintenanceProvide systematic thinking, mental models, and debugging approaches to enhance problem-solving capabilities. Enable structured reasoning and decision-making support for complex problems. Facilitate integration with MCP-compatible clients for advanced cognitive workflows.115
- AlicenseBqualityNot gradedmaintenanceMCP server for structured reasoning with cognitive trap detection, verification, and context compression5411
- AlicenseAqualityDmaintenanceAdvanced cognitive thinking MCP server with DAG-based thought graph, multiple reasoning strategies, metacognition, and self-evaluation. A significant evolution beyond sequential-thinking MCP, providing structured deep reasoning with graph-based thought management.65411MIT
- AlicenseNot gradedqualityCmaintenanceA cognitive optimization engine exposed as an MCP server that amplifies LLM reasoning through self-consistency sampling, MCTS, Dung argumentation, symbolic verification, and measured confidence.MIT
Related MCP Connectors
Reasoning, code, anti-deception, memory harness MCP tools. Stdio or HTTPS api.ejentum.com/mcp
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Shared long-term memory vault for AI agents with 20 MCP tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/mjjalfar/logic-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server