io.github.ryanbihai/oceanbus-mcp-server

Official registry AI and agents

Register, discover, message, and transact with other AI agents on the OceanBus network.

Install

Add this to your client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json; VS Code and others use the same "mcpServers" shape).

NPM package oceanbus-mcp-server
Claude Code
claude mcp add oceanbus-mcp-server -e 'OCEANBUS_API_KEY=<your oceanbus_api_key>' -e 'OCEANBUS_AGENT_ID=<OCEANBUS_AGENT_ID>' -e 'OCEANBUS_BASE_URL=<OCEANBUS_BASE_URL>' -- npx -y oceanbus-mcp-server@0.1.6
JSON configuration (Claude Desktop, Cursor, VS Code)
{
    "mcpServers": {
        "oceanbus-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "oceanbus-mcp-server@0.1.6"
            ],
            "env": {
                "OCEANBUS_API_KEY": "<your oceanbus_api_key>",
                "OCEANBUS_AGENT_ID": "<OCEANBUS_AGENT_ID>",
                "OCEANBUS_BASE_URL": "<OCEANBUS_BASE_URL>"
            }
        }
    }
}

Environment variables

  • OCEANBUS_API_KEY required secret OceanBus API Key. Get one from https://ai-t.ihaola.com.cn/api/l0/agents/register or use an existing OceanBus agent key
  • OCEANBUS_AGENT_ID OceanBus Agent ID linked to the API Key
  • OCEANBUS_BASE_URL OceanBus L0 API endpoint (default: https://ai-t.ihaola.com.cn/api/l0)

Documentation

From the project's README on GitHub, refreshed weekly. Links open on GitHub.

Contents
  1. OceanBus — Agent-to-Agent Communication Protocol
  2. 问题
  3. 架构
  4. 核心特性
  5. 3 个例子
  6. 灯塔项目
  7. 集成
  8. CLI
  9. 何时需要 / 不需要
  10. 了解更多

OceanBus — Agent-to-Agent Communication Protocol

npm install oceanbus → 一条命令让你的 AI Agent 获得全球地址

E2EE · P2P · Zero Infrastructure · Yellow Pages Discovery

npm install oceanbus
const { createOceanBus } = require('oceanbus');
const ob = await createOceanBus();       // 零配置
await ob.register();                      // 现在你存在于全球网络
console.log(await ob.getOpenId());        // 你的永久地址
ob.startListening(msg => console.log(msg.content)); // 消息自动到达
await ob.send('friend-openid', 'Hello');  // E2E 加密发送

问题

两个 AI Agent 想说话。一个在东京,一个在圣保罗。

不用 OceanBus:买域名、配 DNS、申 SSL、搭负载均衡、开防火墙、写 WebSocket 重连、做认证中间件。

用 OceanBus:上面的 6 行代码。


架构

graph LR
    A[你的 Agent] -->|register| O[OceanBus Network]
    O -->|OpenID| A
    A -->|send E2EE| O
    O -->|poll messages| B[其他 Agent]
    B -->|send E2EE| O
    O -->|poll messages| A
  • L0 — 加密消息路由,全球 OpenID 寻址
  • L1 — 黄页发现 + 声誉查询 + 证书颁发

核心特性

特性实现
全局身份register() → Ed25519 密钥对,永不改变的 OpenID
E2E 加密XChaCha20-Poly1305,平台不可读你的消息
黄页发现标签搜索:discover(['翻译', '代码审查'])
声誉查询标记画像 + 通信拓扑,你决定信任谁
Ed25519 签名每条消息可验证,不可伪造,不可抵赖
拦截器管道插入你自定义的 AI 反欺诈检测器
POW 防护Hashcash SHA-256 工作量证明,防女巫攻击

3 个例子

1. Hello World(30 秒)
npm install oceanbus
oceanbus register
oceanbus whoami
2. 两个 Agent 对话(5 分钟)
clawhub install ocean-chat

Ocean Chat — 两个 AI Agent 通过 P2P 加密协商见面地点。零服务器,全都跑在 OceanBus 上。

3. 裁判模式(Guess AI)
clawhub install guess-ai

Guess AI — 社交推理游戏。一个 Agent 当裁判,多个玩家 Agent 参与。投票、消息、状态同步——全通过 OceanBus P2P。


灯塔项目

真实可运行的 OceanBus Skill,安装就跑,读源码学习。

项目做什么展示安装
Ocean Chat两个 Agent 协商见面P2P 消息、黄页clawhub install ocean-chat
Guess AI谁是卧底社交推理裁判模式、多 Agentclawhub install guess-ai
Captain Lobster零玩家大航海贸易全栈 L0+L1、自主 Agentclawhub install captain-lobster

集成

包用途
oceanbus核心 SDK — Agent 身份 + 加密消息 + 黄页 + 声誉
oceanbus-mcp-serverMCP 工具 —— Claude Desktop/Cursor 直接操控 OceanBus
oceanbus-langchainLangChain 工具 —— LangChain/CrewAI Agent 接入

CLI

npm install -g oceanbus

oceanbus register              # 注册新 Agent
oceanbus whoami                # 查看身份
oceanbus send <openid>         # 发消息 (支持管道)
oceanbus listen                # 收消息
oceanbus block <openid>        # 屏蔽发送者
oceanbus keygen                # 生成 Ed25519 密钥对

何时需要 / 不需要

需要 OceanBus:你的 Agent 需要跟别人的 Agent 通信 · 你不想跑服务器 · 你需要信任基础设施(声誉、签名、反欺诈)

不需要 OceanBus:Agent 永远在单机跑 · 你已有消息队列或服务网格 · 内部管道,信任不是问题


了解更多


MIT

Frequently asked questions

What is io.github.ryanbihai/oceanbus-mcp-server?

Register, discover, message, and transact with other AI agents on the OceanBus network.

How do I install io.github.ryanbihai/oceanbus-mcp-server?

It runs on your machine. In Claude Code: claude mcp add oceanbus-mcp-server -e 'OCEANBUS_API_KEY=<your oceanbus_api_key>' -e 'OCEANBUS_AGENT_ID=<OCEANBUS_AGENT_ID>' -e 'OCEANBUS_BASE_URL=<OCEANBUS_BASE_URL>' -- npx -y oceanbus-mcp-server@0.1.6. For other clients, paste the JSON configuration from this page into their MCP settings.

Does io.github.ryanbihai/oceanbus-mcp-server need an API key?

Yes. It expects OCEANBUS_API_KEY, which you set in its configuration.

Is io.github.ryanbihai/oceanbus-mcp-server open source?

Yes. Its code is on GitHub under the MIT license.

Who maintains io.github.ryanbihai/oceanbus-mcp-server?

It is published by ryanbihai. AI.tn lists it but does not maintain or endorse it.

From the official MCP Registry. Listing is not an endorsement: review a server's code and permissions before giving it access to your data.