TradeX MCP Server

TradeX MCP Server

Enables AI agents to research, analyze, and trade Pokemon card perpetual futures on the TradeX platform. It supports market data retrieval, trading simulations, and secure transaction execution using local Solana keypairs.

Category
访问服务器

README

TradeX MCP Server

A Model Context Protocol server that enables AI agents to research, analyze, and trade Pokemon card perpetual futures on the TradeX platform.

npm: @tradex/mcp
Source: GitHub

Installation

Security: Use a dedicated trading wallet with only the funds you intend to trade. Your keypair never leaves your machine - all signing is done locally.

Claude Code

claude mcp add tradex -- npx -y @tradex/mcp

For trade execution, pass your keypair:

claude mcp add tradex -e TRADEX_KEYPAIR=/path/to/keypair.json -- npx -y @tradex/mcp

Omit TRADEX_KEYPAIR for read-only mode (search cards, check prices, no trading).

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

Read-only mode:

{
  "mcpServers": {
    "tradex": {
      "command": "npx",
      "args": ["-y", "@tradex/mcp"]
    }
  }
}

With trade execution:

{
  "mcpServers": {
    "tradex": {
      "command": "npx",
      "args": ["-y", "@tradex/mcp"],
      "env": {
        "TRADEX_KEYPAIR": "/path/to/your/keypair.json"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project root:

{
  "mcpServers": {
    "tradex": {
      "command": "npx",
      "args": ["-y", "@tradex/mcp"]
    }
  }
}

Environment Variables

Variable Description Default
TRADEX_KEYPAIR Path to Solana keypair JSON (none - read-only)
TRADEX_API_URL Backend API URL https://backend.tradex.cards
TRADEX_RPC_URL Solana RPC URL https://api.mainnet-beta.solana.com

Tools

Read-Only (always available)

Tool Description
get_market_movers Top gainers, losers, and most volatile cards
get_portfolio Complete portfolio with computed PnL
get_trading_signals Trading signals and recommendations
prepare_trade Validate a trade before execution
simulate_trade Simulate trade with PnL scenarios
search_cards Search Pokemon cards by name
get_card_details Detailed card info with price history
batch_get_cards Fetch multiple cards at once
get_tradable_products List all tradable product IDs
get_trading_config Trading parameters (leverage, fees)

Execution (require keypair)

Tool Description
open_position Open a long/short position
close_position Close an existing position
deposit Deposit USDC into trading account
withdraw Withdraw USDC from trading account
get_wallet_status Check wallet balance and status

Resources

The server provides documentation resources:

  • tradex://docs/trading-guide - Trading guide and best practices
  • tradex://docs/api-reference - OpenAPI specification

Example Usage

Once installed, ask Claude:

Research:

  • "What are the biggest movers in Pokemon cards today?"
  • "Show me trading signals for Charizard cards"
  • "Simulate a $100 long position on product 517044 with 5x leverage"

Trading (with keypair):

  • "Check my wallet status"
  • "Deposit $50 USDC into my trading account"
  • "Open a $20 long position on Charizard with 3x leverage"
  • "Close my position on product 517044"

Security

  • Private keys are stored locally and never transmitted
  • Transactions are signed locally using @solana/web3.js
  • All trades are validated before execution
  • Transaction parameters fetched from the TradeX backend

API Endpoints

The MCP server connects to:

Resource URL
Backend API https://backend.tradex.cards
API Documentation https://tradex.cards/docs
OpenAPI Spec https://backend.tradex.cards/api/docs/json
Trading Guide https://tradex.cards/SKILL.md

Development

# Install dependencies
bun install

# Build
bun run build

# Run locally
bun run dev

License

Business Source License 1.1 (BUSL-1.1), non-commercial use only. Automatically changes to GNU GPLv3 on 2030-02-18.

mcp

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选