npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cerebrate-mcp

v5.2.6

Published

Cerebrate 脑虫记忆系统 MCP Server (Node.js) — 团队长期记忆 + 业务画像 + 本地实体化,零依赖

Readme

Cerebrate MCP Server (Node.js)

Cerebrate 脑虫记忆系统的 MCP Server(Node.js 版,零依赖,node >= 16)。

团队长期记忆 + 业务画像 + 本地实体化抽取,供 Claude Code / Codex / Qoder / opencode / Trae 等 AI 客户端通过 Model Context Protocol 接入脑虫服务。

安装(npm 标准方式,执行完即完成安装)

# 全局安装(推荐,一条命令)
npm install -g cerebrate-mcp@latest

# 或免安装直接运行(npx)
npx -y cerebrate-mcp@latest

⚠️ 请务必带 @latestnpx -y cerebrate-mcp(漏写 @latest)会命中本地缓存拿到旧版本。

首次配置(一条命令完成)

cerebrate-mcp setup --url https://<脑虫域名>/cerebrate --token <你的user token>

执行后自动:

  1. 写入 ~/.cerebrate-mcp/cerebrate.env(chmod 600)
  2. 打印各客户端(Claude Code / Codex / stdio)配置片段,复制粘贴即可使用

也支持交互模式:直接运行 cerebrate-mcp setup 按提示输入。

接入到 AI 客户端

Claude Code(HTTP 标准接入,推荐,零本地服务)

claude mcp add --transport http cerebrate https://<脑虫域名>/cerebrate/v1/mcp \
  --header "Authorization: Bearer <你的user token>"

Codex(config.toml)

[mcp_servers.cerebrate]
url = "https://<脑虫域名>/cerebrate/v1/mcp"

token 走环境变量 CEREBRATE_SERVER_TOKEN

stdio 客户端(Qoder / opencode / Trae)

# 命令
npx -y cerebrate-mcp@latest

# 环境变量
CEREBRATE_SERVER_URL=https://<脑虫域名>/cerebrate
CEREBRATE_SERVER_TOKEN=<你的user token>

配置优先级

环境变量 > ~/.cerebrate-mcp/cerebrate.env > 默认(http://127.0.0.1:8765)。

可用环境变量:

  • CEREBRATE_SERVER_URL — 脑虫服务地址
  • CEREBRATE_SERVER_TOKEN — Bearer 鉴权 token(唯一凭证)
  • CEREBRATE_MCP_ENV — 自定义 env 文件路径(默认 ~/.cerebrate-mcp/cerebrate.env
  • CEREBRATE_TOKEN_FILE — 登录 token 持久化文件(默认 ~/.cerebrate/token

命令行

cerebrate-mcp                 # 作为 MCP server(stdio)运行
cerebrate-mcp setup           # 首次配置(交互 / --url --token)
cerebrate-mcp login           # 用户名 + Authenticator 码登录
cerebrate-mcp logout|status   # 登出 / 查看状态

功能

  • 29 个 MCP 工具:记忆检索(sense/search/timeline/detail)、写入(propose/vote/use)、 业务画像(profile/navigate/harvest)、认证(register/login)、实体抽取(本地)
  • 本地实体抽取:规则引擎在本地运行,实体数据不离开本机
  • 认证:TOTP(Authenticator)登录,token 为唯一凭证,长期有效

安全

  • 记忆共享读取,写入须登录(user token)
  • 管理工具(注册/rebind/ingest/knowledge_store)仅 master token 可用
  • token 文件 chmod 600,仅本机当前用户可读