Back to Browse

Obsyn MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocal
Free

Server data from the Official MCP Registry

Private OTC block trades on Robinhood Chain: sealed bids, encrypted offers, one-tx settlement.

About

Private OTC block trades on Robinhood Chain: sealed bids, encrypted offers, one-tx settlement.

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (2 strong, 2 medium validity signals). 1 code issue detected. No known CVEs in dependencies. Imported from the Official MCP Registry. 1 finding(s) downgraded by scanner intelligence.

8 files analyzed · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

env_vars

Check that this permission is expected for this type of plugin.

What You'll Need

Set these up before or after installing:

Optional key of a dedicated agent wallet. Without it, deposits and refunds come back unsigned.Required

Environment variable: OBSYN_PRIVATE_KEY

Optional Robinhood Chain RPC, only if the default is blocked on your network.Optional

Environment variable: OBSYN_RPC_URL

How to Install

Install command not verified. See the repository for install instructions.

View repository

Documentation

View on GitHub

From the project's GitHub README.

Obsyn

CI License: MIT Contracts verified on Sourcify

obsyn on HEY Research Lab

Trade size. Stay private. Private OTC block trades on Robinhood Chain: sealed bids and offers that only the poster can read, one-transaction settlement through an adminless contract, and a gasless "ghost mode" for sellers.

obsyn.trade · X @Obsyntrade · How it works · Security · Docs · Incident reports · Become a maker

Live on Robinhood Chain (chain id 4663)

ContractAddress
OtcEscrowV2 (settlement in ETH, USDG or $OBSYN; no owner / admin / pause / upgrade)0xa10193De64556AF16390FB6E07BBb7C2522F21C8
OtcEscrow v1 (deals accepted before 2026-11-18)0x41c1dcd0bf252C86C4b0cb78dec42830DD1d0865
BuyBurnVault (collects fees for $OBSYN buy-and-burn; can't withdraw them)0x2afdacda8B3D45F82c42e43Ae9D9651f218b4221

Security audit by the Obsyn team: SECURITY-REVIEW.md, no critical or high issues. An independent third-party audit is planned.

Transparency

DEPLOYMENTS.mdEvery address, its deploy transaction, block, constructor settings and compiler settings
contracts/scripts/verify-deployment.mjsChecks the live bytecode against this source and prints the on-chain settings. forge build && node scripts/verify-deployment.mjs
SECURITY-REVIEW.mdSecurity audit by the Obsyn team: method, Slither triage, findings by severity, what was fixed
SECURITY.mdWho can do what (permissions table), worst cases stated plainly, known risks, how to report a vulnerability
CHANGELOG.mdWhat changed and when, including bugs we found and fixed
LICENSEMIT
  • No admin keys on the escrow. No owner, no pause, no upgrade. The fee is capped at 2.5% in code.
  • The fee vault's owner and keeper are a 2-of-3 Safe multisig (0x48d8…833E): every change needs two of three signers. It can only steer how fees already in the vault buy and burn $OBSYN (route changes wait 2 days, publicly). It can't touch user deposits. Details in SECURITY.md.
  • What our server stores: postings (token, size, side, pay token, optional note, expiry), sealed answers as ciphertext it can't decrypt, SHA-256 hashes of the private-link tokens, and the terms of accepted deals. No accounts, no emails. We set no cookies and run no analytics. Nothing is deleted automatically yet.
  • Third parties: Google Fonts (fonts, loaded by your browser), DexScreener and Yahoo Finance (market data, fetched by our server; token logos load from DexScreener's CDN, and the homepage's live $OBSYN chart is a DexScreener embed that loads in your browser when you scroll to it), your wallet's RPC, WalletConnect/Reown if you connect that way, Railway (hosting) and Cloudflare (DNS).
FolderWhat it is
contracts/Foundry: OtcEscrow (adminless escrow) and BuyBurnVault (turns fees into token burns)
backend/Node 26 + Hono: RFQ API, sealed-offer store, ghost-mode relayer, on-chain price reads
web/Vite + React app: bid, sealed offers, deal panel

Deploying: see DEPLOY.md (Railway, one service for API + web).

How Obsyn earns

Posting and answering are free. A fee is taken only when a deal settles, by the contract, in the payment token: 2.5% under $10k, 2% from $10k, 1.5% from $100k, capped at 2.5% in code. Holders of 1,000,000+ $OBSYN pay 0.5% less. Fees go to the BuyBurnVault, which can only spend them buying $OBSYN (on its Uniswap v4 pool, now that it has graduated from the Pons curve) and burning it; nobody can withdraw them. When a deal has a referrer, half the fee goes to them instead, paid by the escrow in the same settlement. Ghost-mode deposits add a small relayer fee that pays the relayer's gas.

Abuse limits

The API limits each client to 60 writes and 120 on-chain reads per minute, caps request bodies, and rejects deal terms that would let a party refer itself. Sealed answers are signed by the wallet they name; unsigned or mis-signed ones are flagged and refused by the SDK and MCP unless explicitly allowed.

Try it locally

You need Foundry and Node.js 22+. Clone with submodules (git clone --recursive, or git submodule update --init after cloning) so contracts/lib/forge-std is there. Use four terminals.

# 1. local chain
anvil

# 2. deploy demo contracts (mock USDG + mock TSLAx stock token + escrow)
cd contracts
forge script script/DeployLocal.s.sol --rpc-url http://127.0.0.1:8545 --broadcast \
  --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
#    it prints USDG_ADDRESS, STOCK_TOKEN and ESCROW_ADDRESS

# 3. backend (fill in the printed addresses)
cd backend
CHAIN_ID=31337 RPC_URL=http://127.0.0.1:8545 \
ESCROW_ADDRESS=0x... USDG_ADDRESS=0x... \
RELAYER_PRIVATE_KEY=0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a \
npm start

# 4. web app → http://localhost:5173
cd web
npm run dev

On a fresh anvil the addresses are always: USDG_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3, STOCK_TOKEN=0xe7f1725E7734CE288F8367e1Bb143E90bb3F0512, BUYBURN_VAULT=0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9, ESCROW_ADDRESS=0x5FC8d32690cc91D4c39d9d3abcBD16989F875707.

In MetaMask, add the network http://127.0.0.1:8545 (chain id 31337) and import two of anvil's public test keys (never use them on a real network):

  • Buyer, anvil #0 (holds 1,000,000 USDG): 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
  • Seller, anvil #1 (holds 10,000 TSLAx): 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d

Walkthrough: as the buyer, place a bid for the STOCK_TOKEN paid in USDG. Open the /rfq/… share link in another browser profile, switch to the seller account and send a sealed offer (try ghost mode). Back on the buyer's private link, accept the offer and deposit. Then go to the seller's link and deposit. The swap settles when the second deposit lands.

SDK and API

  • OpenAPI spec: GET /api/openapi.json. A test checks that it lists exactly the routes the server has.
  • JavaScript SDK: npm run build:sdk in backend/, then the backend serves it at GET /api/sdk/obsyn.mjs. It works in browsers and Node, and CORS is open so any site can use it.
import { Obsyn } from "https://obsyn.trade/api/sdk/obsyn.mjs";

const otc = new Obsyn({ apiUrl: "https://obsyn.trade/api", privateKey: "0x…" }); // key optional
const bid = await otc.createBid({ token: "0x…", amount: "25000", payWith: "USDG", replyMinutes: 60 });
const offers = await otc.getOffers(bid.bidId);            // decrypted locally, cheapest first
await otc.acceptOffer({ bidId: bid.bidId, offerId: offers[0].offerId, fundingMinutes: 60 });
await otc.deposit({ bidId: bid.bidId });                  // signs, or returns unsigned txs without a key

Sellers use listBids(), sendOffer({ bidId, totalPrice, ghost }), dealStatus({ offerId }) and deposit({ offerId }). Secrets are kept in memory by default; in Node pass store: new FileStore(path) from src/sdk/file-store.ts.

AI agents (MCP)

A local MCP server lets any MCP-capable AI agent bid, send sealed offers and settle. It runs on the agent's machine on purpose: offers are encrypted and decrypted there, so the backend still only sees ciphertext, and the wallet key never leaves that process.

Add it to your MCP client as a stdio server. It ships as one file on the repo's GitHub releases (packages/obsyn-mcp), so no checkout is needed. Most clients take a config like this:

{
  "mcpServers": {
    "obsyn": {
      "command": "npx",
      "args": ["-y", "https://github.com/ObsynDev/obsyn/releases/download/mcp-v0.4.0/obsyn-mcp-0.4.0.tgz"],
      "env": { "OBSYN_PRIVATE_KEY": "0x..." }
    }
  }
}

There is also a one-click bundle, obsyn-mcp-0.4.0.mcpb, for MCP clients that install bundles; it is listed in the official MCP Registry as trade.obsyn/mcp (server.json). From a checkout, node backend/src/mcp/stdio.ts runs the same server. OBSYN_PRIVATE_KEY is optional. OBSYN_API defaults to https://obsyn.trade/api. Without it, otc_deposit and otc_refund return unsigned transactions for you to send. Bid and offer secrets are kept in ~/.obsyn/state.json (override with OBSYN_STATE); OBSYN_RPC_URL overrides the RPC.

ToolDoes
otc_infoChain, escrow, fees, relayer, which wallet signs
otc_list_bidsOpen bids and sell listings (side)
otc_create_listingSell privately: list a block, buyers answer with sealed bids
otc_create_bidPlace a bid (token, amount, ETH/USDG, reply window)
otc_get_offersDecrypt answers on your bid or listing, with verified (signed by the wallet it names) and hasFunds
otc_accept_offerFix the deal with one answer (refuses unverified answers unless allowUnverified)
otc_send_offerSealed, signed answer: an offer on a bid (ghost: true available) or a bid on a listing
otc_deal_statusAccepted? Who has deposited? Time left?
otc_depositDeposit your side (signs, or returns unsigned txs)
otc_refundRefund after the deadline
otc_priceSpot price from a Uniswap v3 pool or Pons curve
otc_marketA token's DEX price, liquidity, and the price impact of a market order of your size
otc_receiptReceipt of a settled deal, with how it compared with a DEX market order
otc_statsDesk totals, burns and savings vs DEX
otc_autopilot_previewDry-run autopilot rules against the live desk

Autopilot: npx -y <the release .tgz> autopilot rules.json answers matching bids and listings by rules (price vs the DEX, caps per deal and in total, price floor or ceiling) and deposits when accepted. Dry run unless the rules say "live": true. See packages/obsyn-mcp.

Makers: anyone can make markets with the autopilot: a "side": "both" rule with a spreadPct quotes both sides of a token around the live DEX price, from your own wallet, with no sign-up. Step-by-step guide: MAKERS.md. Rules builder and listed makers: obsyn.trade/makers.

Read-only MCP on Hugging Face: huggingface.co/spaces/devobsyntrade/obsyn-otc runs six read-only tools (open blocks, market and price-impact check, slippage table, desk stats, who controls what, how to trade) as a hosted MCP server at https://devobsyntrade-obsyn-otc.hf.space/gradio_api/mcp/. No install, no keys; it can't trade. Source in packages/hf-space.

Tests

Every push and pull request runs CI: contract tests, the backend suite (including end-to-end runs on a local chain) and a production build of the site.

cd contracts && forge test     # escrow + vault, incl. fuzzing
cd backend && npm test         # API flow, dealId parity with Solidity, relayer end-to-end on anvil
cd web && npm run build        # typecheck + production build
SuiteWhereWhat it covers
Escrow, 24 tests incl. fuzzingcontracts/test/OtcEscrow.t.solSettlement in either deposit order, fee tiers and holder discount, ghost deposits through the relayer with permits, refunds after the deadline, payouts that reject ETH or return-bomb, fee-on-transfer rejection, value conservation (fuzzed)
Burn route, 9 tests (8 on a live fork)contracts/test/V4BurnAdapter.t.solETH → OBSYN on the v4 pool, USDG → WETH → OBSYN, full vault flow with the 2-day wait, only the vault can call it, nothing left behind
Fee vault, 13 testscontracts/test/BuyBurnVault.t.solOne-time platform-token switch, two-step ownership, burns through the Pons curve, route timelock, short-changed swaps revert
Live fork, 5 testscontracts/test/LiveFork.t.solReplays deals against the deployed contracts (LIVE_RPC=… forge test --match-contract LiveFork)
Backend, 53 testsbackend/test/Bid and listing flows, partial fills, verified receipts, self-referral refusal, rate limits and body caps, deal-id parity with Solidity, hostile (forged) answers, ghost-mode relayer and agent-to-agent MCP trades end to end on anvil

Contributing: see CONTRIBUTING.md.

Going to Robinhood Chain mainnet

The OTC can go live before the platform token exists.

  1. script/Deploy.s.sol deploys BuyBurnVault and OtcEscrow pointing at it (already done, see the addresses above). Fees in ETH and USDG pile up in the vault; nobody can withdraw them.
  2. Fill backend/.env (see .env.example) and fund the relayer key with a little ETH.
  3. Later, when the token launches on Pons: run script/SetPlatformToken.s.sol with the token address, its Pons curve and the holder threshold. It works once and can't be changed. From then on holders get the 0.5% discount and the keeper can burn the accumulated fees.

The escrow itself is never redeployed or changed.

contracts/test/LiveFork.t.sol replays deals against the live deployment on a fork: LIVE_RPC=https://4663.rpc.thirdweb.com forge test --match-contract LiveFork.

Reviews

No reviews yet

Be the first to review this server!