> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Minerstat in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/minerstat
Last updated: 2026-11-24

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 will 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](https://metorial.com/docs/platform/workforce/portals) 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](https://metorial.com/docs/platform/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 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

1. **Open Shared Resources**

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

2. **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.

3. **Limit the tools**

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

4. **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:

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

## Employee: connect Minerstat

### In the portal

1. **Open Minerstat in the catalog**

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

2. **Authenticate**

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

3. **Confirm**

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

### With the CLI

```bash
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.

```bash
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](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
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

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Minerstat there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Minerstat on metorial.com](https://metorial.com/integrations/minerstat): the integration overview