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
- A portal with at least one access group
- API credentials from Minerstat for each person, or one set for a shared connection
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| API Credentials (default) | API token | bearerToken, accessKey and developerApiKey |
| Monitoring Only | API token | accessKey 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 managementaccessKey: Access key from the minerstat dashboard for worker monitoringdeveloperApiKey(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 monitoringdeveloperApiKey(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:
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
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.
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 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. Needsscope.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. NeedsworkerNameanddataType.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. Needsaction.manage_worker: Create, update, or delete mining workers. Needsaction.manage_customers: List, create, update, or delete customer (sub-account) records. Needsaction.manage_clocktune: List, create, update, or delete GPU overclocking (ClockTune) profiles. Needsaction.execute_worker_command: Execute remote commands on mining workers such as shutdown, reboot, restart mining, stop mining, start mining, or run a custom command. Needscommand.
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_webhookworker_temperature_alert: Fires when any GPU in any worker exceeds a configurable temperature threshold.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Minerstat there
- Tool permissions: tool filters and what employees see
- Minerstat on metorial.com: the integration overview