Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Descripción del creador (original en inglés)
MCP server for Gainium — manage trading bots, deals, and balances via AI assistants
Estos tres nunca se combinan en una sola puntuación: las opiniones, las mediciones y la popularidad son cosas distintas.
Todavía no escribimos un resumen sencillo para este. Abajo están los datos que leímos del registro.
Elige la app de IA que usas y copia la configuración.
GAINIUM_API_KEY, GAINIUM_API_SECRET, GAINIUM_PAPER_ONLY, GAINIUM_ALLOWED_BOT_IDLos valores marcados como secretos son llaves de tu cuenta. Nunca los compartas ni los pegues en un chat.
Necesitas
¿Qué app usas?
Elige tu app arriba. La recordamos, así que la próxima vez el botón dirá “Instalar en …”.
Funciona en Claude para web, escritorio y móvil:
https://mcp.gainium.io/mcpAbre Claude Desktop → Settings → Developer → Edit Config y pega esto en 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"
}
}
}
}Ejecuta esto en tu terminal
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-mcpCompleta los valores vacíos antes de ejecutarlo.
Pégalo en .cursor/mcp.json de tu proyecto, o en ~/.cursor/mcp.json
{
"mcpServers": {
"gainium": {
"url": "https://mcp.gainium.io/mcp"
}
}
}Pégalo en .cursor/mcp.json de tu proyecto, o en ~/.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"
}
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
Pégalo en .vscode/mcp.json de tu proyecto
{
"servers": {
"gainium": {
"type": "http",
"url": "https://mcp.gainium.io/mcp"
}
}
}Pégalo en .vscode/mcp.json de tu proyecto
{
"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"
}
}
}
}Tu navegador te pide permiso para abrir la app; luego la app muestra la configuración y te pide confirmar. Los valores de las claves quedan vacíos para que los completes tú.
ChatGPT solo se conecta a servidores en internet:
https://mcp.gainium.io/mcpLos nombres de los menús pueden variar un poco según el plan y con el tiempo.
Tu elección se guarda en una cookie en este dispositivo; no necesitas cuenta.
GAINIUM_PAPER_ONLY envGAINIUM_ALLOWED_BOT_ID envEsta configuración se genera a partir de la ficha del creador en el registro. Si el README dice otra cosa, sigue el README.
Todavía no hemos leído la lista de herramientas de este servidor; revisamos los endpoints por turnos.
Revisamos información que cualquiera puede ver; no hemos leído el código. Las revisiones que no aplican no se cuentan. · Revisado el 7 nov 2026
El nombre en el registro se verificó con el dominio gainium.io (el registro comprueba quién es dueño del dominio)
Todavía no hemos leído este repo en GitHub
Todavía no hemos leído este repo en GitHub
Aún sin revisar; revisamos los endpoints por turnos
Aún sin revisar; revisamos los endpoints por turnos
Aún sin revisar; leemos la lista de herramientas cuando revisamos el endpoint
Comparado con todos los servidores activos de esta categoría en el registro. Las estrellas solo cuentan cuando quien lo publica es dueño del repo.
Superó 1 de 1 revisiones básicas aplicables. No hemos leído el código. Antes de agregar una clave o un token, revisa qué acceso pide el servidor y usa una clave que tenga solo los permisos que necesitas.
Debes completar: GAINIUM_API_KEY, GAINIUM_API_SECRET
Funciona de las dos formas: instálalo en tu computadora o conéctate a la versión en la nube.
El repo de GitHub cambió por última vez –, y la última versión (3.3.0) llegó al registro hace 5 meses.
Las apps compatibles con MCP, como Claude Desktop, Claude Code, Cursor y VS Code. Se conecta por URL, así que también funcionan las apps que aceptan servidores MCP remotos, como ChatGPT en modo desarrollador.
En la misma categoría: Finance Toolkit, SolidInvoice, Korea Tax Calculator
Servidores de la misma categoría hechos por otros creadores, ordenados por estrellas.
Cómo leer una tarjeta:★ Estrellas de GitHubiTres pilares: reseñas · revisiones · usoiActualizado = fecha en que se publicó la última versión en el registroi
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.
Copiado tal cual del repo del creador. PopNx MCP no lo ha revisado ni lo respalda. Se quitaron HTML, imágenes y scripts. Los enlaces llevan fuera de este sitio.
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