Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
作者による説明(英語の原文)
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
GAINIUM_API_KEY, GAINIUM_API_SECRET, GAINIUM_PAPER_ONLY, GAINIUM_ALLOWED_BOT_ID「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
ウェブ、デスクトップ、モバイルのClaudeで使えます:
https://mcp.gainium.io/mcpClaude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"gainium": {
"command": "npx",
"args": [
"-y",
"gainium-mcp"
],
"env": {
"GAINIUM_API_KEY": "your-value",
"GAINIUM_API_SECRET": "your-value",
"GAINIUM_PAPER_ONLY": "your-value",
"GAINIUM_ALLOWED_BOT_ID": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add --transport http gainium https://mcp.gainium.io/mcpclaude mcp add gainium --env GAINIUM_API_KEY=your-value --env GAINIUM_API_SECRET=your-value --env GAINIUM_PAPER_ONLY=your-value --env GAINIUM_ALLOWED_BOT_ID=your-value -- npx -y gainium-mcp動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"gainium": {
"url": "https://mcp.gainium.io/mcp"
}
}
}プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"gainium": {
"command": "npx",
"args": [
"-y",
"gainium-mcp"
],
"env": {
"GAINIUM_API_KEY": "your-value",
"GAINIUM_API_SECRET": "your-value",
"GAINIUM_PAPER_ONLY": "your-value",
"GAINIUM_ALLOWED_BOT_ID": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"gainium": {
"type": "http",
"url": "https://mcp.gainium.io/mcp"
}
}
}プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"gainium": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gainium-mcp"
],
"env": {
"GAINIUM_API_KEY": "your-value",
"GAINIUM_API_SECRET": "your-value",
"GAINIUM_PAPER_ONLY": "your-value",
"GAINIUM_ALLOWED_BOT_ID": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
ChatGPTがつなげるのは、インターネット上のサーバーだけです:
https://mcp.gainium.io/mcpメニューの名前は、プランや時期によって少し違うことがあります。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
GAINIUM_PAPER_ONLY envGAINIUM_ALLOWED_BOT_ID envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのツール一覧はまだ読み取っていません。エンドポイントは順番にチェックしています。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック
レジストリ名はドメイン gainium.io で確認済みです(レジストリがドメインの所有を確認しています)
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
まだチェックしていません。エンドポイントは順番にチェックしています
まだチェックしていません。エンドポイントは順番にチェックしています
まだチェックしていません。エンドポイントをチェックするときにツール一覧を読み取ります
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:GAINIUM_API_KEY, GAINIUM_API_SECRET
どちらでも使えます。パソコンにインストールしても、クラウド版につないでもかまいません。
GitHubリポジトリの最終更新は–、最新バージョン(3.3.0)がレジストリに届いたのは5 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URLでつながるので、リモートMCPサーバーに対応したアプリ(開発者モードのChatGPTなど)でも使えます。
同じカテゴリには:Finance Toolkit, SolidInvoice, Korea Tax Calculator
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.
Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
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.
Detailed setup and connection documentation is available in docs/using-gainium-mcp.md.
Go to Gainium API Settings and create an API key pair.
Add this to your MCP configuration (VS Code, Claude Desktop, etc.):
{
"gainium-mcp": { "command": "npx", "args": ["-y", "gainium-mcp"], "env": { "GAINIUM_API_KEY": " ", "GAINIUM_API_SECRET": " " } } }
That's it. The server starts automatically when your AI assistant needs it.
This local stdio mode uses GAINIUM_API_KEY and GAINIUM_API_SECRET from the server process environment.
| 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 |
GAINIUM_MCP_TRANSPORT | No | stdio | Transport mode: stdio, http, streamable-http, sse, or http-sse |
GAINIUM_MCP_HOST | No | 127.0.0.1 | Bind host for HTTP mode |
GAINIUM_MCP_PORT | No | 3000 | Bind port for HTTP mode |
GAINIUM_MCP_ALLOWED_HOSTS | No | — | Comma-separated hostnames (optionally host:port) accepted in the Host/Origin headers. In HTTP mode with env credentials and no OAuth, only loopback, IP-literal and these hosts are served (DNS rebinding protection) |
GAINIUM_MCP_HTTP_PATH | No | /mcp | Streamable HTTP endpoint path |
GAINIUM_MCP_SSE_PATH | No | /sse | Deprecated SSE GET endpoint path |
GAINIUM_MCP_MESSAGES_PATH | No | /messages | Deprecated SSE POST endpoint path |
GAINIUM_OAUTH_ISSUER | No | — | Authorization-server base URL. Setting this (with MCP_INTROSPECTION_SECRET, in HTTP mode) enables OAuth protected-resource mode |
GAINIUM_INTROSPECTION_URL | No | /oauth/introspect | Token introspection endpoint |
MCP_INTROSPECTION_SECRET | No | — | Shared secret presented to the introspection endpoint (must match the auth server) |
GAINIUM_MCP_PUBLIC_URL | No | derived from request | Public base URL used in the protected-resource metadata |
OPENAI_APPS_CHALLENGE_TOKEN | No | — | When set, served as plain text at /.well-known/openai-apps-challenge for OpenAI Apps domain verification |
gainium-mcp supports three deployment models:
GAINIUM_API_KEY and GAINIUM_API_SECRET from env vars.Authorization: Bearer . See OAuth 2.1 hosted mode below.X-API-Key and X-API-Secret headers so one shared server can serve many users.In header/stdio mode, request headers take priority, falling back to GAINIUM_API_KEY / GAINIUM_API_SECRET. When OAuth mode is enabled, the Bearer token is required and the X-API-Key/X-API-Secret headers are ignored.
This is the mode used for the public https://mcp.gainium.io/mcp endpoint and the Anthropic Claude connector directory (which requires OAuth and forbids API-key headers).
Enable it by setting, in HTTP mode:
export GAINIUM_MCP_TRANSPORT=http
export GAINIUM_OAUTH_ISSUER=https://app.gainium.io # Gainium authorization server export MCP_INTROSPECTION_SECRET= # must match the auth server export GAINIUM_MCP_PUBLIC_URL=https://mcp.gainium.io # this server's public URL
node dist/server.js
When enabled, the server:
/.well-known/oauth-protected-resource and /.well-known/oauth-protected-resource/mcp, advertising the authorization server.WWW-Authenticate: Bearer resource_metadata="…" header, so clients can discover the auth server and run the OAuth flow (Dynamic Client Registration + PKCE).(apiKey, apiSecret) and per-key restrictions (read/write, paper-only, single-bot), which are still enforced server-side. Introspection results are cached briefly.The local stdio path is unaffected by these variables.
By default, gainium-mcp runs over stdio for MCP clients that spawn local processes. To run it as an HTTP server instead:
export GAINIUM_MCP_TRANSPORT=http
export GAINIUM_MCP_HOST=127.0.0.1 export GAINIUM_MCP_PORT=3000 node dist/server.js
When HTTP mode is enabled, the server exposes both transport styles:
GET|POST|DELETE /mcp for the current Streamable HTTP transportGET /sse plus POST /messages?sessionId=... for deprecated HTTP+SSE clientsThis makes one server process compatible with both modern MCP HTTP clients and older SSE-based integrations. In hosted mode, authenticate with OAuth (see OAuth 2.1 hosted mode) or, for self-hosted/legacy setups, send X-API-Key and X-API-Secret on each request.
As of v3.0.0 the toolset is consolidated: a single tool per operation, with a botType / dealType / action discriminator instead of one tool per variant. Every tool carries an MCP safety annotation — read-only tools set readOnlyHint, write tools set destructiveHint.
| Tool | Access | Description |
|---|---|---|
list_bots | read | List bots by type (dca, combo, grid) with filters and field selection |
get_bot | read | Get a single bot by id and type |
create_bot | write | Create a bot (dca, combo, or grid) |
update_bot | write | Update bot settings |
clone_bot | write | Clone a bot with optional overrides |
manage_bot | write | Lifecycle action: start, stop, archive, restore, changePairs |
| Tool | Access | Description |
|---|---|---|
list_deals | read | List deals by type (dca, combo, terminal) with filters |
get_deal | read | Get a single deal by id and type |
create_deal | write | Create a deal |
update_deal | write | Update an active deal |
manage_deal | write | Deal action: close, addFunds, reduceFunds |
| Tool | Access | Description |
|---|---|---|
run_backtest | write | Run a backtest: validate, estimate, async, or sync (request/requestSync submit a job — not read-only) |
backtest_info | read | List backtest requests or get one by ID |
| Tool | Access | Description |
|---|---|---|
discover | read | Schema discovery for bot types and indicators |
get_account | read | Balances, connected exchanges, supported exchanges, and global variables |
get_screener | read | Cryptocurrency screener with market metrics |
manage_global_variable | write | Global variable action: create, update, delete |
All GET endpoints support the fields parameter for efficient payloads:
minimal, standard (default), extended, full_id,uuid,settings.name,profit.total)Using minimal reduces payload size by ~85%.
list_*, get_*, discover, backtest_info, get_screener, list_presets)create_*, update_*, clone_bot, manage_bot, manage_deal, manage_global_variable, apply_preset, and run_backtest/mcp with GAINIUM_READONLY=true, served at mcp.gainium.io/read): exposes and allows only the 9 readOnlyHint tools — run_backtest and all write tools are excludedGAINIUM_MCP_PUBLIC_URL is set, the server treats as its RFC 8707 resource. An access token whose introspected aud is a *different* resource is rejected — a token minted for mcp.gainium.io/read can't be replayed against mcp.gainium.io/mcp, and vice versa. Tokens with no aud (legacy grants) are still accepted.# Clone and install
git clone https://github.com/gainium/gainium-mcp.git cd gainium-mcp npm install
npm run build
export GAINIUM_API_KEY=your_key export GAINIUM_API_SECRET=your_secret node dist/server.js
export GAINIUM_MCP_TRANSPORT=http export GAINIUM_MCP_PORT=3000 node dist/server.js
gainium-mcp/
├── src/ │ ├── server.ts # MCP server + tool definitions (stdio + HTTP/SSE transports) │ └── gainium-client.ts # HMAC-authenticated HTTP client for Gainium API v2 ├── dist/ # Compiled output (published to npm) ├── package.json ├── tsconfig.json └── README.md
MIT