signer-mcp
Keyless CEX/DEX order signing for AI trading agents (Binance, OKX, Bybit, KuCoin, Hyperliquid, Asterdex). Exchange keys stay inside an AWS Nitro Enclave — the agent gets policy-bounded signatures, never credentials. Built to survive prompt injection and supply-chain key leaks.
README
@usenami/signer-mcp
Sign CEX orders from any MCP-aware AI agent — keys never leave an AWS Nitro Enclave.
signer-mcp is the public face of Usenami Signer. It gives Claude Desktop, Cursor, ElizaOS, and any other MCP-aware client a five-tool surface for trading real CEX/DEX perp accounts (Binance, OKX, Asterdex, KuCoin, Bybit, Hyperliquid) without ever loading a private key into the agent's process — or yours.
Status: v0 (alpha). List of venues, attestation, account read, and place/cancel order on testnet.
Why this exists
Every agent framework that touches a CEX today loads the API key into the agent process. That puts the secret on disk, in env vars, in npm packages, in prompt-engineered tool calls, and in your shell history. One prompt injection, one supply-chain compromise, one accidental log line, one curious co-worker — and the key leaks.
Signer takes the opposite approach. The signing key is generated inside an AWS Nitro Enclave attested by AWS itself. The enclave's measurement (PCR0) is published on https://usenami.io/signer/attestations. The MCP server you install here can ask the enclave to sign a specific order — bounded by an explicit policy (per-asset cap, per-period cap, allowed venues) — but it cannot read the key. Neither can the agent, your laptop, your IaC, or our own engineers.
If the agent gets compromised, the worst it can do is place orders inside your policy window. The key itself stays attested.
Quick start (Claude Desktop)
-
Get a token. Sign in at usenami.io/signer and create an API token. The token is bound to a single policy — set per-venue caps before generating it.
-
Edit
claude_desktop_config.json. Path is~/Library/Application Support/Claude/claude_desktop_config.jsonon macOS.{ "mcpServers": { "signer": { "command": "npx", "args": ["-y", "@usenami/signer-mcp"], "env": { "SIGNER_GATEWAY_URL": "https://signer.usenami.io", "SIGNER_API_TOKEN": "sk_live_..." } } } } -
Restart Claude Desktop and look for the 🔌 plug icon. You should see five tools listed under
signer. -
Try the read-only tools first. Ask Claude:
"List the venues available through Signer, then return the current attestation document."
No funds at risk — these don't sign anything.
-
Once you trust the attestation, place a tiny test order:
"Get my Binance account, then if I have at least $20 of free margin, place a market buy for 0.001 BTC."
If anything looks wrong, the agent can call cancel_order immediately.
Quick start (ElizaOS)
ElizaOS agents reach Signer through the generic MCP plugin
@elizaos/plugin-mcp — no
Signer-specific plugin required (a native @usenami/eliza-plugin-signer may
come later). Add the plugin and point it at the package over stdio:
npm install @elizaos/plugin-mcp
Then in your character / agent config:
{
"plugins": ["@elizaos/plugin-mcp"],
"settings": {
"mcp": {
"servers": {
"signer": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@usenami/signer-mcp"],
"env": {
"SIGNER_GATEWAY_URL": "https://signer.usenami.io",
"SIGNER_API_TOKEN": "sk_live_..."
}
}
}
}
}
}
The agent now exposes the same five tools (list_venues, get_attestation,
get_account, place_order, cancel_order). Same trust model: the signing key
never enters the Eliza process — start the agent on the read-only tools
(list_venues / get_attestation) and verify the attestation before letting it
place orders.
Configuration
Environment variables passed via the env block of claude_desktop_config.json (or your client's equivalent):
| Variable | Required | Default | Notes |
|---|---|---|---|
SIGNER_GATEWAY_URL |
no | https://signer.usenami.io |
Override for self-hosted or staging deployments. |
SIGNER_API_TOKEN |
yes (for paid tools) | — | Bearer token issued by usenami.io/signer. list_venues works without one; everything else requires it. |
SIGNER_FETCH_TIMEOUT_MS |
no | 30000 |
Per-request fetch timeout in ms. Lower for CI / smoke tests; raise on slow links. Must be positive integer. |
The MCP server itself stores nothing on disk. Tokens are read from environment on startup and held in memory for the lifetime of the process — kill the agent, the token goes with it.
Tool reference
list_venues
Returns the static manifest of venues this Signer can sign for. Read-only, does not contact the gateway, works without a token. Call this first to discover what's supported.
{
"venues": [
{
"venue": "binance",
"asset_class": "perp",
"auth_scheme": "hmac_sha256",
"notes": "..."
}
],
"count": 6
}
Supported venues
venue id |
asset class | auth scheme | symbol example | notes |
|---|---|---|---|---|
binance |
perp | hmac_sha256 | BTCUSDT |
Binance USD-M futures |
okx |
perp | hmac_sha256 | BTC-USDT-SWAP |
OKX perpetual swap |
asterdex |
perp | eip712 (bsc) | BTC-USD |
Asterdex on-chain perp (BSC) |
kucoin |
perp | hmac_sha256 | XBTUSDTM |
KuCoin Futures (HMAC + encrypted passphrase); qty in contracts |
bybit |
perp | hmac_sha256 | BTCUSDT |
Bybit V5 linear (category=linear) |
hyperliquid_main |
perp | eip712 (hyperliquid) | BTC |
Hyperliquid L1 perp; account read is the public clearinghouseState |
The agent config block is identical for every venue — point SIGNER_GATEWAY_URL at your Signer and set SIGNER_API_TOKEN. Which venues a given token may trade is bound server-side to that token's policy; list_venues reports the full set the gateway can sign, not your per-token allow-list.
get_attestation
Returns the Nitro attestation document for the currently-running enclave. The PCR0 measurement here is what AWS signed when it booted the enclave; you can verify it matches the published build by hashing the corresponding EIF and comparing.
{
"pcr0": "...sha384 hex...",
"pcr1": "...",
"pcr2": "...",
"signature": "...AWS-issued...",
"issued_at": "2026-05-31T18:00:00Z"
}
Read-only.
get_account
Returns equity, free margin, and open positions for a venue.
{
"venue": "binance",
"equity_usd": 145.32,
"free_margin_usd": 92.10,
"positions": [
{ "symbol": "BTCUSDT", "qty": 0.002, "entry_price": 67120.5 }
],
"updated_at": "2026-05-31T18:01:11Z"
}
Read-only. Requires SIGNER_API_TOKEN.
place_order
Place a single market or limit order. The enclave signs the payload after checking policy caps.
Args:
venue— one ofbinance | okx | asterdex | kucoin | bybit | hyperliquid_mainsymbol— venue-native symbol (BTCUSDT,BTC-USDT-SWAP,XBTUSDTM,BTC, etc. — see the venue table above)side—buy|sellqty— base-asset quantity (e.g. 0.001 for 0.001 BTC). Not USD-notional.type—market|limitprice— required iftype=limit, ignored iftype=marketpolicy_id— optional override; defaults to the policy bound to your token
{
"venue": "binance",
"order_id": "...",
"status": "FILLED",
"filled_qty": 0.001,
"avg_fill_price": 67128.9,
"policy_id": "default",
"attested_at": "..."
}
Destructive. Requires SIGNER_API_TOKEN. v0 routes Binance/OKX to testnet until pilot graduates.
cancel_order
Cancels an outstanding order by its venue order id. Idempotent — cancelling an already-filled or non-existent order returns ok: false with a venue reason instead of erroring.
Args:
venue— same enum asplace_orderorder_id— the venue id returned byplace_order
Requires SIGNER_API_TOKEN.
Verifying the attestation
A trustworthy Signer is one whose enclave measurement matches a build you can audit. The workflow:
- Call
get_attestationand copy the returnedpcr0. - Visit usenami.io/signer/attestations.
- Cross-reference the PCR0 against the published build for the current production version.
- Optionally rebuild the EIF from source (instructions on the same page) and verify the SHA384 hash yourself.
If the published PCR0 doesn't match what get_attestation returns, don't trade. Open an issue.
What v0 deliberately does NOT do
v0 keeps the surface deliberately tight:
- No multi-tenant: one account per venue per token.
- No UPL editing UI: policies are set out-of-band on usenami.io/signer.
- No WebSocket / streaming tools — REST only.
- No cross-venue routing (
place_ordertakes one venue). - No leverage configuration (
set_leverage) — uses account defaults. - No withdrawals / transfers (closest is
cancel_order). - No TWAP / iceberg — single-shot orders only.
- stdio transport only — no SSE or remote HTTP.
If you need any of the above, file an issue describing the use case. v0 keeps the surface tight on purpose.
Development
# install deps
npm install
# typecheck + build
npm run build
# run from source against staging
SIGNER_GATEWAY_URL=https://staging.signer.usenami.io \
SIGNER_API_TOKEN=sk_test_... \
npm run dev
The transport is stdio; you'll need an MCP-aware client to actually exercise the tools. The Anthropic mcp-inspector is the fastest way to poke at it locally.
License
MIT. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。