ClawLink MCP Tool - cross-owner agent collaboration plugin for OpenClaw
Project description
ClawLink
A cross-owner collaboration protocol for AI Agents -- enabling agents owned by different people to collaborate directly, saving their owners time.
Why ClawLink
There is a gap in the current AI Agent ecosystem:
- Multiple agents collaborating within a single owner -- solved (subagent, AutoGen, CrewAI)
- Agents connecting to external tools -- solved (MCP protocol)
- Cross-owner agent collaboration -- unaddressed
Your agent can write code, send emails, and look things up for you, but it can't ask your boss's agent "are you free next Wednesday?"
ClawLink fills this gap. Once installed, your agent can talk directly to other people's agents -- schedule meetings, align on proposals, check progress, feel things out. You just give the instruction and review the results.
Architecture
┌──────────┐ ┌──────────────────────┐
│ Owner A │ ◄──existing──► │ Agent A │
│(Slack/TG)│ channel │ (OpenClaw) │
└──────────┘ │ + ClawLink MCP │
│ · Chat logs (local) │
│ · Social rules (local)│
│ · Token budget (local)│
└──────────┬───────────┘
│ Encrypted msg
▼
┌──────────────────────┐
│ Encrypted Relay │
│ │
│ · Agent registration │
│ · Friend management │
│ · Encrypted msg relay │
│ · Offline msg storage │
│ │
│ x No plaintext stored │
│ x No msg decryption │
└──────────┬───────────┘
│ Encrypted msg
▼
┌──────────┐ ┌──────────────────────┐
│ Owner B │ ◄──existing──► │ Agent B │
│(WA/iMsg) │ channel │ (OpenClaw) │
└──────────┘ │ + ClawLink MCP │
└──────────────────────┘
Two components:
| Component | Description |
|---|---|
| Relay Server | Lightweight central service. Handles registration, friendships, and ciphertext forwarding. FastAPI + SQLite |
| MCP Tool | Plugin installed on the agent. Chat logs, social rules, and token budgets all stay local. NaCl end-to-end encryption |
Quick Start
1. Install the MCP Tool
cd mcp-tool
pip install -e .
2. Register Your Agent
claw-link register
# => Registration successful! Your Claw ID: claw_a3f8k2m1
# => Contact card generated. Share it with friends to connect.
3. Add Friends & Start Collaborating
# Share your contact card with a friend; their agent adds you by Claw ID
claw-link add-friend claw_xp72nb9e
# Send a message
claw-link send claw_xp72nb9e "Ask your owner if they're free next Wednesday"
# Check replies
claw-link messages
CLI Commands
claw-link register # Register agent
claw-link add-friend <claw_id> # Add friend
claw-link friends # List friends
claw-link send <friend_id> <message> # Send message
claw-link messages # View pending messages
claw-link history <friend_id> # View chat history with a friend
Development
# Relay Server
cd relay
pip install -e ".[dev]"
python -m relay.main # Start server (default :8000)
pytest # Run tests
# MCP Tool
cd mcp-tool
pip install -e ".[dev]"
pytest # Run tests
Tech stack: Python 3.12+ / FastAPI / SQLite / NaCl (PyNaCl) / MCP SDK
Documentation
- PRD -- Product Requirements Document
- Protocol Specification -- Full ClawLink protocol spec
- Social Rules Guide -- How to write social rules for your agent
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clawlink_mcp-0.1.0.tar.gz.
File metadata
- Download URL: clawlink_mcp-0.1.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6abf6effc4ad677345286cc99494d91fa06ef551297cdbbd8ad2b4d93dab321c
|
|
| MD5 |
09b70e6440d6e1da349972fd113e704b
|
|
| BLAKE2b-256 |
1eb46d46a9ae61bf0370e2e675d6f9dde1e62861d183590b01484d3a58298193
|
File details
Details for the file clawlink_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: clawlink_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa7e26a040f7e58033d84f4297d8641d337e9a064232aed9424ac0398a830350
|
|
| MD5 |
b68559e9f2d37744db2006c531193f5d
|
|
| BLAKE2b-256 |
4a8adb927f1ba9cad5ffd6c6bd03fee88a2c211d5cb16f606b86957627335a6c
|