Gainium MCP logo

Gainium MCP

by Gainium

Manage Gainium crypto bots, deals, accounts, backtests, and market data through MCP tools.

Install Gainium MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "gainium-gainium-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gainium-mcp"
      ],
      "env": {
        "GAINIUM_API_KEY": "YOUR_VALUE_HERE",
        "GAINIUM_API_SECRET": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env GAINIUM_API_KEY=YOUR_VALUE_HERE --env GAINIUM_API_SECRET=YOUR_VALUE_HERE --transport stdio gainium-gainium-mcp -- npx -y gainium-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y gainium-mcp

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Gainium/gainium-mcp connects AI assistants to Gainium's crypto trading platform for operating DCA, Combo, and Grid bots. Its MCP tools cover bot and deal management, account balances, exchange details, backtests, schema discovery, global variables, and cryptocurrency screening. It runs locally over stdio by default, or as an HTTP service using Streamable HTTP and legacy SSE transports. Reach for it when an assistant needs to inspect or modify Gainium trading activity through authenticated API access.

Use cases

  • List and inspect DCA, Combo, or Grid bots
  • Create, update, clone, and control trading bots
  • Review deals, balances, exchanges, and market metrics
  • Submit and inspect Gainium backtests
  • Discover bot and indicator schemas

Key features

  • DCA, Combo, and Grid bot management
  • Deal creation and lifecycle actions
  • Synchronous and asynchronous backtest requests
  • Account balances and exchange information
  • Cryptocurrency market screening
  • stdio, Streamable HTTP, and SSE transports

Tools17

What Gainium MCP lets your agent do. Expand a tool for its parameters.

Self-reported~246 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

28/28 checks healthy over the last 118d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · gainium-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars2Stargazers on the source repository.
npm downloads284Package downloads in the last 30 days.
Last commit10d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed17Callable tools this server registers over MCP.

How Gainium MCP works

What Gainium/gainium-mcp does

Gainium/gainium-mcp exposes Gainium's crypto trading operations through the Model Context Protocol. It lets an MCP-compatible assistant inspect and manage DCA, Combo, and Grid bots, including creating, updating, cloning, starting, stopping, archiving, restoring, and changing bot pairs.

The server also handles deal operations for DCA, Combo, and terminal deals. Assistants can list or retrieve deals, create new ones, update active deals, close them, or add and reduce funds. Account and market tools provide balances, connected and supported exchanges, global variables, and cryptocurrency market metrics through the screener.

Backtesting is included, with tools for validation, estimation, synchronous requests, asynchronous requests, and inspecting submitted backtest jobs. The discover tool provides schema information for bot types and indicators, which can help an assistant construct requests that match Gainium's available configuration.

How it works

The default deployment uses stdio: an MCP client starts the process with npx -y gainium-mcp, and the process reads Gainium credentials from its environment. API requests use GAINIUM_API_KEY and GAINIUM_API_SECRET. In header-based stdio or hosted deployments, request headers can provide credentials and take precedence over environment values.

HTTP mode is enabled with GAINIUM_MCP_TRANSPORT=http. The process then serves the current Streamable HTTP transport at the configured MCP path and also provides the older SSE endpoints for clients that still use them. OAuth 2.1 protected-resource mode is available for hosted deployments. In that mode, clients send Bearer tokens, which are checked through a token-introspection endpoint and resolved to the user's Gainium credentials and restrictions.

Read and write operations are separated through API permissions and MCP safety annotations. Read-only keys can use inspection, discovery, screener, and backtest-information operations. Write keys are needed for bot, deal, global-variable, and backtest submission actions.

Setup and configuration

Create a Gainium API key pair in Gainium API Settings, then add the server to the MCP client's configuration. A local stdio configuration uses:

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

The default API base URL is https://api.gainium.io. HTTP deployments can set the bind host, port, MCP path, SSE paths, and allowed hosts with environment variables. Hosted OAuth deployments additionally configure an issuer, introspection secret, and public URL. The server supports stdio, http, streamable-http, sse, and http-sse transport values.

Tools and capabilities

The toolset contains these operation groups:

  • Bots: list_bots, get_bot, create_bot, update_bot, clone_bot, and manage_bot.
  • Deals: list_deals, get_deal, create_deal, update_deal, and manage_deal.
  • Backtests: run_backtest and backtest_info.
  • Discovery and account data: discover, get_account, get_screener, and manage_global_variable.

List and get operations support field selection. Presets include minimal, standard, extended, and full; custom comma-separated dot-notation fields are also supported. The minimal preset can substantially reduce response payload size.

Limitations and notes

Write-capable tools can change bots, deals, global variables, and backtest jobs, so credentials and client permissions should be selected carefully. Read-only keys cannot perform those actions. HTTP deployments require appropriate host protection, and OAuth mode applies token audience checks when a public URL is configured. The SSE endpoints are retained for compatibility but are described as deprecated in favor of Streamable HTTP.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gainium MCP

Gainium/gainium-mcp is an MCP server that connects AI assistants to Gainium's crypto trading platform. Its main tools manage DCA, Combo, and Grid bots and deals, retrieve account and market data, run and inspect backtests, discover schemas, and manage global variables through authenticated Gainium API access.

Install it through an MCP client's stdio configuration using `npx -y gainium-mcp`. Add `GAINIUM_API_KEY` and `GAINIUM_API_SECRET` to the server process environment, using an API key pair created in Gainium API Settings.

Set `GAINIUM_MCP_TRANSPORT=http` and start the server, optionally configuring `GAINIUM_MCP_HOST` and `GAINIUM_MCP_PORT`. HTTP mode exposes Streamable HTTP at `/mcp` by default and also provides `/sse` and `/messages` for deprecated SSE clients.

Yes, a read-only Gainium API key limits access to read tools such as listing and retrieving resources, schema discovery, backtest information, and the screener. Write operations and backtest submission require a write-capable key.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGainium MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gainium-gainium-mcp?style=directory)](https://allmcps.com/mcp/gainium-gainium-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/gainium-gainium-mcp"><img src="https://allmcps.com/api/badge/gainium-gainium-mcp?style=directory" alt="Gainium MCP on AllMCPs" /></a>