mycelial-brain-mcp

mycelial-brain-mcp

Enables AI agents to read, write, search, and manage persistent, decentralized context memory via a GCS-backed MCP server, with tools for document storage, retrieval, and STIM protocol nuggets.

Category
访问服务器

README

<p align="center"> <img src="https://raw.githubusercontent.com/STIM-Protocol/stim-core/main/assets/stim-logo.png" alt="STIM Protocol" width="120" /> </p>

<h1 align="center">mycelial-brain-mcp</h1>

<p align="center"> <strong>Persistent, decentralized context memory for AI agents</strong><br/> <em>STIM Protocol Reference Implementation: Mycelial Memory Layer</em> </p>

<p align="center"> <a href="https://github.com/STIM-Protocol/stim-core"><img alt="STIM Protocol" src="https://img.shields.io/badge/STIM-Layer_0-1a4a2e?style=flat&labelColor=0d2818"></a> <a href="https://github.com/STIM-Protocol/white-paper"><img alt="White Paper" src="https://img.shields.io/badge/White_Paper-v7.0011-1a4a2e?style=flat&labelColor=0d2818"></a> <a href="https://github.com/STIM-Protocol/Forest_OS"><img alt="Forest OS" src="https://img.shields.io/badge/Implementation-Forest_OS-1a4a2e?style=flat&labelColor=0d2818"></a> <a href="https://github.com/STIM-Protocol/stim-guard"><img alt="stim-guard" src="https://img.shields.io/badge/Constraint_Engine-stim--guard-1a4a2e?style=flat&labelColor=0d2818"></a> <img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-1a4a2e?style=flat&labelColor=0d2818"> <img alt="Node" src="https://img.shields.io/badge/Node-22+-1a4a2e?style=flat&labelColor=0d2818"> </p>


What This Is

Just as mycelium connects trees and transfers nutrients across forests, Mycelial Brain connects your knowledge and transfers context across AI agents.

This is the open-source MCP (Model Context Protocol) server that powers the Mycelial Brain: a GCS-backed persistent memory system that any MCP-compatible AI agent can read from, write to, and search.

It is the memory layer of the STIM Protocol: a Layer 0 constraint architecture that grounds autonomous AI in thermodynamic and ecological law rather than human preference.

MCP Tools

Once connected, your AI agent gets five tools:

Tool Description
brain_search Full-text keyword search across all brain documents with tag-weighted scoring
brain_read Read a specific document by path (e.g., doc-42)
brain_write Write a new document with auto-incremented ID or custom path
brain_list List all documents with their tags
stim_write Write a STIM protocol nugget with namespace and author metadata

Quick Start: Self-Host

Prerequisites

  • Node.js 22+
  • Google Cloud Storage bucket (or fork with a different storage backend)

Run Locally

git clone https://github.com/STIM-Protocol/mycelial-brain-mcp.git
cd mycelial-brain-mcp
npm install

# Set environment variables
export GCS_BUCKET_NAME=your-brain-bucket
export MCP_AUTH_TOKEN=your-secret-token   # omit to run in open mode

# Start the server
npm start

The server exposes an MCP endpoint at POST /mcp on port 8080.

Deploy to Google Cloud Run

npm run deploy

This runs gcloud run deploy with the repo as source. Make sure your Cloud Run service account has Storage Object Admin on the GCS bucket.

Connect Your AI Agent

Add the MCP server to your agent configuration (Claude Desktop, etc.):

{
  "mcpServers": {
    "mycelial-brain": {
      "url": "https://your-deployment-url/mcp",
      "headers": {
        "Authorization": "Bearer your-secret-token"
      }
    }
  }
}

See CONNECT.md for detailed setup instructions.

Architecture

┌─────────────────────────────────────────────────────┐
│              MYCELIAL BRAIN STACK                     │
├─────────────────────────────────────────────────────┤
│                                                      │
│  AI Agent ──MCP──▶ Express Server ──▶ GCS Bucket     │
│  (Claude,          (this repo)      (doc-*.json)     │
│   Gemini, etc.)                                       │
│                                                      │
│  Tools: brain_search, brain_read, brain_write,      │
│         brain_list, stim_write                        │
│                                                      │
│  Cache: 5-min in-memory TTL, invalidated on write    │
│  Auth:  Bearer token (optional, open mode if unset)  │
│  Search: Tag-weighted full-text with synonym expand  │
│                                                      │
└─────────────────────────────────────────────────────┘

Documents are stored as JSON objects in GCS:

{
  "path": "doc-42",
  "content": "Your document text...",
  "tags": ["research", "stim", "decisions"],
  "updated": "2026-08-22T12:00:00.000Z"
}

Hosted Version

Don't want to self-host? myceliate.cv offers a managed MCP endpoint with:

  • One-click Claude Desktop integration via .mcpb bundle
  • Operator dashboard with full-text search across your document catalog
  • Google OAuth authentication and per-user namespace isolation
  • Tiered pricing (free open-source tier through enterprise)
  • Onboarding flow with document upload and text paste seeding

The hosted version runs the same MCP protocol as this repo. Your data stays in your own GCS namespace, and you can export or self-host at any time.

STIM Protocol Context

This repo is one component of the STIM Protocol ecosystem:

Repo Role
stim-core Layer 0 specification: nature-grounded intelligence constraints
white-paper Versioned, arXiv-ready documentation
stim-guard pip-installable constraint engine for AI agents
gpd-framework Physics-based dimensional analysis and thermodynamic convergence
Forest_OS Knowledge organism: living, self-governing file system
mycelial-brain-mcp MCP memory layer (this repo)

License

Apache 2.0. See LICENSE.

Contributing

This is a STIM Protocol reference implementation. Issues and PRs welcome.


<em>"The accumulated context across platforms has become a fifth category of professional capital."</em>

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选