A minimal clone of Liquid Co-Invest: an MCP server that turns Claude (or ChatGPT) into a trading co-pilot. It gives the model live market data and a paper-trading engine, all through public APIs that need no keys.
The model does the analysis and idea generation. This server only does two things: supply data and execute (paper) fills — exactly the split Liquid uses.
| Layer | Source | Auth needed |
|---|---|---|
| Crypto perps | Hyperliquid info API |
none |
| US stocks | Yahoo Finance chart API | none |
| Execution | Local paper engine (JSON file) | none |
| Interface | MCP server (stdio) | — |
State persists to ~/.dxt/portfolio.json. Starts at $100,000 paper cash.
get_crypto_quote(symbol)— mark price, 24h change, funding rate, open interestget_crypto_movers(limit)— top perps by 24h volumeget_stock_quote(symbol)— price, day range, % change, volumeplace_trade(symbol, asset_type, side, qty, confirm)— two-step confirm flowget_portfolio()— cash, positions valued at live prices, unrealized PnL, equityget_trade_history(limit)reset_portfolio()
npm install
npm run buildEdit claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/, Linux: ~/.config/Claude/):
{
"mcpServers": {
"dxt": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO/DXT/dist/index.js"]
}
}
}Restart Claude Desktop. Then try:
"What's BTC doing right now, and how does its funding compare to ETH?" "Buy me 0.25 BTC and 10 shares of NVDA in paper trading." "Show my portfolio."
npm run inspect # opens the MCP Inspector UILiquid routes real orders to DEXs (Hyperliquid for crypto perps, Ostium for
stocks/commodities/FX, Lighter for more crypto) via a non-custodial wallet. This POC
swaps that execution layer for a local paper engine. To go live you'd replace
src/portfolio.ts with the Hyperliquid / Ostium SDKs and add wallet signing — the
data layer and MCP interface stay the same.
src/
index.ts MCP server + tool definitions
datasources.ts Hyperliquid + Yahoo Finance fetchers
portfolio.ts paper-trading engine (positions, PnL, persistence)