Skip to main content
Glama
MAXential Thinking MCP

MAXential Thinking MCP

by BAM-DevCrew

MAXential Thinking MCP

A structured, persistent reasoning workspace for AI. Provides 20 tools for building thought chains, exploring alternatives through branching, revising earlier thinking, searching reasoning history, and persisting sessions across context window resets and server restarts.

AI's built-in reasoning is ephemeral — when context windows fill, thinking gets compressed or lost. Complex problems need exploration of multiple approaches, backtracking when paths fail, and the ability to resume where you left off. MAXential externalizes reasoning into a workspace that persists, branches, and survives.

Origin

Forked from Anthropic's sequential-thinking MCP server, which provided a single tool with 9 parameters. Its schema included branching parameters (branch_from_thought, branch_id) but had no tools to create, switch, or manage branches — the parameters were effectively inert.

MAXential replaced that single tool entirely and built 20 purpose-specific tools across three releases:

Version

What was built

v2.0

Replaced the single tool with 11 focused tools: core thinking (think, revise, complete), full branch management (branch, switch_branch, list_branches, get_branch, close_branch, merge_branch), and navigation (get_thought, get_history)

v2.2

Added 5 organization tools: tag, search, export, visualize, reset

v2.3

Added 4 session persistence tools with SQLite storage: session_save, session_load, session_list, session_summary

Related MCP server: Engram

Tools

Core Thinking

Tool

What it does

think

Add a thought to the reasoning chain. Thoughts are numbered and persisted automatically.

revise

Revise a previous thought when earlier thinking was flawed or incomplete. The original is preserved with revision history.

complete

Mark the thinking chain complete with a final conclusion.

reset

Clear the current session and start fresh.

Branching

Tool

What it does

branch

Create a new reasoning branch to explore an alternative path without losing the main thread.

switch_branch

Switch context to a different branch, or back to main.

list_branches

List all branches with their status and thought counts.

get_branch

Retrieve complete details of a specific branch.

close_branch

Close a branch with an optional conclusion.

merge_branch

Merge insights from a branch back into main. Strategies: conclusion_only, full_integration, summary.

Navigation

Tool

What it does

get_thought

Retrieve a specific thought by its number.

get_history

Get thought history, optionally filtered by branch.

Organization

Tool

What it does

tag

Add or remove semantic tags on a thought (e.g., hypothesis, evidence, decision, finding).

search

Search thoughts by content text or by tags.

export

Export the thinking chain as markdown or JSON.

visualize

Generate ASCII or Mermaid diagrams of the thought structure and branches.

Session Persistence

Tool

What it does

session_save

Name and describe the current session for later retrieval.

session_load

Restore a saved session — all thoughts, branches, and tags are loaded back into memory.

session_list

Browse available sessions, most recently updated first.

session_summary

Generate a compressed summary of a session for token-efficient context loading.

Sessions are automatically persisted to SQLite as you work. Every think, branch, tag, and revise call writes through to disk in real time. Sessions survive server restarts, context window resets, and new conversations — pick up where you left off.

What the original provides vs. what MAXential provides

Capability

Anthropic sequential-thinking

MAXential Thinking

Interface

1 tool, 9 parameters

20 focused tools

Branching

Parameters in schema, no implementation

Full lifecycle: create, switch, list, inspect, merge, close

Revision

Not supported

Revise any thought, original preserved with history

Persistence

None — lost on server restart

SQLite — survives restarts, context resets, new conversations

Tagging

Not supported

Semantic tags on any thought

Search

Not supported

Search by content or tags

Export

Not supported

Markdown, JSON, Mermaid diagrams, ASCII visualization

Navigation

Not supported

Retrieve any thought by number, browse filtered history

Browsing session history

Session data is stored in a standard SQLite database at .maxential/thinking.db. There are several ways to browse past reasoning sessions:

Through the tools themselves — ask AI to use session_list to browse sessions, session_load to restore one, or session_summary for a compressed overview. AI can format, search, and summarize session content conversationally.

With a SQLite browser — open .maxential/thinking.db in any SQLite viewer (VS Code/VSCodium extensions, DB Browser for SQLite, or similar). The schema is straightforward:

Table

Contains

sessions

Session ID, name, description, status, timestamps

thoughts

Every thought with its number, content, branch, revision links

branches

Branch metadata, status, conclusions, merge history

tags

Semantic tags attached to thoughts

From the terminal:

sqlite3 .maxential/thinking.db "SELECT name, status, datetime(created_at/1000, 'unixepoch', 'localtime') as created FROM sessions ORDER BY updated_at DESC LIMIT 10;"

Installation

Claude Desktop / Claude Code

Add to your MCP configuration:

Claude Desktop config location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "maxential-thinking": {
      "command": "npx",
      "args": ["-y", "@bam-devcrew/maxential-thinking-mcp"]
    }
  }
}

From source

git clone https://github.com/BAM-DevCrew/MAXential-Thinking-MCP.git
cd MAXential-Thinking-MCP
npm install
npm run build

Then configure:

{
  "mcpServers": {
    "maxential-thinking": {
      "command": "node",
      "args": ["/path/to/MAXential-Thinking-MCP/dist/src/index.js"]
    }
  }
}

Configuration

Persistence

Session data is stored in SQLite. By default, the database is created at .maxential/thinking.db in the working directory.

{
  "mcpServers": {
    "maxential-thinking": {
      "command": "npx",
      "args": ["-y", "@bam-devcrew/maxential-thinking-mcp"],
      "env": {
        "MAXENTIAL_DB_PATH": "/path/to/your/thinking.db"
      }
    }
  }
}

MAXENTIAL_DB_PATH value

Behavior

(not set)

.maxential/thinking.db in working directory

/path/to/file.db

Use explicit file path

:memory:

In-memory only — no persistence across restarts

If SQLite initialization fails (permissions, native module issues), the server falls back to in-memory mode automatically — it never crashes.

Add .maxential/ to your project's .gitignore to keep session data out of version control.

Logging

{
  "mcpServers": {
    "maxential-thinking": {
      "command": "npx",
      "args": ["-y", "@bam-devcrew/maxential-thinking-mcp"],
      "env": {
        "MAXENTIAL_LOG_FILE": "/path/to/error.log"
      }
    }
  }
}

Usage

You don't call these tools directly — you ask your AI to use MAXential thinking, and it calls the tools as part of its reasoning. Here are examples of what that looks like in practice.

Working through a decision:

use maxential thinking for this - should we use REST or GraphQL for the new API?

AI builds a thought chain analyzing the question, branches to explore each approach separately, adds thoughts with tradeoffs, merges the findings, and reaches a conclusion. The entire reasoning process is numbered, structured, and persisted.

Exploring multiple approaches:

think through the auth redesign using maxential - I want to see branches for JWT, session tokens, and OAuth

AI creates three branches, reasons through each approach independently, then merges the insights back to compare. You can ask it to switch between branches, close dead ends, or dig deeper into a specific path.

Resuming previous thinking:

load up that session where you analyzed our database optimization options

AI browses saved sessions, finds the match, restores it with all thoughts, branches, and tags intact, and continues reasoning from where it left off — even across different conversations.

Reviewing past reasoning:

search your maxential thinking history for anything tagged as a decision

AI searches across the session's tagged thoughts and returns the results. You can also ask it to export the full chain as markdown, or generate a diagram of the thought structure.

Getting a quick summary:

give me a summary of that session - just the key findings, keep it short

AI generates a compressed summary of the session's conclusions, tagged highlights, and branch results — useful for loading context without replaying the full chain.

Development

npm install          # Install dependencies
npm run build        # Build TypeScript
npm run watch        # Watch mode
npm test             # Run tests with coverage
npm run test:unit    # Unit tests only
npm run test:integration  # Integration tests only

License

MIT

Contributing

Issues and PRs welcome at github.com/BAM-DevCrew/MAXential-Thinking-MCP

Available Tools

20 tools
branchA

Create a new reasoning branch and switch to it. Subsequent think calls go to this branch until you switch_branch. Use to explore an alternative approach without affecting the main thread. Each branch maintains its own thought sequence. Persists to SQLite. Use close_branch when a path is exhausted, or merge_branch to bring insights back to main.

Inputs: reason (required), branchId (required).

close_branchA

Close a branch, marking it as no longer active. Optionally include a conclusion summarizing what was learned. Closed branches and their thoughts are preserved and remain readable. Use when a line of reasoning is exhausted or the answer is clear. Cannot be reopened. To bring findings back to main first, use merge_branch instead.

Inputs: branchId (required), conclusion.

completeA

Mark the thinking chain as complete with a final conclusion. Sets the session status to 'complete'. Use when reasoning has reached a definitive answer. The session remains accessible via session_load and session_list. Do not call if you plan to continue thinking — you can always add more thoughts.

Inputs: conclusion (required).

exportA

Export the current session's thinking chain as formatted text. Read-only. Markdown format produces a human-readable document with section headers per thought, branch headings, and tags as inline markers — suitable for handoffs or documentation. JSON format produces machine-parseable output including all thoughts, branches, tags, and metadata. Optionally export a single branch by providing branchId. Default format is markdown. Use when sharing reasoning with humans or other systems.

Inputs: format, branchId.

get_branchA

Retrieve a specific branch's metadata and full thought history. Read-only. Returns: branch ID, origin thought, status (active/closed/merged), conclusion if set, all thoughts in the branch with their numbers and content, and timestamps. Use to deeply inspect a branch's reasoning before deciding to merge, close, or continue it. Use list_branches first to get the branch ID.

Inputs: branchId (required).

get_historyA

Retrieve the thought history for the current active session. Read-only. Returns thoughts in chronological order with their numbers, content, tags, branch assignments, and any revision links. Optionally filter to a specific branch with branchId, or cap results with limit. Use to review the full reasoning chain or to find context before adding the next thought.

Inputs: limit, branchId.

get_thoughtA

Retrieve a specific thought by its number, including any tags and revision history. Read-only. Use to reference or review earlier reasoning without scrolling through the full history.

Inputs: thoughtNumber (required).

list_branchesA

List all reasoning branches in the current session. Read-only. Returns for each branch: branch ID, origin thought number, status (active/closed/merged), conclusion if set, thought count, and timestamps. Use to see what reasoning paths exist before switching, merging, or closing. The main branch is always included. No parameters — operates on the active session.

Inputs: no named parameters.

merge_branchA

Merge findings from a branch back into the main thread as a new thought on main. The branch is marked as merged afterward. Strategies: conclusion_only — adds only the branch conclusion to main; full_integration — adds all branch thoughts to main; summary — generates a condensed summary of the branch on main. Use after a branch has produced useful findings you want on the main thread.

Inputs: branchId (required), strategy (required).

resetA

Clear the in-memory thinking state and start a fresh session. The previous session's data is NOT deleted — it remains in SQLite and can be loaded later with session_load. Destructive to in-memory state only. Returns confirmation. Use when switching to an unrelated problem where carrying the old context would be noise. Requires confirm=true to prevent accidental clearing.

Inputs: confirm (required).

reviseA

Replace a previous thought with updated reasoning. The original thought is preserved in revision history. Use when earlier thinking was wrong, incomplete, or superseded by new information. Persists to SQLite. Do not use to add new thoughts — use think instead.

Inputs: thought (required), revisesThought (required).

session_listA

List previously saved thinking sessions in the SQLite database. Read-only. Returns: session UUID, name, description, status (active/complete/archived), created/updated timestamps, thought count, branch count. Sorted by most recently updated first. Use to find a session UUID before calling session_load or session_summary. Filter by status to find specifically complete or archived work.

Inputs: limit, status.

session_loadA

Restore a previously saved thinking session into memory, replacing the current in-memory state. All thoughts, branches, and tags from the saved session are loaded. The current session's data is not lost — it remains in SQLite and can be loaded later. Use after session_list to find the session UUID. Replaces current working state.

Inputs: id (required).

session_saveA

Name and describe the active thinking session for later retrieval. The session and all its thoughts are already persisted to SQLite automatically — this only adds a human-readable name and optional description. Persists session metadata. Use when you want to find this session later via session_list. Without session_save, the session keeps an auto-generated timestamp name.

Inputs: name (required), description.

session_summaryA

Generate a compressed text summary of a saved session for token-efficient context loading. Read-only. Returns: session metadata, key findings extracted from conclusions and tagged thoughts, branch results, and final conclusion. Use when you want context from a previous session without loading the full thought history. For full restoration use session_load instead. Default summary length is 2000 characters, adjustable via maxLength.

Inputs: id (required), maxLength.

switch_branchA

Switch which branch receives new thoughts. Omit branchId to return to main. After switching, all think and revise calls apply to the active branch. Read-only tools (get_thought, search, get_history) can access any branch regardless of which is active. Does not modify any data.

Inputs: branchId.

tagA

Add or remove semantic tags on a thought. Tags are searchable via the search tool. Common tags: hypothesis, evidence, decision, finding, question, risk. Persists to SQLite. At least one of 'add' or 'remove' should be provided.

Inputs: thoughtNumber (required), add, remove.

thinkA

Add a numbered thought to your reasoning chain. Each call persists to SQLite automatically. On first call, a new session is created. Use for any multi-step reasoning — analysis, debugging, design, research. Subsequent thoughts are appended to the active branch (main by default). Do not use for simple, single-step answers.

Inputs: thought (required).

visualizeA

Generate a visual diagram of the thinking chain showing thoughts, branches, branch points, and revisions. Read-only. Returns a single text block ready to display. Mermaid format produces a graph for rendering in GitHub, Obsidian, or markdown documentation. ASCII format produces a plain-text tree for terminal or inline display in conversation. Default format is mermaid. Use to share the reasoning structure or to orient in a long chain. Set showContent=true to include thought preview text in nodes (default false for compactness).

Inputs: format, showContent.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 20 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with detailed descriptions explaining when to use it. Overlapping operations like branch management are partitioned into separate actions (create, switch, close, merge, list, get), preventing confusion.

    Naming Consistency5/5

    All tool names use lowercase with underscores for multi-word names, following either a verb_noun pattern (get_branch, session_list) or an imperative verb (think, revise, complete). No mixing of conventions or unusual patterns.

    Tool Count3/5

    With 20 tools, the server falls into the borderline heavy range (16-25). While each tool is justified by the complexity of managing thoughts, branches, sessions, and metadata, the count is slightly high for a focused reasoning tool.

    Completeness4/5

    The tool set covers core CRUD-like operations for thoughts (add, read, revise) and branches (create, read, close, merge), plus session management. Minor gaps exist: no delete operation for thoughts or sessions, but this aligns with an append-only preservation design.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      A persistent memory server for AI agents that stores structured notes in a local SQLite database with full-text search and graph-based relationships. It features 32 specialized tools for managing long-term context, including version history, automated TTL expiration, and complex filtering.
      12 npm
      MIT