npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tradexcards/mcp

v1.0.1

Published

MCP Server for trading Pokemon card perpetuals on TradeX (Solana). Search cards, check prices, simulate trades, and execute positions.

Downloads

160

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