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

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

Share MaintainX with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 28 tools (15 read-only).

---

To give your team MaintainX in Claude, ChatGPT, Cursor and other AI clients, an admin shares the MaintainX integration in a Metorial portal, and each person connects with an API key. Agents can create, update, and track work orders and work requests. The integration has 28 tools, 15 read-only, 9 write and 4 destructive, plus 4 triggers.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from MaintainX for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Key** | API token | `token` |

### API Key

To connect, a person enters:

- `token`: MaintainX API Key. Generate one from Settings > Integrations > New Key in your MaintainX account.

### Setup settings

Setup also asks for:

- `organizationId` (optional): MaintainX Organization ID. Required when using a Multi-Organization Token.

## Admin: share MaintainX 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 MaintainX. For how members connect, choose **Each person connects** so everyone enters their own API key, or **Shared connection** to enter one API key for everyone.

3. **Limit the tools**

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

4. **Choose who gets it**

   Add the access groups that should see MaintainX. 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 MaintainX integration. Once it exists, check which groups have it:

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

## Employee: connect MaintainX

### In the portal

1. **Open MaintainX in the catalog**

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

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API key (token).

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 maintainx
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your MaintainX 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 maintainx
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 15 read-only tools, such as `get_asset` and `list_parts`, and lose the 9 write tools, such as `create_part` or `create_asset`, and the 4 destructive tools, such as `delete_asset` or `update_asset`.

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 maintainx
metorial tools <integration-id>
metorial call <integration-id> list_parts -d '{}'
```

`metorial tools` lists the 28 tools, minus any you rejected. `list_parts` takes no input. 

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

## Tools

### Read-only tools (15)

- `list_vendors`: Lists vendors in MaintainX.
- `list_purchase_orders`: Lists purchase orders from MaintainX.
- `list_work_orders`: Lists work orders from MaintainX with optional filtering by status, priority, and date ranges.
- `list_meters`: Lists meters from MaintainX, optionally filtered by asset.
- `list_assets`: Lists assets from MaintainX with optional filtering by location.
- `get_asset`: Retrieves detailed information about a specific asset by ID, including its name, description, serial number, manufacturer, model, location, status, and custom fields. Needs `assetId`.
- `list_locations`: Lists all locations configured in MaintainX.
- `list_users`: Lists users in the MaintainX organization.
- `get_work_order`: Retrieves detailed information about a specific work order by its ID, including title, description, status, priority, assignees, asset, location, and dates. Needs `workOrderId`.
- `list_categories`: Lists work order categories from MaintainX.
- `list_parts`: Lists parts from MaintainX inventory.
- `list_teams`: Lists teams in the MaintainX organization.
- `list_conversations`: Lists MaintainX conversations and their IDs for send_message.
- `list_organizations`: Lists organizations accessible to the MaintainX API key.
- `list_work_requests`: Lists MaintainX work requests with optional title, status, and priority filters.

### Write tools (9)

- `create_asset`: Creates a new asset in MaintainX. Needs `name`.
- `create_vendor`: Creates a new vendor in MaintainX. Needs `name`.
- `create_part`: Creates a new part in MaintainX inventory. Needs `name`.
- `create_work_order`: Creates a new work order in MaintainX. Needs `title`.
- `send_message`: Sends a message to a MaintainX conversation. Needs `conversationId` and `content`.
- `create_location`: Creates a new location in MaintainX. Needs `name`.
- `create_purchase_order`: Creates a new purchase order in MaintainX.
- `create_work_request`: Creates a new work request in MaintainX. Needs `title`.
- `create_meter_reading`: Records a new meter reading in MaintainX. Needs `meterId` and `value`.

### Destructive tools (4)

- `update_asset`: Updates an existing asset in MaintainX. Needs `assetId`.
- `update_work_order`: Updates an existing work order in MaintainX. Needs `workOrderId`.
- `delete_asset`: Permanently deletes an asset from MaintainX. Needs `assetId`.
- `set_asset_status`: Sets the operational status of an asset in MaintainX (Online, Offline, or Ignore). Needs `assetId` and `status`.

## Triggers

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

- `inbound_webhook`
- `new_work_request`: Triggers when a new work request is created in MaintainX.
- `new_work_order`: Triggers when a new work order is created in MaintainX.
- `work_order_status_changed`: Triggers when a work order status is updated in MaintainX (e.g., moved to IN_PROGRESS, ON_HOLD, or DONE).

## 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 MaintainX there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [MaintainX on metorial.com](https://metorial.com/integrations/maintainx): the integration overview