brain-ecosystem-mcp

brain-ecosystem-mcp is a skill for Claude Code, Codex from mahmoud20138/Tradecraft. It costs 57 tokens per session (37,388 once invoked), scanned C, original, MIT.

A set of three local MCP servers—programs that give an AI agent extra tools—for persistent memory, code analysis, research, and trading experiments.

In plain words
What is it for?
It is for running memory and code-intelligence tools, conducting research with testable hypotheses, and supporting paper trading, strategy testing, and signal learning.
Why use it?
It gives the agent separate systems for remembering errors, investigating questions, and working with trading data across sessions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: PreToolUse hook event, but also reads ~/.codex or $CODEX_HOME. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python tests/test_inmemory.py.

Part of the tradecraft plugin — 58 skills shipped together

Good fit It is for running memory and code-intelligence tools, conducting research with testable hypotheses, and supporting paper trading, strategy testing, and signal learning.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mahmoud20138/Tradecraft
agentmods
npx agentmods add skills/mahmoud20138/tradecraft/brain-ecosystem-mcp

Made for: Claude Code, Codex.

Or install tradecraft, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for brain-ecosystem-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp/github.svg)](https://agentmods.dev/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp)
Your own site
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for brain-ecosystem-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp"><img src="https://agentmods.dev/badge/skills/mahmoud20138/tradecraft/brain-ecosystem-mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 37,388 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.37388
Opus 5 $0.00028 $0.18694
Sonnet 5 $0.00011 $0.07478
Haiku 4.5 $0.00006 $0.03739

Measured 12d ago against content hash b3b7bd94600f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

brain-ecosystem-mcp scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://cdn.jsdelivr.net/gh/ruvnet/claude-flow@main/scripts/install.sh | bash
plugins/tradecraft/skills/brain-ecosystem-mcp/SKILL.md · 4,438 lines

How it starts

The opening of the file, as written. The whole thing — 4,438 lines — stays where its author put it; the contents beside it link to each section on GitHub.

brain-ecosystem-mcp

USE FOR:

  • "self-learning AI brain for Claude Code"
  • "persistent memory MCP server"
  • "autonomous research agent with hypothesis testing"
  • "trading brain with adaptive strategies"
  • "MCP server with 280+ tools"
  • "AI that learns from errors across sessions"
  • "dream mode memory consolidation" tags: [MCP, self-learning, autonomous, Claude-Code, Trading-Brain, error-memory, knowledge-graph, CCXT, persistent-memory, Hebbian] kind: tool category: mcp-integration

What Is Brain Ecosystem?

3 autonomous self-learning AI brains running as MCP servers, designed for Claude Code.

  • Repo: https://github.com/timmeck/brain-ecosystem
  • Install: npm install -g @timmeck/brain && brain setup
  • Architecture: Each brain = separate process, separate SQLite DB, separate port
  • Communication: IPC named pipes between brains (Hebbian synapse network)
  • Dashboard: Command Center at localhost:7790 (13 pages of metrics)

"117+ autonomous engines run in feedback loops — observing, detecting anomalies, forming hypotheses, testing and falsifying them statistically"


Three Brains

Brain Port Tools Specialty
Brain 7777-7778 280 Error memory, code intelligence, autonomous research
Trading Brain 7779-7780 181 Adaptive trading, paper trading, signal learning, backtesting
Marketing Brain 7781-7782 177 Content strategy, cross-platform optimization
Command Center 7790 Unified dashboard, 13 monitoring pages

Installation

# Main brain
npm install -g @timmeck/brain
brain setup        # configures Claude Code MCP automatically

# Trading brain
npm install -g @timmeck/trading-brain
trading setup

# Marketing brain
npm install -g @timmeck/marketing-brain
marketing setup

For Cursor/Windsurf/Cline (HTTP/SSE):

{
  "mcpServers": {
    "brain": {
      "url": "http://localhost:7778/sse"
    }
  }
}

Read the full file on GitHub · 4,438 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 4,438 lines · 0 tokens per session scan C b3b7bd94600f

Subscribe to this mod's changes

brain-ecosystem-mcp is a skill published in the GitHub repository mahmoud20138/Tradecraft (15 stars, last pushed 4mo ago), licensed MIT. It adds 57 tokens to every session and 37,388 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

self-improve

Extract lessons from the current session, or sweep the project's past sessions when asked, and route them to the appropriate knowledge layer (project AGENTS.md, auto memory, existing skills, or new skills). Use when the user asks to "self-improve", "distill this session", "distill past sessions", "sweep past…

tobihagemann/turbo · 125 tokens

recall-reasoning

Recall the reasoning behind a past change by locating the Claude Code transcript that produced it. Use when the user asks to "recall reasoning", "find reasoning", "look up reasoning", "recall implementation reasoning", "find the rationale", "why did I do X", "recall from transcripts", or "find the transcript for this…

tobihagemann/turbo · 76 tokens

install-memu

Install or uninstall memU for whatever agent you are — identify your host, print its packaged guide, and follow it to wire (or unwire) both seams (record and inject). Use when the user asks to install, set up, integrate, remove, or uninstall memU.

NevaMind-AI/memU · 61 tokens

agent-wiki

Incremental LLM-friendly wiki generator for Obsidian note vaults. Use when: (1) Building wiki from notes, (2) Ingesting notes to wiki, (3) Obsidian LLM wiki, (4) Incremental knowledge base management. Triggers: 'build wiki from notes', 'ingest notes to wiki', 'Obsidian LLM wiki', 'incremental knowledge base'.

Dianel555/DSkills · 89 tokens

capability-evolver

Self-evolution workflow for the agent. Before substantive work, recall past outcomes from evolution memory; while editing, detect improvement signals; at task end, record the outcome; when reusable, distill or search the EvoMap network for proven genes/capsules. Use when the user starts non-trivial work (a feature, a…

Dianel555/DSkills · 98 tokens

agent-memory-mcp

A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).

lingxling/awesome-skills-cn · 26 tokens