
Advanced Reasoning MCP Server
An MCP server that enhances sequential thinking with meta-cognitive capabilities including confidence tracking, hypothesis testing, and organized memory storage through graph-based libraries and structured JSON documents.
Tools
advanced_reasoning
Advanced cognitive reasoning tool that builds on sequential thinking with meta-cognition, hypothesis testing, and integrated memory. Key Features: - Meta-cognitive assessment and confidence tracking - Hypothesis formulation and testing capabilities - Integrated graph-based memory system - Dynamic reasoning quality evaluation - Session-based context management - Evidence tracking and validation Enhanced Parameters: - thought: Your reasoning step (required) - thoughtNumber/totalThoughts: Sequential tracking (required) - nextThoughtNeeded: Continue flag (required) - confidence: Self-assessment 0.0-1.0 (default: 0.5) - reasoning_quality: 'low'|'medium'|'high' (default: 'medium') - meta_thought: Reflection on your reasoning process - hypothesis: Current working hypothesis - test_plan: How to validate the hypothesis - test_result: Outcome of testing - evidence: Supporting/contradicting evidence - session_id: Link to reasoning session - goal: Overall objective - progress: 0.0-1.0 completion estimate Branching (inherited from sequential thinking): - isRevision/revisesThought: Revise previous thoughts - branchFromThought/branchId: Explore alternatives Use this tool for complex reasoning that benefits from: - Self-reflection and confidence tracking - Systematic hypothesis development - Memory of previous insights - Quality assessment of reasoning
query_reasoning_memory
Query the integrated memory system to find related insights, hypotheses, and evidence. Useful for: - Finding similar problems solved before - Retrieving relevant hypotheses and evidence - Understanding connections between ideas - Building on previous reasoning sessions Parameters: - session_id: The reasoning session to query within (required) - query: What to search for in memory (required) Returns related memories with confidence scores and connection information.
create_memory_library
Create a new named memory library for organized knowledge storage. Enables you to create separate, named memory libraries for different projects, domains, or contexts. Library names must contain only letters, numbers, underscores, and hyphens. Parameters: - library_name: Name for the new library (required) Returns success status and message.
list_memory_libraries
List all available memory libraries with metadata. Shows all existing memory libraries with information about: - Library name - Number of memory nodes - Last modified date Returns organized, searchable library information.
switch_memory_library
Switch to a different memory library. Allows you to switch between different memory libraries for different contexts or projects. Current session state is saved before switching. Parameters: - library_name: Name of the library to switch to (required) Returns success status and message.
search_system_json
Search through system JSON files by query. Parameters: - query: Search query to find matching system JSON files (required) Returns matching files with relevance scores.
get_current_library_info
Get information about the currently active memory library. Shows current library name, number of nodes, sessions, and other metadata. Returns current library information.
create_system_json
Create a new system JSON file for storing coherent detailed searchable data or instructions and workflows for any domain or action. Parameters: - name: Name for the system JSON file (required) - alphanumeric, underscore, hyphen only - domain: Domain or category for the data (required) - description: Description of what this system JSON contains (required) - data: The structured data to store (required) - can be any JSON-serializable object - tags: Optional array of tags for searchability Returns success status and confirmation message.
get_system_json
Retrieve a system JSON file by name. Parameters: - name: Name of the system JSON file to retrieve (required) Returns the complete system JSON data including metadata and content.
list_system_json
List all available system JSON files. Returns list of all system JSON files with their names, domains, and descriptions.
README
Advanced Reasoning MCP Server
An elegant, self-contained MCP server that builds on the sequential thinking pattern with advanced cognitive capabilities including meta-reasoning, hypothesis testing, integrated memory libraries, and structured data storage.
🧠 Features
- Meta-Cognitive Assessment: Confidence tracking and reasoning quality evaluation
- Hypothesis Testing: Systematic formulation, testing, and validation of hypotheses
- Integrated Memory Libraries: Graph-based memory with named library management for different contexts
- SystemJSON Storage: Structured data storage for workflows, instructions, and domain-specific knowledge
- Enhanced Visualization: Rich console output with confidence bars and quality indicators
🚀 Quick Start
Installation
cd /advanced-reasoning-mcp
npm install
npm run build
Usage
MCP Client Integration
Add to your MCP client configuration:
{
"mcpServers": {
"advanced-reasoning": {
"command": "node",
"args": ["/path-to/advanced-reasoning-mcp/build/index.js"]
}
}
}
🔧 Tools
Core Reasoning
advanced_reasoning
Enhanced reasoning with cognitive features:
- All sequential thinking capabilities (branching, revisions, dynamic thought counts)
- Confidence tracking (0.0-1.0)
- Reasoning quality assessment (low/medium/high)
- Meta-cognitive reflection
- Hypothesis formulation and testing
- Evidence tracking and validation
- Memory integration with session context
query_reasoning_memory
Search integrated memory:
- Find related insights and hypotheses
- Discover connections between ideas
- Build on previous reasoning sessions
- Context-aware memory retrieval
Memory Library Management
create_memory_library
Create named memory libraries for organized knowledge:
- Separate libraries for different projects/domains
- Clean architectural separation
- Library name validation
list_memory_libraries
List all available memory libraries:
- Shows library metadata (name, size, last modified)
- Organized, searchable library information
switch_memory_library
Switch between different memory libraries:
- Maintains session state during switches
- Context-aware library management
get_current_library_info
Get information about currently active library:
- Current library name and statistics
- Node count and session information
SystemJSON Structured Storage
create_system_json
Create structured data storage for workflows and instructions:
- Domain categorization
- Searchable content with tags
- JSON-serializable data storage
- Atomic write operations with validation
get_system_json
Retrieve structured data by name:
- Complete data retrieval with metadata
- Timestamp and modification tracking
search_system_json
Search through structured data:
- Relevance scoring and ranking
- Multi-field search capability
list_system_json
List all available structured data files:
- Organized by domain and description
- Complete metadata overview
📝 Example Usage
Basic Advanced Reasoning
// Create a new memory library for this project
const library = await callTool("create_memory_library", {
library_name: "database_optimization"
});
// Advanced reasoning with meta-cognition (no session creation needed)
const result = await callTool("advanced_reasoning", {
thought: "I need to analyze the query execution plan first",
thoughtNumber: 1,
totalThoughts: 5,
nextThoughtNeeded: true,
confidence: 0.8,
reasoning_quality: "high",
meta_thought: "This is a logical first step, high confidence approach",
goal: "Optimize database query performance"
});
Hypothesis Testing
const result = await callTool("advanced_reasoning", {
thought: "The bottleneck appears to be in the JOIN operations",
thoughtNumber: 2,
totalThoughts: 5,
nextThoughtNeeded: true,
confidence: 0.6,
reasoning_quality: "medium",
meta_thought: "Need to verify this with actual data",
hypothesis: "JOIN operations are causing 80% of query time",
test_plan: "Run EXPLAIN ANALYZE and check execution times"
});
Memory Integration
// Query related memories (no session_id needed)
const memories = await callTool("query_reasoning_memory", {
query: "database optimization techniques"
});
SystemJSON Usage
// Store a workflow for reuse
const workflow = await callTool("create_system_json", {
name: "api_testing_workflow",
domain: "software_development",
description: "Complete API testing methodology",
data: {
phases: ["setup", "unit_tests", "integration_tests", "performance_tests"],
tools: ["jest", "supertest", "newman"],
checklist: ["auth validation", "error handling", "rate limiting"]
},
tags: ["testing", "api", "workflow"]
});
// Retrieve the workflow later
const storedWorkflow = await callTool("get_system_json", {
name: "api_testing_workflow"
});
🏗️ Architecture
Built on proven sequential thinking with dual storage systems:
┌─────────────────────────────────────────────────────────────┐
│ MCP Interface │
├─────────────────────────────────────────────────────────────┤
│ Advanced Reasoning Server │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ CognitiveMemory │ │ SystemJSON │ │
│ │ (Graph-Based) │ │ (Document-Based) │ │
│ │ │ │ │ │
│ │ • Named Libraries │ │ • Domain-Indexed │ │
│ │ • Session Context │ │ • Searchable │ │
│ │ • Node Relations │ │ • Tagged Content │ │
│ │ • Hypothesis │ │ • Workflows │ │
│ │ Tracking │ │ • Instructions │ │
│ └──────────────────┘ └──────────────────┘ │
│ │ │ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Meta-Cognitive │ │ Enhanced │ │
│ │ Assessment │ │ Sequential │ │
│ │ │ │ Thinking │ │
│ │ • Confidence │ │ │ │
│ │ • Quality Rating │ │ • Branching │ │
│ │ • Evidence │ │ • Revisions │ │
│ │ • Hypothesis │ │ • Dynamic Counts │ │
│ │ Testing │ │ • Meta-Thoughts │ │
│ └──────────────────┘ └──────────────────┘ │
└─────────────────────────────────────────────────────────────┘
🎯 Advanced Features
Meta-Cognitive Assessment
- Confidence Tracking: Self-assessment of reasoning certainty (0.0-1.0)
- Quality Evaluation: Low/medium/high reasoning quality indicators
- Meta-Thoughts: Reflection on the reasoning process itself
- Evidence Integration: Systematic collection and validation
Hypothesis Testing Framework
- Hypothesis Formulation: Explicit statement of working theories
- Test Planning: Define validation/refutation strategies
- Evidence Tracking: Collect supporting/contradicting evidence
- Result Integration: Incorporate test outcomes into reasoning
Dual Storage Architecture
CognitiveMemory (Graph-Based)
- Named Libraries: Separate contexts for different projects
- Graph Storage: Connected thoughts, hypotheses, evidence
- Session Management: Persistent reasoning contexts
- Memory Queries: Find relevant insights across sessions
- Storage:
memory_data/{library_name}.json
SystemJSON (Document-Based)
- Structured Storage: JSON-serializable workflows and instructions
- Domain Organization: Categorized by domain/purpose
- Search & Discovery: Full-text search with relevance scoring
- Tag System: Flexible content organization
- Storage:
memory_data/system_json/{name}.json
Enhanced Visualization
- Confidence Bars: Visual certainty representation
- Quality Indicators: Color-coded reasoning assessment
- Rich Formatting: Clear structure for complex reasoning
- Meta-Information: Display confidence, quality, connections
🔄 Compatibility
Fully compatible with sequential thinking patterns:
- All branching and revision capabilities preserved
- Dynamic thought count adjustment supported
- Familiar parameter structure with optional enhancements
- Backward compatible with existing sequential thinking workflows
📊 Benefits Over Sequential Thinking
- Self-Awareness: Track confidence and reasoning quality
- Systematic Validation: Explicit hypothesis testing framework
- Organized Memory: Named libraries for different contexts
- Structured Storage: Workflows and instructions as searchable data
- Enhanced Clarity: Rich visualization of reasoning process
- Progress Tracking: Monitor advancement toward defined goals
- Evidence-Based: Systematic collection and evaluation of evidence
🗂️ File Structure
memory_data/
├── cognitive_memory.json # Default reasoning library
├── {library_name}.json # Named reasoning libraries
└── system_json/ # Structured data storage
├── {workflow_name}.json # Workflow definitions
├── {instruction_set}.json # Instruction sets
└── {domain_data}.json # Domain-specific data
📚 Use Cases
Memory Libraries
- Project-specific reasoning: Separate libraries per project
- Domain expertise: Different libraries for different knowledge domains
- Context switching: Clean separation between reasoning contexts
SystemJSON Storage
- Workflow documentation: Store reusable process definitions
- Instruction sets: Step-by-step procedures and guidelines
- Domain knowledge: Structured information for specific fields
- Configuration data: Settings and parameters for different scenarios
This server transforms sequential thinking into a sophisticated dual-storage cognitive reasoning system, providing both graph-based memory for reasoning sessions and structured document storage for workflows and instructions, while maintaining the elegant simplicity that made the original sequential thinking pattern so effective.
Made by angrysky56 (Ty Hall) and Claude
License- MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.