covalent-bond MCP Server
Peer-to-peer, end-to-end-encrypted collaboration channel for AI coding agents over MCP.
covalent-bond scores 70 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 9 tools. Filed under Cloud. GitHub shows 1 stars. Package registries report about 55 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade A
90/100 for listing completeness. Lost points: short summary, no docs link.
How quality is graded
Where the 70 comes from
22 + 20 + 4 + 10 + 4 + 10 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 4 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "gopalrajsuresh-covalent-bond": { "command": "npx", "args": [ "-y", "covalent-bond@0.1.2" ], "env": { "COVALENT_RELAY_URL": "", "COVALENT_NOTIFICATIONS": "", "COVALENT_MAX_FILE_KB": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
COVALENT_RELAY_URL | Optional | Relay endpoint both peers meet at. Set to the public relay (https://covalent-bond-relay.gopalrajsuresh.workers.dev) or your own deployed Cloudflare Worker. Defaults to http://localhost:8787 (local mock relay) when unset. |
COVALENT_NOTIFICATIONS | Optional | Set to 'off' to disable desktop notifications for incoming events. |
COVALENT_MAX_FILE_KB | Optional | Per-file size cap in KB for transfers. Defaults to 256; clamped to a 384 KB ceiling. |
Tools9Tool docs quality grade D
All capabilitiesbond_accepttoolAccept a pending file transfer after human consent
bond_connecttoolCreate a session and get a shareable session code
bond_declinetoolDecline a pending file transfer
bond_endtoolEnd the session and disconnect from the relay
bond_jointoolJoin a session using a code shared out-of-band
bond_messagetoolSend a short encrypted text message to the peer
bond_sendtoolSend a file to the connected peer, encrypted end to end
bond_statustoolConnection status, pending transfers, and new events
bond_waittoolLong-poll for the next peer event
About
A covalent bond is two atoms sharing a pair of electrons. Covalent Bond is two coding agents on different machines sharing something just as fundamental: a private, authenticated channel, and through it, a way of working.
Picture two developers pairing across a distance. One has their agent dialed in (organized skills, sharp conventions, the right context loaded) and it produces excellent work. The other is more ad-hoc, and their agent turns out something that's just okay. Covalent Bond is the channel that closes that gap: the well-tuned side can hand over the files, context, and conventions that make its agent good, so both agents converge on the same high-quality way of working. It bonds not just two agents, but two ways of working, pulling the weaker setup up to the level of the stronger, as equal peers.
It's peer-to-peer and end-to-end encrypted: the two agents pair up and exchange messages and files through a relay that can never read the traffic. It works with any MCP-compatible agent (Claude Code, Cursor, Codex, Windsurf, Cline, and others), exposing bond_* tools over the Model Context Protocol. And it keeps a human in the loop: every incoming file waits for explicit consent before it touches disk.
- ๐ค Bonds two ways of working: share files, context, and conventions so both agents level up together
- ๐ Authenticated E2EE: a malicious relay can't read or MITM the channel
- ๐ Cross-machine: pair agents anywhere, through a dumb relay (no inbound ports)
- ๐ Human-in-the-loop: consent before any file is written; full audit log
- ๐ Agent-agnostic: any MCP client, not tied to one vendor
It doesn't magically clone one setup onto another. It's the secure, consent-gated channel that makes deliberately sharing your working style possible between two machines that otherwise can't reach each other.
Quick start
Shortcut: let your agent set everything up. Paste docs/AGENT-SETUP.md to any coding agent and say "set up Covalent Bond". It walks the agent through install, relay config, MCP registration, and pairing, with clear stops for the parts only a human may do.
Or do it yourself on both machines (steps 1โ2), then pair (step 3).
-
Register the MCP server with your agent โ no install needed,
npxfetches the npm package. For Claude Code:claude mcp add --scope user --env COVALENT_RELAY_URL=https://covalent-bond-relay.gopalrajsuresh.workers.dev covalent -- npx -y covalent-bond(
--scope usermakes thebond_*tools available in every project. The env var points at the public relay; to self-host instead, see Pick a relay.)For other MCP clients (Cursor, Codex, Windsurf, โฆ), this standard stdio-server config works in most of them; paste it into the client's MCP settings JSON (the top-level key is usually
mcpServersorservers):{ "mcpServers": { "covalent": { "command": "npx", "args": ["-y", "covalent-bond"], "env": { "COVALENT_RELAY_URL": "https://covalent-bond-relay.gopalrajsuresh.workers.dev" } } } }On Windows, if your client struggles to spawn
npxdirectly, wrap it:"command": "cmd", "args": ["/c", "npx", "-y", "covalent-bond"]. For local testing without a deployed relay, run the mock relay from a source checkout (npm run relay:dev) and pointCOVALENT_RELAY_URLathttp://localhost:8787.git clone https://github.com/gopalrajsuresh/covalent-bond.git covalent-bond cd covalent-bond npm install npm test # optional but recommended; all suites run offline cp .env.example .env # PowerShell: Copy-Item .env.example .envThe
.envalready contains the public relay URL. Then register withcommand: node, args/absolute/path/to/covalent-bond/bin/cli.js(Claude Code:claude mcp add --scope user covalent -- node /absolute/path/to/covalent-bond/bin/cli.js), no env var needed. -
Restart your agent session, then verify: ask the agent to run
bond_status. It should reply "No active session", which means the tools are live. -
Pair and share
- Machine A: "Create a Covalent Bond session" โ agent runs
bond_connectโ you get a code likeAbCd-1234-XyZw. - Tell the code to the other human out-of-band (chat or voice, never through the relay).
- Machine B: "Join Covalent Bond session AbCd-1234-XyZw" โ agent runs
bond_join. - Either side:
bond_statusโ Secure channel established โ send files (bond_send) and messages (bond_message). Incoming files wait for the human tobond_accept. - Done?
bond_endon both sides.
- Machine A: "Create a Covalent Bond session" โ agent runs
How it works
Both agents meet at a relay that is untrusted by design โ it forwards ciphertext it can never decrypt. The session code travels human-to-human, never through the relay, and that out-of-band secret is what authenticates the channel:
sequenceDiagram
participant A as Agent A (host)
participant H as Humans (out-of-band)
participant R as Relay (untrusted)
participant B as Agent B (guest)
A->>A: bond_connect โ session code
A-->>H: code shared by chat / voice
H-->>B: code entered on the other side
B->>B: bond_join(code)
A->>R: ephemeral public key (routing ID only)
B->>R: ephemeral public key (routing ID only)
Note over A,B: key = X25519 โ session code โ AES-256-GCM
A->>R: ciphertext
R->>B: ciphertext (relay sees nothing else)
B->>B: file held until human runs bond_accept
If anything in the middle tampers with the key exchange, key confirmation fails and the session aborts before any data flows โ a malicious relay can't read or impersonate either side.
Pick a relay
The relay is a dumb pipe and untrusted by design: it sees only a random routing ID and ciphertext, never the session code, keys, or plaintext, and a malicious relay still can't read or forge anything (that's covered by the test suite's MITM scenario). So either option below is equally secure; it's purely a convenience choice.
Option 1: use the public relay (fastest)
COVALENT_RELAY_URL=https://covalent-bond-relay.gopalrajsuresh.workers.dev
Sessions expire after 30 minutes of inactivity and nothing is retained. Best-effort availability, rate-limited.
-
.envfile (simplest): copy.env.exampleto.envin the covalent-bond folder and edit the value. The MCP server reads it at startup, so it applies no matter which project you use the agent from. -
MCP client config: pass it when registering the server, e.g. for Claude Code:
claude mcp add --scope user --env COVALENT_RELAY_URL=https://... covalent -- node /absolute/path/to/covalent-bond/bin/cli.jsFor other MCP clients, add it to the server's
envblock in their JSON config.
After changing either, restart your agent session so the MCP server relaunches.
Option 2: deploy your own in ~2 minutes (free Cloudflare account)
npm install -g wrangler
wrangler login # opens the browser; create a free account if you don't have one
cd cloudflare-worker
wrangler deploy # prints your relay URL: https://covalent-bond-relay.<your-subdomain>.workers.dev
Then set COVALENT_RELAY_URL to that URL on both machines. Full details (Durable Object migration, optional per-IP throttle, local wrangler dev) are in cloudflare-worker/README.md.
Paste this to any coding agent running in this repo:
Deploy my own Covalent Bond relay: install wrangler if missing, run
wrangler loginand wait for me to finish authenticating in the browser, thenwrangler deployfromcloudflare-worker/, and tell me the URL to set asCOVALENT_RELAY_URLon both machines. Followcloudflare-worker/README.md.
The only manual step is the browser login; the agent handles the rest.
Pair two agents
- Machine A: "Create a Covalent Bond session." โ the agent calls
bond_connectand returns a code likeAbCd-1234-XyZw. - Share that code with Machine B out-of-band (chat, voice, in person). It's the secret that secures the link. Never paste it into the relay.
- Machine B: "Join Covalent Bond session
AbCd-1234-XyZw." โ the agent callsbond_join. - When
bond_statusshows Secure channel established, start sharing: "Sendsrc/auth.jsto my peer," or hand over the pieces that make your agent good: a skill file, a conventions doc, the context that shapes how it works. The peer sees a consent prompt and accepts before anything is written, and the received content arrives wrapped as untrusted data for the other agent to read and adopt.
Tools
bond_connectโ Create a session and get a shareable session codebond_joinโ Join a session using a code shared out-of-bandbond_statusโ Connection status, pending transfers, and new eventsbond_sendโ Send a file to the connected peer, encrypted end to endbond_messageโ Send a short encrypted text message to the peerbond_waitโ Long-poll for the next peer eventbond_acceptโ Accept a pending file transfer after human consentbond_declineโ Decline a pending file transferbond_endโ End the session and disconnect from the relay
Full reference:
| Tool | Parameters | What it does | Requires |
|---|---|---|---|
bond_connect | โ | Create a session as host; returns the code to share out-of-band | โ |
bond_join | sessionCode | Join a session with a code (XXXX-XXXX-XXXX, Base58) | โ |
bond_status | โ | Handshake state, pending transfers, unread-event count, and events since the last call | โ |
bond_send | filepath, message? | Send a file (type whitelist, size cap, 10 s rate limit) with an optional context message | confirmed channel |
bond_message | content | Send a short encrypted text message, max 4000 chars (agent-to-agent conversation) | confirmed channel |
bond_wait | timeoutSeconds? | Long-poll for the next peer event (message, file, disconnect); default 50 s, max 300 s | confirmed channel |
bond_accept | transferId | Write a pending file to ~/.covalent/incoming/ and return its content wrapped as untrusted data | human consent |
bond_decline | transferId | Discard a pending transfer (the sender is not notified) | human consent |
bond_end | โ | Disconnect and clear session state, including pending transfers | โ |
? marks an optional parameter. confirmed channel means the tool refuses to run until key confirmation has succeeded on both sides; human consent means the agent may only call it after the human explicitly decides on the pending transfer.
Incoming events raise a desktop notification (disable with
COVALENT_NOTIFICATIONS=off). File size defaults to 256 KB, overridable via
COVALENT_MAX_FILE_KB (up to 384 KB, bounded by the relay's wire limit).
Security
Each session is secured by two secrets: ephemeral X25519 keys exchanged through the relay, and a short session code the two humans share out-of-band. The code is mixed into the encryption key but never sent to the relay, so a relay that tampers with the key exchange (a MITM) can't derive the key, key confirmation fails, and the session aborts before any data flows. The relay only ever sees a routing ID, public keys, and AES-256-GCM ciphertext. Every incoming file waits for explicit human consent, and every operation is logged.
Full details, threat model, and handshake diagram: docs/ARCHITECTURE.md.
Share the session code over a channel the relay operator doesn't control. That out-of-band step is what makes the channel authenticated, not just encrypted.
Testing
npm test # all suites, via test/run-all.js, against an in-process mock relay
No network or wrangler needed. The suite covers the key schedule, the full handshake and file transfer, two MCP servers end-to-end, a simulated malicious relay (mitm), and the relay's hardening. See docs/ARCHITECTURE.md for the breakdown, and docs/TWO-MACHINE-TEST.md for a real two-machine run.
Deploying the relay
The relay is a Cloudflare Worker in cloudflare-worker/ with one Durable Object per session. It stores only routing IDs, public keys, and ciphertext, expiring 30 minutes after the last activity. It can't decrypt anything.
Status
Authenticated E2EE, MCP integration wired end-to-end, full test suite green. Pre-1.0: the protocol and API may still change.
Contributing & security reports
Contributions are welcome. Start with CONTRIBUTING.md, which includes the security invariants and the branch/PR workflow. To report a vulnerability, please use the private process in SECURITY.md, not a public issue.
License
MIT; see LICENSE.
Frequently asked questions
What is covalent-bond MCP Server?
Peer-to-peer, end-to-end-encrypted collaboration channel for AI coding agents over MCP.
How do I install covalent-bond MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. covalent-bond MCP Server runs locally from the npm package covalent-bond with the command npx -y covalent-bond@0.1.2.
Is covalent-bond MCP Server free and open source?
Yes. covalent-bond MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does covalent-bond MCP Server support remote (HTTP) connections?
No remote endpoint is listed for covalent-bond MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does covalent-bond MCP Server provide?
covalent-bond MCP Server provides 9 tools, including bond_accept, bond_connect, bond_decline, and bond_end. See the full tool list for descriptions and parameters.
How is covalent-bond MCP Server's trust score calculated?
covalent-bond MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yetโBe the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.