Galaxy Brain
Galaxy Brain is an MCP server that combines structured reasoning with sequential execution to form a complete cognitive loop for problem-solving.
Sequential Thinking: Start thinking sessions with effort estimates (start_thinking), add incremental thoughts with confidence scores (think), revise previous thoughts when reasoning needs correction (revise), branch to explore alternative approaches (branch), and conclude with final synthesis and confidence assessment (conclude).
Sequential Doing: Execute batches of operations (execute_batch) using services like python, shell, file, and transform, with variable piping ($results[N].path.to.value) to dynamically chain outputs between steps. Configure error handling to stop-on-error or continue.
Bridge (Think → Do): Automatically generate executable action plans from completed thinking sessions (generate_plan) and execute them (execute_plan), converting high-level reasoning into concrete operations.
Complete Cognitive Loop: Use think_and_do to perform structured reasoning and execute operations in a single call, streamlining the entire thought-to-action process.
Management & Introspection: List available services (list_services), retrieve and list thinking sessions (get_session, list_sessions) and action plans (get_plan, list_plans).
Configuration: Customize limits for thoughts, operations, timeouts, error handling, and logging levels via JSON config file or environment variables.
Executes Python code and evaluates Python expressions as part of sequential operation pipelines with variable piping between operations.
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., "@Galaxy Brain think_and_do: read config.json, parse as JSON, then count keys"
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.
Galaxy Brain
Think. Do. Done.
Sequential Thinking + Sequential Doing = Complete Cognitive Loop
What is this?
Galaxy Brain is an MCP server that combines two powerful concepts:
Sequential Thinking (from Anthropic's MCP) - structured reasoning with revision and branching
Sequential Doing - batch execution with variable piping between operations
Together they form a complete cognitive loop: think through a problem, convert thoughts to actions, execute, done.
PROBLEM
│
▼
┌─────────────┐
│ THINK │ ← reason step by step
│ │ ← revise if wrong
│ │ ← branch to explore
└──────┬──────┘
│
▼
┌─────────────┐
│ BRIDGE │ ← convert thoughts to operations
└──────┬──────┘
│
▼
┌─────────────┐
│ DO │ ← execute sequentially
│ │ ← pipe results between ops
└──────┬──────┘
│
▼
DONERelated MCP server: Visum Thinker MCP Server
Installation
Quick Install (PowerShell)
git clone https://github.com/For-Sunny/galaxy-brain.git
cd galaxy-brain
.\scripts\install.ps1Quick Install (Bash)
git clone https://github.com/For-Sunny/galaxy-brain.git
cd galaxy-brain
chmod +x scripts/install.sh
./scripts/install.shManual Install
pip install galaxy-brainThen add to your Claude Desktop config (%APPDATA%\Claude\claude_desktop_config.json on Windows):
{
"mcpServers": {
"galaxy-brain": {
"command": "python",
"args": ["-m", "galaxy_brain.server"]
}
}
}Usage
The Galaxy Brain Move: think_and_do
One tool to rule them all:
think_and_do({
"problem": "I need to read a config file, parse it, and count the keys",
"thoughts": [
"First I need to read the config file",
"Then parse it as JSON",
"Finally count the number of keys"
],
"operations": [
{
"service": "file",
"method": "read",
"params": { "path": "config.json" }
},
{
"service": "transform",
"method": "json_parse",
"params": { "content": "$results[0].result.content" }
},
{
"service": "python",
"method": "eval",
"params": { "expression": "len($results[1].result)" }
}
]
})See that $results[0].result.content? That's variable piping - each operation can reference results from previous operations.
Thinking Tools
Start a thinking session and reason step by step:
# Start thinking
start_thinking({
"problem": "How should I refactor this authentication system?",
"initial_estimate": 5
})
# Returns: { "session_id": "think_abc123..." }
# Add thoughts
think({
"session_id": "think_abc123...",
"thought": "The current system uses session cookies...",
"confidence": 0.8
})
# Realize you were wrong? Revise!
revise({
"session_id": "think_abc123...",
"revises_thought": 2,
"revised_content": "Actually, we should use JWTs because...",
"reason": "Stateless is better for our scale"
})
# Want to explore an alternative? Branch!
branch({
"session_id": "think_abc123...",
"branch_from": 3,
"branch_name": "oauth_approach",
"first_thought": "What if we used OAuth2 instead?"
})
# Done thinking
conclude({
"session_id": "think_abc123...",
"conclusion": "We should migrate to JWT with refresh tokens",
"confidence": 0.9
})Doing Tools
Execute operations with variable piping:
execute_batch({
"batch_name": "process_data",
"operations": [
{
"service": "shell",
"method": "run",
"params": { "command": "curl -s https://api.example.com/data" }
},
{
"service": "transform",
"method": "json_parse",
"params": { "content": "$results[0].result.stdout" }
},
{
"service": "file",
"method": "write",
"params": {
"path": "output.json",
"content": "$results[1].result"
}
}
]
})Available Services
Service | Methods | Description |
|
| Run Python code or evaluate expressions |
|
| Execute shell commands |
|
| File operations |
|
| Data transformations |
Bridge Tools
Convert thinking sessions to action plans:
# Generate plan from concluded session
generate_plan({
"session_id": "think_abc123..."
})
# Execute the generated plan
execute_plan({
"plan_id": "plan_xyz789..."
})Variable Piping Syntax
Reference previous results using $results[N].path.to.value:
$results[0] # Full result of operation 0
$results[0].result # The result field
$results[0].result.content # Nested access
$results[1].result.data[0] # Array access (in path format)Variables are resolved before each operation executes, so you can build pipelines:
operations = [
# Op 0: Read a file
{ "service": "file", "method": "read", "params": { "path": "input.txt" } },
# Op 1: Use content from op 0
{ "service": "python", "method": "execute",
"params": { "code": "print(len('$results[0].result.content'))" } },
# Op 2: Use stdout from op 1
{ "service": "file", "method": "write",
"params": { "path": "count.txt", "content": "$results[1].result.stdout" } }
]Configuration
Create galaxy-brain.json in your working directory:
{
"thinking": {
"max_thoughts": 50,
"max_branches": 10,
"max_revisions_per_thought": 5
},
"doing": {
"max_operations": 50,
"default_timeout": 30,
"max_timeout": 300,
"stop_on_error": true
},
"bridge": {
"auto_execute": false,
"validate_before_execute": true
},
"log_level": "INFO"
}Or use environment variables:
GALAXY_BRAIN_LOG_LEVELGALAXY_BRAIN_MAX_THOUGHTSGALAXY_BRAIN_MAX_OPERATIONS
Why "Galaxy Brain"?
Because when you combine structured thinking with chained execution, you're operating on a whole other level.
Think. Do. Done. Big brain energy. Cosmic efficiency.
Credits
Sequential Thinking: Based on @modelcontextprotocol/server-sequential-thinking (MIT Licensed)
License
MIT License - Do whatever you want with it.
Think. Do. Done.
Built by CIPS Corp
Website | Store | GitHub | glass@cipscorps.io
Enterprise memory infrastructure for AI systems: CASCADE Enterprise, PyTorch Memory, Hebbian Mind, and the full CIPS Stack.
Copyright (c) 2025-2026 C.I.P.S. LLC
Available Tools
15 toolsbranchA
Create a new branch to explore an alternative approach. Useful when you want to try a different direction without losing your current train of thought.
Inputs: session_id (required), branch_from (required), branch_name, first_thought.
concludeA
Conclude a thinking session with a final synthesis. Call this when you've finished reasoning through the problem.
Inputs: session_id (required), conclusion (required), confidence.
execute_batchA
Execute a batch of operations sequentially with variable piping. Use $results[N].path.to.value to reference previous results. Available services: python, shell, file, transform.
Inputs: operations (required), batch_name, stop_on_error.
execute_planC
Execute a generated action plan
Inputs: plan_id (required), force.
execute_singleB
Execute a single operation (convenience wrapper for execute_batch)
Inputs: service (required), method (required), params.
generate_planC
Generate an action plan from a completed thinking session. Converts thoughts into executable operations.
Inputs: session_id (required), operations.
get_planC
Get a plan by ID
Inputs: plan_id (required).
get_sessionC
Get the current state of a thinking session
Inputs: session_id (required).
list_plansB
List all action plans
Inputs: no named parameters.
list_servicesB
List available services and their methods for execute_batch
Inputs: no named parameters.
list_sessionsC
List all thinking sessions
Inputs: include_completed.
reviseA
Revise a previous thought in a thinking session. Use when you realize an earlier thought was wrong or incomplete.
Inputs: session_id (required), revises_thought (required), revised_content (required), reason.
start_thinkingA
Start a new thinking session to reason through a problem step by step. Returns a session_id to use with other thinking tools.
Inputs: problem (required), initial_estimate.
thinkA
Add a thought to a thinking session. Use this to reason through a problem step by step. Set next_thought_needed=false when done.
Inputs: session_id (required), thought (required), confidence, next_thought_needed.
think_and_doC
Complete cognitive loop in one call: think through a problem, then execute operations. The ultimate galaxy brain move.
Inputs: problem (required), thoughts (required), operations (required), execute.
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 have clear distinctions in some areas, such as thinking session management (start_thinking, think, revise, conclude) and plan execution (execute_batch, execute_single, execute_plan). However, there is overlap between execute_batch and execute_single (with execute_single described as a convenience wrapper for execute_batch), and think_and_do combines thinking and execution, which could cause confusion with the separate think and execute tools. The descriptions help clarify, but some ambiguity remains in the execution and planning workflows.
Most tools follow a consistent snake_case pattern with descriptive verb_noun naming, such as start_thinking, list_sessions, and generate_plan. The main deviation is 'branch', which uses a single noun without a verb, and 'conclude', which is a verb alone. Overall, the naming is predictable and readable, with only minor inconsistencies.
With 15 tools, the count is well-scoped for the server's purpose of cognitive reasoning and execution. The tools cover a complete workflow from starting a thinking session to generating and executing plans, with each tool serving a distinct role in the process. This number is appropriate and avoids being too thin or heavy for the domain.
The tool surface provides comprehensive coverage for the cognitive reasoning domain. It includes tools for managing thinking sessions (start, add thoughts, revise, conclude), generating and managing action plans (generate, list, get), and executing operations (single, batch, plan). There are no obvious gaps, and the tools support a full lifecycle from problem analysis to execution without dead ends.
Related MCP Connectors
Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.
Design, save, and run outcome-aligned AI workflows and verifiers, with reliable image output.
AI work orchestration for plans, tasks, teams, and coding-agent dispatch.
Design, build and run teams of AI agents with checked handoffs between them.
Related MCP Servers
- AlicenseAqualityFmaintenanceAn enhanced sequential thinking tool optimized for programming tasks that helps break down complex coding problems into structured, self-auditing thought steps with branching and revision capabilities.176 npm257MIT
- AlicenseBqualityNot gradedmaintenanceProvides structured sequential thinking capabilities for AI assistants to break down complex problems into manageable steps, revise thoughts, and explore alternative reasoning paths.29-
- AlicenseAqualityDmaintenanceEnables structured, step-by-step problem-solving with dynamic revision and branching capabilities. Supports breaking down complex problems into manageable steps while allowing course corrections and alternative reasoning paths.11MIT
- AlicenseNot gradedqualityDmaintenanceProvides 30+ unified reasoning operations including systematic thinking, mental models, debugging approaches, statistical analysis, interactive notebooks, and advanced problem-solving frameworks for enhanced decision-making and complex reasoning tasks.53MIT