Purpose
signer-mcp is the public MCP server for Usenami Signer, aimed at scenarios that need to let AI agents trade real CEX/DEX perpetual contract accounts directly. It attempts to solve a common problem: existing agent frameworks usually load exchange API keys into the agent process, causing keys to appear on disk, in environment variables, in npm packages, in prompt tool calls, and in shell history, so a single prompt injection, supply chain attack, or log leak could cause key exfiltration. signer-mcp's approach is to generate and store signing keys inside an AWS-certified Nitro Enclave; the agent can only request signatures for specific orders, subject to explicit policies (such as per-asset caps, per-period caps, and allowed exchanges), but cannot read the keys.
Main Capabilities
This MCP server provides seven tools: list_venues, get_attestation, get_verified_price, get_account, place_order, place_hedge, cancel_order.
- list_venues: Returns a static list of exchanges. Read-only, does not contact the gateway, and requires no token. Each entry has a status (live means the enclave will sign for it, denied means the policy rejects it), and some entries have a network field.
- get_attestation: Fetches a Nitro attestation document with a fresh nonce from the gateway, verifies it locally, and returns it, reading PCR0/PCR1/PCR2. Version 0.7.1 fixed the previous issue of not sending a nonce and not performing verification. Verification includes five checks, and it is considered verified only if all pass; root_pinned is the key item, used to prevent the gateway from forging the certificate chain.
- get_verified_price: Reads Uniswap V3 token prices from The Graph and returns only when four checks pass. It runs entirely outside the enclave and is a read rather than a signature. Each query costs 1 cent USDC (Base network), goes through the x402 gateway, and requires X402_PRIVATE_KEY; without that key it refuses and returns no_payer_key.
- get_account: Returns the equity, available margin, and open positions for an exchange.Read-only, requires SIGNER_API_TOKEN.
- place_order: Places a market order or limit order, with the payload signed by the enclave.
- place_hedge: A two-leg hedge, with both legs signed server-side and triggering exchange calls; authentication information does not reach the client process.
- cancel_order: Cancels an order.
Usage
In Claude Desktop, edit claude_desktop_config.json (on macOS the path is ~/Library/Application Support/Claude/claude_desktop_config.json), add the mcpServers configuration, with the command as npx, the argument as -y @usenami/signer-mcp@^0.6.0, and environment variables including SIGNER_GATEWAY_URL and SIGNER_API_TOKEN. You must pin to ^0.6.0 or higher, because the default gateway in 0.5.0 and earlier redirects with a 301 to a marketing page, causing network tools to receive HTML and error out. After restarting Claude Desktop, you should see seven tools. It is recommended to first use the read-only tools (list_venues, get_attestation) to verify the attestation document, and then place the first order after confirming the policy allows it.
In ElizaOS, you can use the native plugin @usenami/plugin-signer, or connect to this MCP server via stdio through the generic bridge @elizaos/plugin-mcp.
Environment variables are passed in through the configured env block. The MCP server itself does not store anything on disk; the token is read from the environment at startup and kept in memory, disappearing when the process ends.
Applicable Scenarios
Suitable for users who want to let AI agents execute trades on real exchanges while preventing signing keys from entering the agent process or the local environment. Supports exchanges such as Binance, OKX, Asterdex, KuCoin, Bybit, and Hyperliquid.
Limitations and Notes
The current status is v0 alpha, an invitation-only pilot, with no self-service registration. As of September 21, 2026, the hosted Signer has been shut down; the package can still be installed, and list_venues Still answerable (static inventory), but any operation requiring gateway access will fail; on October 1, 2026, get_attestation returned Cloudflare 522. The invitation-only pilot is paused.
Orders execute for real: which exchange and network an order hits is determined by the policy bound to the token, and neither this page nor list_venues can tell you; you need to ask the token issuer. There is no implicit testnet safety net; assume all orders are real mainnet funds.
In get_account, place_order, and cancel_order, signed authentication headers pass through the client. The gateway returns {method, url, headers}, and this package then sends the request itself. These headers contain API keys (X-MBX-APIKEY for Binance, OK-ACCESS-KEY for OKX, and OKX's passphrase travels with it as well). Only the signing key remains inside the enclave. Any entity that can read process memory, logs, or outbound traffic can read these headers. The client has no host allowlist and will send to any URL specified by the gateway, so you must pin a trusted gateway and verify its authentication. place_hedge is the exception: both legs are signed and invoked server-side, and authentication information does not reach the client process.
get_verified_price is paid, and when it does not return a price it does not silently fall back to an unverified source.
Attestation documentation cannot prove that PCR0 corresponds to published source code, nor can it explain past signatures; you need to rebuild and compare via a public clone or query an on-chain registry.