ultrabrain-mcp
The ultrabrain-mcp server is a local structured reasoning scratchpad and quality gate for AI agents to perform step-by-step deliberation without calling external LLM APIs. It supports:
Start sessions (
ultrabrain_start): Create a named reasoning session for a problem, optionally seeding the first thought and applying a built-in template.Append reasoning steps (
ultrabrain_think): Add canonical thoughts with evidence, assumptions, alternatives, risks, confidence scores, quality metrics, bias detection, and reasoning modes (analytical, critical, socratic, first_principles, etc.).Update existing thoughts (
ultrabrain_update): Strengthen a prior thought with new evidence, confidence adjustments, or metrics.Branch reasoning paths (
ultrabrain_branch): Fork from any prior thought to explore alternative paths in parallel.Merge branches (
ultrabrain_merge): Combine insights from multiple branches via synthesis, best-evidence, or decision strategies.Validate reasoning (
ultrabrain_validate): Check for gaps in evidence, alternatives, verification, bias, and closure readiness.Analyze session quality (
ultrabrain_analyze): Get aggregate quality scores, confidence levels, bias counts, unresolved questions, and recommendations.Review sessions (
ultrabrain_review): Render a session as summary, linear chain, tree, markdown, JSON, or Mermaid diagram.Check status (
ultrabrain_status): Inspect session state, thought count, active branches, and latest quality score.Browse history (
ultrabrain_history): Retrieve recent thought records from a session.Export sessions (
ultrabrain_export): Export as markdown, plain text, or JSON.Get metrics (
ultrabrain_metrics): Retrieve aggregate metrics across sessions, branches, quality, confidence, bias, and reasoning modes.List templates (
ultrabrain_templates): Browse built-in LCV engineering reasoning templates.Reset sessions (
ultrabrain_reset): Clear a single session or all sessions, removing persisted files.
Allows rendering reasoning sessions as Mermaid diagrams, enabling visualization of reasoning chains, branches, and merges.
Click on "Deploy 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., "@ultrabrain-mcp start a reasoning session to analyze the login timeout issue"
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.
ultrabrain-mcp
Install. npm install -g @lcv-ideas-software/ultrabrain-mcp from npmjs.com, or npm install -g @lcv-ideas-software/ultrabrain-mcp --registry=https://npm.pkg.github.com from the GitHub Packages mirror.
Version. This source describes 1.2.17 / v01.02.17. Consult the npm package and GitHub Releases for current publication status. The historical v01.02.16 tag records a failed publication attempt and is preserved; a tag alone is not proof of a published package. See CHANGELOG.md for the changes and recovery context.
First publication started at v01.00.00. Public GitHub tags use the LCV Ideas & Software display convention v00.00.00; npm keeps normal SemVer.
Change History
The version history at a glance:
Release | Package | Date | Notes |
|
| 08/09/2026 | Native governance and four-job publication, retaining the MCP bundle, license notices and clean-consumer checks. See the registry and Releases links above for publication status. |
|
| 08/09/2026 | Failed publication attempt; its existing tag is preserved. Contains the qs update and earlier dependency-inventory and Linear Release changes, carried forward into the 1.2.17 source. |
|
| 18/08/2026 | Quarantines persisted sessions whose branch collections are malformed (values of |
|
| 15/08/2026 | Delegates Trusted Publishing to the official npm client, removes the incompatible manual OIDC exchange probes, and waits for verified npmjs publication before writing to GitHub Packages. |
|
| 15/08/2026 | Tag-only fail-closed canary: adding npm's operation header to the manual exchange still returned |
|
| 15/08/2026 | Tag-only fail-closed canary: the original manual Trusted Publisher preflight stopped before project code or artifact publication; superseded by the official-client recovery in |
|
| 05/08/2026 | Adds the read-only |
|
| 05/08/2026 | Moves GitHub administration authority to a non-deploying protected environment, verifies canonical npm registry routing, and separates urgent CodeQL security updates from routine dependency batches. |
|
| 03/08/2026 | Uses checksum-verified npm 12.0.2, accepts only documented |
|
| 28/07/2026 | Completes the provenance-bound 1.2.5/1.2.6 release recovery, preserves the ambiguous 1.2.4 drafts as audit evidence, bundles MCP SDK 1.30.0, removes Socket/StepSecurity integrations, and makes the SDK license regression version-aware. |
|
| 22/07/2026 | Makes draft-release discovery eventual-consistency-safe by waiting for the exact server-issued release id before any asset upload. |
|
| 22/07/2026 | Makes immutable release reconciliation preserve valid |
|
| 22/07/2026 | Binds draft discovery, mutations, asset transfers, and final verification to the exact immutable release identity. |
|
| 22/07/2026 | Corrects npm tarball publication and adds provenance-safe tag/release recovery while preserving the immutable audit trail. |
|
| 22/07/2026 | Ships a self-contained MCP bundle, clean-consumer verification, and provenance-bound multi-registry publication. |
|
| 21/07/2026 | Security patch: updates transitive |
|
| 17/07/2026 | Retro cross-review follow-up: |
|
| 17/07/2026 | Audit remediation: correctness cluster (persistence, state machine, validation, protocol), a |
|
| 15/05/2026 | 4-gate quality directive compliance: added Biome, aligned CI, applied cosmetic source cleanup, and synchronized SERVER_VERSION to |
|
| 12/05/2026 | Refinements for depth enforcement, active thought-reference validation, update record returns, real markdown merge output, optional file persistence, and expanded smoke coverage. |
|
| 12/05/2026 | First LCV Ultrabrain MCP release: branded tool surface, session lifecycle, branching, merging, validation, analysis, prompts, resources, Pages, CI, and publish automation. |
Related MCP server: Sequential Thinking MCP Server
What It Does
ultrabrain-mcp is an MCP server created by LCV Ideas & Software for local, structured reasoning before engineering work is closed. It gives agents a single branded gate for:
step-by-step reasoning with branches and revisions;
quality metrics, confidence, budget mode, and meta checkpoints;
bias detection and counterexample prompts;
explicit evidence, assumptions, alternatives, risks, and next actions;
session review, validation, metrics, export, prompts, and resources.
The server does not call external LLM APIs. It is a local MCP reasoning scratchpad and quality gate, so source code and private task context stay inside the active MCP host.
Tools
Tool | Purpose |
| Create a reasoning session and optionally seed the first thought. |
| Append the canonical Ultrabrain reasoning step. |
| Strengthen an existing thought with evidence, risks, confidence, or metrics. |
| Create or continue an alternative reasoning path. |
| Merge branch insights into a synthesis, best-evidence path, or decision. |
| Check evidence, alternatives, verification, bias, and closure gaps. |
| Summarize quality, confidence, labels, bias counts, and recommendations. |
| Render a session as summary, linear chain, tree, markdown, JSON, or Mermaid. |
| Show session state, thought count, branches, and latest quality score. |
| Return recent thought records. |
| Export a session as markdown, text, or JSON. |
| Return aggregate session and reasoning metrics. |
| List built-in LCV engineering reasoning templates. |
| Clear one session, or all sessions, removing their persisted files too. |
| Report server version, capabilities, tool surface, data dir, and limits. |
Canonical Example
{
"thought": "Map the failure, list evidence, compare alternatives, and choose the next verification step.",
"thought_number": 1,
"total_thoughts": 4,
"next_thought_needed": true,
"mode": "hybrid",
"step_type": "analysis",
"evidence": ["The failing behavior was reproduced locally."],
"alternatives": ["patch the caller", "patch the shared parser"],
"risks": ["a shared parser change can affect unrelated hosts"],
"next_actions": ["run the focused test", "inspect the shared call path"],
"quality_metrics": {
"logical_consistency": 4,
"completeness": 4,
"objectivity": 4,
"practicality": 5,
"clarity": 5
},
"response_format": "json"
}MCP Configuration
Global npm installation target in the Windows environment used by LCV Ideas & Software:
C:\npm-global\node_modules\@lcv-ideas-software\ultrabrain-mcpUse the MCP server name ultrabrain in host configs:
{
"mcpServers": {
"ultrabrain": {
"command": "ultrabrain-mcp",
"args": []
}
}
}Development checkout and global installation are intentionally separate. Do not create a junction or symlink from C:\npm-global\node_modules\@lcv-ideas-software\ultrabrain-mcp to the workspace checkout.
Optional local persistence can be enabled per host with ULTRABRAIN_STATE_DIR or ULTRABRAIN_PERSIST_DIR. When unset, sessions remain process-local.
Development
npm ci --ignore-scripts --no-audit --no-fund
npm run biome
npm run format:public:check
npm test
npm pack --dry-runThe smoke test starts the built MCP server over stdio, lists tools, verifies the branded ultrabrain_* surface, exercises session start, thought, branch, merge, validation, status, export, prompts, and resources.
Release Automation
This source follows the native package-publication baseline:
CI checks pull requests targeting
mainand pushes tomain, retaining product tests, Biome, public-site formatting, bundle/license verification and clean-consumer coverage.Dependabot checks npm and GitHub Actions every day at 05h (UTC−03:00), including weekends. Minor/patch version updates are grouped; version-update majors remain separate. Security updates have their own group per ecosystem. GitHub native auto-merge is enabled for eligible same-repository Dependabot PRs, including majors, and waits for required checks.
CodeQL uses GitHub Default Setup. Dependency Review, Zizmor and Scorecard remain repository-local official workflows.
Pages builds
site/on pull requests and deploys only frommaintoultrabrain-mcp.lcv.dev.Publishruns on a push tomaintouchingpackage.jsonand publishes only when its version changed. A dependency-only manifest edit without a package-version bump is a no-op.Four jobs run in order: a read-only build packs one tarball; npm publishes it through Trusted Publishing in
npm-production; GitHub Packages publishes the same tarball usingGITHUB_TOKEN; GitHub CLI creates the padded tag and GitHub Release last.Registry publication jobs consume the uploaded tarball without checking out or building product code. There is no separate auto-tag workflow, administrative PAT gate or repository-owned npm bootstrap.
The official Linear Release integration remains separate from package publication. Direct third-party Actions stay pinned to reviewed immutable commit SHAs.
An existing tag is not publication evidence: the release decision refuses to reuse it. For an interrupted run, inspect the registry and Release state before using GitHub's re-run failed jobs command, gh run rerun RUN_ID --failed. Recovery is best effort, not an exactly-once guarantee; a failed job may already have completed an external write. The historical recovery runbook is archived evidence, not the current publication procedure.
Research
See docs/research-matrix.md. Ultrabrain imports ideas only at the architecture level. It does not copy third-party code, text, branding, non-English localization strings, or external model/API behavior.
Repository conventions
License: Apache-2.0. See NOTICE and THIRDPARTY.
Security disclosure: see SECURITY.md.
Code of conduct: see CODE_OF_CONDUCT.md.
Changelog: CHANGELOG.md.
Contributing: see CONTRIBUTING.md.
Sponsorship: see the repo's
Sponsorbutton or central sponsor page.Action pinning: all GitHub Actions are pinned by full SHA per supply-chain hardening baseline.
Code owners: .github/CODEOWNERS.
Links
npmjs.com: https://www.npmjs.com/package/@lcv-ideas-software/ultrabrain-mcp
GitHub: https://github.com/LCV-Ideas-Software/ultrabrain-mcp
License
Apache-2.0. See LICENSE, NOTICE, and THIRDPARTY.
Available Tools
15 toolsultrabrain_analyzeUltrabrain AnalyzeBRead-onlyIdempotent
Analyze quality, confidence, bias counts, label counts, unresolved questions, and recommendations.
Inputs: session_id, response_format.
ultrabrain_branchUltrabrain BranchB
Create or continue an Ultrabrain branch from a prior thought.
Inputs: thought (required), branch_id (required), thought_number (required), total_thoughts (required), +29 more.
ultrabrain_exportUltrabrain ExportARead-onlyIdempotent
Export a session as markdown, text, or JSON.
Inputs: format, session_id.
ultrabrain_historyUltrabrain HistoryARead-onlyIdempotent
Return recent normalized thought records for a session.
Inputs: limit, session_id.
ultrabrain_mergeUltrabrain MergeB
Merge one or more branch insights into a synthesis, best-evidence path, or decision note.
Inputs: branch_ids (required), strategy, session_id, create_thought, +1 more.
ultrabrain_metricsUltrabrain MetricsARead-onlyIdempotent
Return aggregate session, thought, branch, quality, confidence, bias, mode, and step metrics.
Inputs: session_id.
ultrabrain_resetUltrabrain ResetADestructiveIdempotent
Reset one Ultrabrain session, or all sessions when all_sessions is true.
Inputs: session_id, all_sessions.
ultrabrain_reviewUltrabrain ReviewCRead-onlyIdempotent
Render a reasoning session as a summary, linear chain, tree, markdown, or JSON.
Inputs: limit, format, session_id.
ultrabrain_server_infoUltrabrain Server InfoARead-onlyIdempotent
Return runtime information for the local Ultrabrain MCP server, including version, release date, capabilities, tool surface, data directory, and active limits.
Inputs: response_format.
ultrabrain_startUltrabrain StartB
Create a branded LCV Ultrabrain reasoning session and optionally seed the first thought.
Inputs: problem (required), tags, context, template, +4 more.
ultrabrain_statusUltrabrain StatusARead-onlyIdempotent
Return session status, thought count, branches, and latest quality score.
Inputs: session_id.
ultrabrain_templatesUltrabrain TemplatesARead-onlyIdempotent
List LCV Ultrabrain prompt templates for common engineering reasoning workflows.
Inputs: no named parameters.
ultrabrain_thinkUltrabrain ThinkA
Canonical LCV reasoning gate for code work, branching, revisions, quality metrics, bias checks, confidence, and meta checkpoints. Protocol: state evidence and assumptions before conclusions; set step_type honestly (analysis, hypothesis, verification, conclusion...); attach evidence[] for any factual claim; branch when a materially different path exists and revise when an earlier step was wrong; adjust total_thoughts when scope changes instead of forcing a fit; only set next_thought_needed to false once a verification step has checked the conclusion. Close each step by asking: what am I missing or need to reconsider?
Inputs: thought (required), thought_number (required), total_thoughts (required), next_thought_needed (required), +29 more.
ultrabrain_updateUltrabrain UpdateBDestructive
Update an existing thought with stronger evidence, confidence, risks, actions, or quality metrics.
Inputs: thought_number (required), tags, risks, thought, +10 more.
ultrabrain_validateUltrabrain ValidateBRead-onlyIdempotent
Check a reasoning session for evidence, alternatives, verification, bias, and closure gaps.
Inputs: strict, session_id, response_format.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
The tools share a common session/thought subject and the analytics/reporting cluster (metrics, analyze, validate, status, review, export) overlaps in what it returns. Descriptions do help, but an agent could easily pick the wrong inspection tool for a given task.
All tools consistently share the ultrabrain_ prefix and use snake_case, creating a predictable surface. However, the suffixes mix bare verbs (think, merge, validate) with nouns (metrics, history, status), so it is not a strict verb_noun pattern.
Fifteen tools is at the high end of a reasonable scope for a reasoning-session server. Most tools serve a distinct lifecycle purpose, though the analytics/reporting cluster could be consolidated without losing much capability.
The toolset covers session creation, thought progression, branching, merging, validation, analysis, export, and reset. Minor gaps exist, such as no obvious way to list all available sessions or a dedicated delete operation, but reset and server_info partially compensate.
Maintenance
Related MCP Connectors
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Stateless agentic tools over MCP: concept extraction, long-context, knowledge graph, planning.
An MCP gateway for teams deploying AI tools at scale to employee-facing and headless agents.
MCP-Native LLM Orchestration Agent
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceMCP server for structured reasoning with cognitive trap detection, verification, and context compression541 npm1-
- AlicenseAqualityDmaintenanceA structured problem-solving MCP server that breaks down complex tasks into sequential steps, supports iterative refinement and branching, and helps maintain context and explore alternative reasoning paths.141MIT
- AlicenseAqualityCmaintenanceStructured reasoning MCP server that decomposes problems into atomic steps (premise, reasoning, hypothesis, verification, conclusion) with confidence scoring, live visualization, and approval feedback.396MIT
- FlicenseAqualityDmaintenanceA structured reasoning and problem-solving MCP server that helps track step-by-step analysis with confidence levels, branching, and revisions, ideal for complex multi-step tasks like code optimization and debugging.1-