INSTALL BRAIN

安装 Brain · 让你的 AI 获得投资纪律

Brain 是一个本地运行的 MCP Server,提供 35 个 Skill 工具。 通过两种方式接入:给人类完整部署 · 给 AI AgentMCP 协议。 所有数据本地存储,不上传云端。

5 步把 Brain 装到你的 AI 上

Linux / macOS 终端操作,预计 10 分钟

01

准备环境

需要这两样东西

· Python 3.10+

· DeepSeek API Key(其它 LLM 也可,详见 settings)

02

克隆仓库

把 Brain 源码拉到本地

git clone https://github.com/lj22503/invest-brain
cd invest-brain
03

安装依赖

进入 MCP Server 目录装 Python 包

cd src/mcp_server
pip install -r requirements.txt
04

配置环境变量

填入 LLM API Key

cp .env.example .env
# 编辑 .env,填入:
# DEEPSEEK_API_KEY=sk-xxxxxxxxxxxxxxxx
05

启动 + 连接 Claude Desktop

先启动 MCP Server,再让 Claude Desktop 找到它

5.1 启动 MCP Server
python server.py
5.2 编辑 Claude Desktop 配置文件

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "investbrain": {
      "command": "python",
      "args": ["/你的绝对路径/invest-brain/src/mcp_server/server.py"]
    }
  }
}
5.3 重启 Claude Desktop

Brain 的 35 个工具即出现在 AI 可用工具列表。试试在 Claude 里说「用 investbrain 工具记录我的投资想法」。

两条路径

选一条适合你的

协议: MCP (Model Context Protocol) ·传输: stdio / HTTP ·存储: 本地 SQLite

GitHub: lj22503/invest-brain