Liquid Trading MCP Server

Liquid Trading MCP Server

Enables natural language trading of Hyperliquid perpetual futures, including portfolio checks, market data, order placement with confirmation, and position management.

Category
Visit Server

README

Liquid Trading MCP Server

Trade Hyperliquid perpetual futures via natural language using the Liquid API. Connect from Claude Desktop, ChatGPT, Cursor, or any MCP-compatible client.


What it does

A fully featured trading session in natural language:

  • Check your portfolio — account equity, balances, open positions
  • Read market data — prices, order books, funding rates across all perpetual markets
  • Place and manage orders — market/limit orders with leverage, TP/SL, and confirmation widgets
  • Close positions — full or partial close with confirmation before execution

All sizes are in USD notional. All markets are perpetual futures on Hyperliquid.


MCP Tools

Tool Description Input
get_markets List all tradeable perpetual markets —
get_ticker Price, volume, funding rate for a symbol { symbol }
get_orderbook Bids and asks for a symbol { symbol, depth? }
get_account Equity, available balance, margin used —
get_positions All open positions with PnL —
place_order Place a buy/sell order (confirmation required) { symbol, side, size, type?, price?, leverage?, tp?, sl? }
cancel_order Cancel an open order { order_id }
close_position Close a position fully or partially (confirmation required) { symbol, size? }

Safety

place_order and close_position require explicit confirmation before execution — these are real financial transactions. A confirmation widget is shown first; the order is only submitted after the user confirms.


Getting Started

Prerequisites

Setup

# Install dependencies
bun install

# Configure environment
cp .env.example .env
# Edit .env with your LIQUID_API_KEY and LIQUID_API_SECRET

# Run in dev mode
bun run dev

The server starts at http://localhost:3000. Open /inspector to test tools interactively.


Connecting from Claude Desktop

Add to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "liquid-trading": {
      "command": "bun",
      "args": ["run", "start"],
      "cwd": "/path/to/liquid-trading",
      "env": {
        "LIQUID_API_KEY": "lq_...",
        "LIQUID_API_SECRET": "sk_..."
      }
    }
  }
}

Connecting from ChatGPT

Point ChatGPT to the HTTP URL:

http://localhost:3000

Interactive widgets are rendered directly in the conversation for market data, positions, and order confirmations.


Tech Stack

  • mcp-use — MCP server framework with widget support
  • Liquid API — REST API wrapping Hyperliquid perpetual futures
  • React — interactive ChatGPT widgets
  • Zod — schema validation for all tool inputs
  • TypeScript strict mode

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured