Skip to main content
Glama

ThoughtMCP

by keyurgolani

ThoughtMCP

CI Coverage TypeScript Node.js License

AI that thinks more like humans do.

ThoughtMCP gives AI systems human-like thinking capabilities. Instead of just processing text, it can think systematically, remember experiences, and check its own reasoning quality.

šŸš€ Production Ready: 789 tests, 79.63% coverage, stable API, ready for real-world use.

What Makes It Different?

Most AI systems process text once and respond. ThoughtMCP implements multiple thinking systems inspired by cognitive science:

🧠 Human-Like Thinking

  • Dual-Process Reasoning: Fast intuitive responses (System 1) and careful deliberation (System 2)

  • Multiple Reasoning Modes: Analytical, creative, critical, and synthetic thinking

  • Metacognitive Awareness: Self-monitoring with bias detection and reasoning quality assessment

  • Systematic Problem-Solving: Automatic framework selection (Design Thinking, Scientific Method, Root Cause Analysis, etc.)

šŸ’¾ Sophisticated Memory Systems

  • Episodic Memory: Remembers specific experiences with emotional context

  • Semantic Memory: Stores general knowledge and concepts

  • Memory Management: Smart forgetting, archiving, and consolidation

  • Context-Aware Retrieval: Finds relevant memories based on similarity and associations

šŸ”€ Advanced Problem-Solving

  • Parallel Reasoning: Multiple reasoning streams working simultaneously

  • Problem Decomposition: Breaks complex problems into manageable parts with dependency mapping

  • Framework Selection: Automatically chooses optimal thinking frameworks based on problem type

  • Quality Control: Continuous reasoning validation and improvement suggestions

⚔ Production Ready

  • 789 comprehensive tests with 79.63% coverage

  • Multiple thinking modes for different scenarios

  • Configurable behavior for your specific needs

  • Robust error handling with graceful degradation

Quick Start

1. Install and Setup

Option A: NPX (Recommended - No Installation Required)

# Use directly with npx - no installation needed npx thoughtmcp@latest # Or configure in your MCP client (see configuration examples below)

Option B: Local Development Setup

# Clone the repository git clone https://github.com/keyurgolani/ThoughtMcp.git cd ThoughtMcp # Install dependencies npm install # Build and start the server npm run build npm start # Run comprehensive demo (in another terminal) npm run example:demo # Or run performance benchmarks npm run example:benchmark

šŸ¤– Use in Your AI Environment

ThoughtMCP works with popular AI development environments:

Quick Kiro Setup (Local Development):

{ "mcpServers": { "thoughtmcp": { "command": "node", "args": ["/path/to/ThoughtMcp/dist/index.js"], "env": { "COGNITIVE_DEFAULT_MODE": "balanced", "COGNITIVE_ENABLE_EMOTION": "true" } } } }

Quick Kiro Setup (NPX - Recommended):

{ "mcpServers": { "task-manager": { "command": "npx", "args": ["thoughtmcp@latest"], "env": { "COGNITIVE_DEFAULT_MODE": "balanced", "COGNITIVE_ENABLE_EMOTION": "true", "COGNITIVE_ENABLE_METACOGNITION": "true", "COGNITIVE_ENABLE_PREDICTION": "true", "COGNITIVE_WORKING_MEMORY_CAPACITY": "7", "COGNITIVE_EPISODIC_MEMORY_SIZE": "1000", "COGNITIVE_SEMANTIC_MEMORY_SIZE": "5000", "COGNITIVE_TEMPERATURE": "0.7", "COGNITIVE_TIMEOUT_MS": "30000", "COGNITIVE_BRAIN_DIR": "~/.brain", "LOG_LEVEL": "INFO" }, "disabled": false, "autoApprove": [] } } }

šŸ‘‰ Complete Integration Guide | Environment-Specific Setup

MCP Server Configuration

ThoughtMCP can be configured as an MCP server using environment variables. All configuration options are optional and have sensible defaults.

Environment Variables

Variable

Default

Description

COGNITIVE_DEFAULT_MODE

balanced

Default thinking mode:

intuitive

,

deliberative

,

balanced

,

creative

,

analytical

COGNITIVE_ENABLE_EMOTION

true

Enable emotional processing and somatic markers

COGNITIVE_ENABLE_METACOGNITION

true

Enable self-monitoring and bias detection

COGNITIVE_ENABLE_PREDICTION

true

Enable predictive processing and future state modeling

COGNITIVE_WORKING_MEMORY_CAPACITY

7

Working memory capacity (Miller's 7±2)

COGNITIVE_EPISODIC_MEMORY_SIZE

1000

Maximum episodic memories to store

COGNITIVE_SEMANTIC_MEMORY_SIZE

5000

Maximum semantic concepts to store

COGNITIVE_CONSOLIDATION_INTERVAL

300000

Memory consolidation interval in milliseconds (5 minutes)

COGNITIVE_NOISE_LEVEL

0.1

Neural noise level for stochastic processing (0.0-1.0)

COGNITIVE_TEMPERATURE

0.7

Randomness in neural processing (0.0-2.0)

COGNITIVE_ATTENTION_THRESHOLD

0.3

Attention threshold for sensory processing (0.0-1.0)

COGNITIVE_MAX_REASONING_DEPTH

10

Maximum depth for reasoning chains (1-50)

COGNITIVE_TIMEOUT_MS

30000

Maximum processing time per request (1000-300000ms)

COGNITIVE_MAX_CONCURRENT_SESSIONS

100

Maximum concurrent cognitive sessions

COGNITIVE_CONFIDENCE_THRESHOLD

0.6

Confidence threshold for decision making (0.0-1.0)

COGNITIVE_SYSTEM2_ACTIVATION_THRESHOLD

0.4

Threshold for activating deliberative processing (0.0-1.0)

COGNITIVE_MEMORY_RETRIEVAL_THRESHOLD

0.3

Similarity threshold for memory retrieval (0.0-1.0)

COGNITIVE_BRAIN_DIR

~/.brain

Directory for persistent memory storage

LOG_LEVEL

INFO

Logging level:

DEBUG

,

INFO

,

WARN

,

ERROR

Example Configurations

Kiro IDE Configuration

{ "mcpServers": { "task-manager": { "command": "npx", "args": ["thoughtmcp@latest"], "env": { "COGNITIVE_DEFAULT_MODE": "balanced", "COGNITIVE_ENABLE_EMOTION": "true", "COGNITIVE_ENABLE_METACOGNITION": "true", "COGNITIVE_WORKING_MEMORY_CAPACITY": "7", "COGNITIVE_EPISODIC_MEMORY_SIZE": "1000", "COGNITIVE_SEMANTIC_MEMORY_SIZE": "5000", "COGNITIVE_TEMPERATURE": "0.7", "COGNITIVE_TIMEOUT_MS": "30000", "COGNITIVE_BRAIN_DIR": "~/.brain", "LOG_LEVEL": "INFO" }, "disabled": false, "autoApprove": [] } } }

Claude Desktop Configuration

{ "mcpServers": { "thought": { "command": "npx", "args": ["thoughtmcp@latest"], "env": { "COGNITIVE_DEFAULT_MODE": "analytical", "COGNITIVE_ENABLE_EMOTION": "false", "COGNITIVE_TEMPERATURE": "0.5" } } } }

High-Performance Configuration

{ "mcpServers": { "thought-fast": { "command": "npx", "args": ["thoughtmcp@latest"], "env": { "COGNITIVE_DEFAULT_MODE": "intuitive", "COGNITIVE_WORKING_MEMORY_CAPACITY": "5", "COGNITIVE_TIMEOUT_MS": "10000", "COGNITIVE_TEMPERATURE": "0.3", "LOG_LEVEL": "WARN" } } } }

Creative Mode Configuration

{ "mcpServers": { "thought-creative": { "command": "npx", "args": ["thoughtmcp@latest"], "env": { "COGNITIVE_DEFAULT_MODE": "creative", "COGNITIVE_TEMPERATURE": "1.2", "COGNITIVE_ENABLE_EMOTION": "true", "COGNITIVE_WORKING_MEMORY_CAPACITY": "9" } } } }

2. Try Your First Example

Ask ThoughtMCP to help with a decision:

{ "tool": "think", "arguments": { "input": "I'm trying to decide between two job offers. One pays more but has longer hours, the other has better work-life balance but lower pay. How should I approach this decision?", "mode": "deliberative" } }

What happens:

  • Analyzes your question systematically

  • Considers multiple factors and perspectives

  • Provides structured reasoning with confidence levels

  • Suggests ways to improve the decision-making process

3. Build Knowledge Over Time

Store important insights:

{ "tool": "remember", "arguments": { "content": "When choosing between job offers, work-life balance often matters more than salary for long-term satisfaction", "type": "semantic", "importance": 0.8 } }

Recall relevant knowledge:

{ "tool": "recall", "arguments": { "cue": "job decision work-life balance" } }

The Complete Cognitive Toolkit

🧠 Think - Human-Like Reasoning

Process complex questions using sophisticated cognitive architecture:

  • Dual-Process Thinking: System 1 (intuitive) and System 2 (deliberative) processing

  • Multiple Modes: Intuitive, deliberative, creative, analytical, and balanced approaches

  • Metacognitive Monitoring: Self-assessment with bias detection and quality control

  • Emotional Processing: Somatic markers and emotional context integration

  • Stochastic Neural Processing: Realistic neural noise and enhancement patterns

šŸ’¾ Remember - Build Knowledge

Store experiences and insights with sophisticated memory systems:

  • Episodic Memory: Specific experiences with emotional context and importance weighting

  • Semantic Memory: General knowledge with concept relationships and associations

  • Memory Consolidation: Automatic pattern extraction and knowledge integration

  • Emotional Tagging: Rich emotional context for better recall and decision-making

šŸ” Recall - Intelligent Retrieval

Retrieve past experiences and knowledge with advanced search capabilities:

  • Similarity Matching: Vector-based semantic similarity with activation spreading

  • Context-Aware Search: Considers current situation and emotional state

  • Cross-Memory Integration: Searches both episodic experiences and semantic knowledge

  • Confidence Scoring: Provides reliability metrics for retrieved information

šŸ”¬ Analyze Reasoning - Quality Assurance

Comprehensive reasoning quality assessment and improvement:

  • Bias Detection: Identifies tunnel vision, confirmation bias, and other cognitive errors

  • Logic Validation: Evaluates argument structure and evidence support

  • Confidence Calibration: Assesses certainty levels and suggests evidence gathering

  • Improvement Recommendations: Specific suggestions for better reasoning

šŸŽÆ Analyze Systematically - Framework-Based Problem Solving

Apply proven thinking frameworks automatically:

  • Auto Framework Selection: Chooses optimal approach (Design Thinking, Scientific Method, Root Cause Analysis, etc.)

  • Structured Analysis: Breaks problems into systematic steps with clear methodology

  • Multiple Perspectives: Considers alternative approaches and trade-offs

  • Evidence-Based Recommendations: Provides reasoning for framework choice and confidence levels

šŸ”€ Think Parallel - Multi-Stream Reasoning

Process problems through multiple reasoning streams simultaneously:

  • Analytical Stream: Logical, evidence-based reasoning with systematic evaluation

  • Creative Stream: Innovative approaches with unconventional alternatives

  • Critical Stream: Bias detection, assumption challenging, and quality assessment

  • Synthetic Stream: Integration of perspectives with holistic solution development

  • Real-Time Coordination: Streams share insights, resolve conflicts, and build consensus

🧩 Decompose Problem - Complex Problem Breakdown

Break down complex challenges into manageable, prioritized components:

  • Hierarchical Decomposition: Multi-level problem breakdown with clear structure

  • Dependency Mapping: Identifies relationships and constraints between sub-problems

  • Priority Ranking: Determines optimal execution order based on impact and urgency

  • Critical Path Analysis: Highlights bottlenecks and key dependencies for efficient execution

  • Multiple Strategies: Functional, temporal, stakeholder, and component-based approaches

🧠 Memory Management - Advanced Memory Operations

Sophisticated memory optimization and management capabilities:

  • Memory Analysis: Comprehensive usage analysis with optimization recommendations

  • Smart Forgetting: Selective forgetting of low-importance and rarely-accessed memories

  • Memory Recovery: Advanced recovery of degraded memories using associative cues

  • Policy Management: Configurable forgetting policies with user consent controls

  • Audit Trails: Complete forgetting audit logs with impact assessment and rollback capabilities

šŸŽÆ Analyze Systematically - Framework-Based Problem Solving

Apply proven thinking frameworks automatically:

  • Auto framework selection: Chooses optimal approach (Design Thinking, Scientific Method, Root Cause Analysis, etc.)

  • Structured analysis: Breaks problems into systematic steps

  • Multiple perspectives: Considers alternative approaches

  • Evidence-based recommendations: Provides reasoning for framework choice

šŸ”€ Think Parallel - Multi-Stream Reasoning

Process problems through multiple reasoning streams simultaneously:

  • Analytical stream: Logical, evidence-based reasoning

  • Creative stream: Innovative and unconventional approaches

  • Critical stream: Bias detection and assumption challenging

  • Synthetic stream: Integration and holistic perspective

  • Real-time coordination: Streams share insights and resolve conflicts

🧩 Decompose Problem - Complex Problem Breakdown

Break down complex challenges into manageable components:

  • Hierarchical decomposition: Multi-level problem breakdown

  • Dependency mapping: Identifies relationships between sub-problems

  • Priority ranking: Determines optimal execution order

  • Critical path analysis: Highlights bottlenecks and key dependencies

  • Multiple strategies: Functional, temporal, stakeholder, and component-based approaches

Real-World Examples

See ThoughtMCP in action with practical scenarios:

Each example shows:

  • The real-world problem

  • Step-by-step tool usage

  • How cognitive thinking improves outcomes

  • Lessons you can apply to your own use cases

Documentation

šŸš€ New to ThoughtMCP?

šŸ‘©ā€šŸ’» For Developers

🧠 Understanding the Architecture

šŸ› ļø Contributing

šŸ“š Documentation & Examples

Comprehensive Documentation

Practical Examples

Quick Links

Why Choose ThoughtMCP?

For AI Applications

  • Better Decision Making: Considers multiple perspectives and checks reasoning quality

  • Continuous Learning: Gets smarter over time by remembering experiences

  • Transparency: Shows reasoning process and confidence levels

  • Adaptability: Different thinking modes for different types of problems

For Developers

  • Production Ready: 789 tests, comprehensive error handling, performance monitoring

  • Easy Integration: Standard MCP protocol, clear API, extensive documentation

  • Configurable: Tune behavior for your specific use case and performance needs

  • Open Source: MIT license, active community, extensible architecture

For Researchers

  • Scientifically Grounded: Based on established cognitive science research

  • Comprehensive Implementation: Full dual-process theory, memory systems, metacognition

  • Benchmarked Performance: Validated against cognitive psychology principles

  • Extensible Design: Add new cognitive components and reasoning strategies

Community and Support

  • šŸ“– Documentation: Comprehensive guides from beginner to advanced

  • šŸ’¬ GitHub Discussions: Ask questions and share ideas

  • šŸ› Issues: Report bugs and request features

  • šŸ¤ Contributing: Join our community of contributors

  • šŸ“§ Contact: Reach out to @keyurgolani

Project Status

  • āœ… Stable API: All four cognitive tools fully implemented

  • āœ… Production Ready: 789 tests with 79.63% coverage

  • āœ… Well Documented: Comprehensive documentation for all user levels

  • āœ… Active Development: Regular updates and community contributions

  • āœ… Open Source: MIT license, community-driven development


Ready to give your AI human-like thinking capabilities?

šŸ‘‰ Get Started in 5 Minutes | šŸ“š View Documentation | šŸ¤ Join Community

-
security - not tested
A
license - permissive license
-
quality - not tested

Implements human-like cognitive architecture for enhanced AI reasoning through dual-process thinking, memory systems, emotional processing, and metacognitive monitoring. Enables users to process thoughts with biological-like cognitive processes including intuitive and deliberative reasoning modes.

  1. What Makes It Different?
    1. 🧠 Human-Like Thinking
    2. šŸ’¾ Sophisticated Memory Systems
    3. šŸ”€ Advanced Problem-Solving
    4. ⚔ Production Ready
  2. Quick Start
    1. 1. Install and Setup
    2. šŸ¤– Use in Your AI Environment
  3. MCP Server Configuration
    1. Environment Variables
    2. Example Configurations
    3. 2. Try Your First Example
    4. 3. Build Knowledge Over Time
  4. The Complete Cognitive Toolkit
    1. 🧠 Think - Human-Like Reasoning
    2. šŸ’¾ Remember - Build Knowledge
    3. šŸ” Recall - Intelligent Retrieval
    4. šŸ”¬ Analyze Reasoning - Quality Assurance
    5. šŸŽÆ Analyze Systematically - Framework-Based Problem Solving
    6. šŸ”€ Think Parallel - Multi-Stream Reasoning
    7. 🧩 Decompose Problem - Complex Problem Breakdown
    8. 🧠 Memory Management - Advanced Memory Operations
    9. šŸŽÆ Analyze Systematically - Framework-Based Problem Solving
    10. šŸ”€ Think Parallel - Multi-Stream Reasoning
    11. 🧩 Decompose Problem - Complex Problem Breakdown
  5. Real-World Examples
    1. Documentation
      1. šŸš€ New to ThoughtMCP?
      2. šŸ‘©ā€šŸ’» For Developers
      3. 🧠 Understanding the Architecture
      4. šŸ› ļø Contributing
    2. šŸ“š Documentation & Examples
      1. Comprehensive Documentation
      2. Practical Examples
      3. Quick Links
    3. Why Choose ThoughtMCP?
      1. For AI Applications
      2. For Developers
      3. For Researchers
    4. Community and Support
      1. Project Status

        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/keyurgolani/ThoughtMcp'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server