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

gainium-mcp

v2.0.0

Published

MCP server for Gainium trading bot platform — manage bots, deals, balances and more via AI assistants

Downloads

106

Readme

gainium-mcp

An MCP (Model Context Protocol) server for Gainium — the crypto trading bot platform. Lets AI assistants manage your bots, deals, balances, and more through a standard MCP interface.

Quick Start

1. Get your API keys

Go to Gainium API Settings and create an API key pair.

2. Add to your MCP client

Add this to your MCP configuration (VS Code, Claude Desktop, etc.):

{
  "gainium-mcp": {
    "command": "npx",
    "args": ["-y", "gainium-mcp"],
    "env": {
      "GAINIUM_API_KEY": "<your-api-key>",
      "GAINIUM_API_SECRET": "<your-api-secret>"
    }
  }
}

That's it. The server starts automatically when your AI assistant needs it.

Environment Variables

| Variable | Required | Default | Description | |---|---|---|---| | GAINIUM_API_KEY | Yes | — | Your Gainium API public key | | GAINIUM_API_SECRET | Yes | — | Your Gainium API secret | | GAINIUM_API_BASE_URL | No | https://api.gainium.io | API base URL |

Available Tools (31)

Bots — Read

| Tool | Description | |---|---| | get_dca_bots | List DCA bots with field selection and filters | | get_combo_bots | List Combo bots with field selection and filters | | get_grid_bots | List Grid bots with field selection and filters |

Bots — Create

| Tool | Description | |---|---| | create_dca_bot | Create a new DCA bot | | create_combo_bot | Create a new Combo bot | | create_grid_bot | Create a new Grid bot |

Bots — Update & Clone

| Tool | Description | |---|---| | update_dca_bot | Update DCA bot settings | | update_combo_bot | Update Combo bot settings | | clone_dca_bot | Clone a DCA bot with optional overrides | | clone_combo_bot | Clone a Combo bot with optional overrides |

Bots — Lifecycle

| Tool | Description | |---|---| | start_bot | Start a bot | | stop_bot | Stop a running bot | | archive_bot | Archive a stopped bot | | restore_bot | Restore an archived bot | | change_bot_pairs | Change trading pairs for a bot |

Deals

| Tool | Description | |---|---| | get_deals | List deals with filters (type, status, botId) | | create_terminal_deal | Create a one-time terminal deal | | update_dca_deal | Update active DCA deal settings | | update_combo_deal | Update active Combo deal settings | | start_deal | Start a new deal for a bot | | close_deal | Close an active deal | | add_funds | Add funds to a deal | | reduce_funds | Reduce funds from a deal |

User & Account

| Tool | Description | |---|---| | get_balances | Get balances across exchanges | | get_user_exchanges | List connected exchange accounts | | get_global_variables | List global variables | | create_global_variable | Create a global variable | | update_global_variable | Update a global variable | | delete_global_variable | Delete a global variable |

General

| Tool | Description | |---|---| | get_supported_exchanges | List supported exchanges | | get_screener | Crypto screener with market metrics |

Field Selection

All GET endpoints support the fields parameter for efficient payloads:

  • Presets: minimal, standard (default), extended, full
  • Custom: comma-separated dot-notation fields (e.g. _id,uuid,settings.name,profit.total)

Using minimal reduces payload size by ~85%.

API Permissions

  • Read-only key: Use get_* tools (bots, deals, balances, screener)
  • Write key: All tools including create, update, start, stop, archive

Development

# Clone and install
git clone https://github.com/nicogainium/gainium-mcp.git
cd gainium-mcp
npm install

# Build
npm run build

# Run locally (for testing)
export GAINIUM_API_KEY=your_key
export GAINIUM_API_SECRET=your_secret
node dist/server.js

Architecture

gainium-mcp/
├── src/
│   ├── server.ts          # MCP server + tool definitions (stdio transport)
│   └── gainium-client.ts  # HMAC-authenticated HTTP client for Gainium API v2
├── dist/                  # Compiled output (published to npm)
├── package.json
├── tsconfig.json
└── README.md

License

MIT