MetorialDocs

Set up Minerstat in Metorial for Claude, ChatGPT and Cursor

Share Minerstat with your team in Claude, ChatGPT and Cursor through Metorial: API credentials or monitoring only sign-in, 12 tools (7 read-only).

To give your team Minerstat in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Minerstat integration in a Metorial portal, and each person connects with API credentials. Agents can monitor cryptocurrency mining workers, inspect real-time and historical mining data, and read worker configuration. The integration has 12 tools, 7 read-only and 5 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Minerstat in a portal and how each person connects
  • What Minerstat asks for when you connect, and where to find it
  • How to keep the 7 read-only tools and reject the other 5

Before you start

Sign-in methods

MethodTypeWhat a person provides
API Credentials (default)API tokenbearerToken, accessKey and developerApiKey
Monitoring OnlyAPI tokenaccessKey and developerApiKey

Also available: Developer Data Only.

The portal and metorial setup use API Credentials unless someone picks another method.

API Credentials

To connect, a person enters these values:

  • bearerToken: Bearer token from the minerstat dashboard API page for worker management
  • accessKey: Access key from the minerstat dashboard for worker monitoring
  • developerApiKey (optional): Developer API key from the minerstat Developer Portal for coins, hardware, and pools data

Monitoring Only

To connect, a person enters these values:

  • accessKey: Access key from the minerstat dashboard for worker monitoring
  • developerApiKey (optional): Developer API key from the minerstat Developer Portal for coins, hardware, and pools data

Admin: share Minerstat in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Minerstat. Under Auth Method, keep API Credentials or pick another. For how members connect, choose Each person connects so everyone enters their own API credentials, or Shared connection to enter the API credentials once for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Minerstat.

Choose who gets it

Add the access groups that should see Minerstat. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Minerstat integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search minerstat

Employee: connect Minerstat

In the portal

Open Minerstat in the catalog

Sign in to your portal and open Minerstat. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API credentials (bearerToken and accessKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search minerstat
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses API Credentials. To connect with Monitoring Only instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Minerstat connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list minerstat
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 7 read-only tools, such as get_coins and get_pools, and lose the 5 destructive tools, such as manage_tags or manage_worker.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list minerstat
metorial tools <integration-id>
metorial call <integration-id> get_mining_statistics -d '{"scope":"group"}'

metorial tools lists the 12 tools, minus any you rejected. get_mining_statistics needs scope, so replace the placeholders. It retrieves aggregate mining statistics for a group, the entire account (global), or the 24-hour log.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (7)

  • get_mining_statistics: Retrieve aggregate mining statistics for a group, the entire account (global), or the 24-hour log. Needs scope.
  • get_coins: Retrieve cryptocurrency coin data including market prices, mining difficulty, algorithms, rewards, and network hashrate.
  • get_pools: Retrieve information about mining pools including supported coins, fees, payout thresholds, and reward methods.
  • get_worker_history: Retrieve historical data for a specific worker. Needs workerName and dataType.
  • list_workers: Retrieve real-time status for all mining workers or a specific worker.
  • get_hardware: Retrieve mining hardware specifications including hashrate benchmarks, power consumption, and technical specs for GPUs and ASIC devices.
  • get_worker_configuration: Read worker configuration and system details through the management API.

Destructive tools (5)

  • manage_tags: List, create, update, or delete pool and wallet address tags. Needs action.
  • manage_worker: Create, update, or delete mining workers. Needs action.
  • manage_customers: List, create, update, or delete customer (sub-account) records. Needs action.
  • manage_clocktune: List, create, update, or delete GPU overclocking (ClockTune) profiles. Needs action.
  • execute_worker_command: Execute remote commands on mining workers such as shutdown, reboot, restart mining, stop mining, start mining, or run a custom command. Needs command.

Triggers

Minerstat has 4 triggers, which fire on events in Minerstat:

  • worker_status_change: Fires when a worker changes status (e.g. online to offline, offline to online, or becomes idle).
  • worker_hashrate_drop: Fires when a worker's hashrate drops significantly compared to the previously recorded hashrate.
  • inbound_webhook
  • worker_temperature_alert: Fires when any GPU in any worker exceeds a configurable temperature threshold.

Next steps