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

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

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

---

To give your team Stack AI in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Stack AI integration in a Metorial portal, and each person connects with an API key. Agents can run published Stack AI workflows, upload files to workflow Files Nodes or knowledge bases, retrieve run analytics, and use existing knowledge-base, connection, conversation, folder, and action management tools. The integration has 28 tools, 14 read-only, 6 write and 8 destructive, plus 2 triggers.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Stack AI 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 | `apiKey` |

### API Key

To connect, a person enters:

- `apiKey`: Your Stack AI API key (public key). Navigate to Settings > API Keys in your Stack AI dashboard to generate one.

### Setup settings

Setup also asks for:

- `orgId`: Your Stack AI organization ID. Found in your account settings or URL.

## Admin: share Stack AI 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 Stack AI. 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 Stack AI.

4. **Choose who gets it**

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

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "stack ai"
```

## Employee: connect Stack AI

### In the portal

1. **Open Stack AI in the catalog**

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

2. **Authenticate**

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

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 "stack ai"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Stack AI 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 "stack ai"
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 14 read-only tools, such as `list_folders` and `get_connection`, and lose the 6 write tools, such as `flow_feedback` or `upload_document`, and the 8 destructive tools, such as `run_flow` or `run_action`.

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 "stack ai"
metorial tools <integration-id>
metorial call <integration-id> list_tool_providers -d '{}'
```

`metorial tools` lists the 28 tools, minus any you rejected. `list_tool_providers` takes no input. It lists available tool providers in Stack AI for interacting with external services such as web search, databases, and third-party APIs.

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

## Tools

### Read-only tools (14)

- `get_knowledge_base`: Retrieve details of a specific knowledge base by its ID, including its configuration, connected sources, and indexing parameters. Needs `knowledgeBaseId`.
- `browse_connection_resources`: Browse or search resources available through a connection. Needs `connectionId`.
- `list_documents`: List all files in a user's document bucket for a specific flow and node. Needs `flowId`, `nodeId` and `userId`.
- `list_conversations`: List conversations for a specific user within a project. Needs `projectId` and `userId`.
- `list_tool_providers`: List available tool providers in Stack AI for interacting with external services such as web search, databases, and third-party APIs.
- `list_user_conversations`: List all user conversations for a project via the manager interface. Needs `projectId`.
- `get_connection`: Retrieve details of a specific connection including its type, status, and configuration. Needs `connectionId`.
- `get_organization_analytics`: Retrieve analytics summary across all projects in the organization.
- `list_folders`: List and search folders in your organization.
- `list_connections`: List all connections in your organization.
- `get_project_analytics`: Retrieve run logs and analytics for a specific flow/project. Needs `flowId`.
- `list_knowledge_base_resources`: List files and resources indexed in a knowledge base. Needs `knowledgeBaseId`.
- `get_storage_analytics`: Retrieve storage usage analytics for the organization, including total storage and per-knowledge-base breakdowns.
- `list_knowledge_bases`: List all available knowledge bases in your organization.

### Write tools (6)

- `create_knowledge_base`: Create a new knowledge base. Needs `name`.
- `update_knowledge_base`: Update an existing knowledge base's properties including name, description, and indexing parameters. Needs `knowledgeBaseId`.
- `sync_knowledge_base`: Synchronize a knowledge base with its connected data sources. Needs `knowledgeBaseId`.
- `flow_feedback`: Submit feedback for a specific flow run. Needs `flowId`, `runId` and `feedback`.
- `upload_knowledge_base_resource`: Upload a file directly into an existing Stack AI knowledge base and start indexing.
- `upload_document`: Upload a file to a deployed workflow Files Node for a specific user or conversation.

### Destructive tools (8)

- `delete_document`: Delete a file from a user's document bucket associated with a specific flow and node. Needs `flowId`, `nodeId`, `userId` and `filename`.
- `manage_folder`: Create, update, or delete a folder. Needs `action`.
- `run_action`: Execute a specific action from a tool provider. Needs `providerId`, `actionId` and `inputs`.
- `delete_knowledge_base`: Permanently delete a knowledge base and all its indexed resources. Needs `knowledgeBaseId`.
- `delete_knowledge_base_resource`: Remove a specific file or resource from a knowledge base. Needs `knowledgeBaseId` and `resourceId`.
- `delete_connection`: Remove a connection from your organization. Needs `connectionId`.
- `manage_conversation`: Manage a conversation within a project. Needs `projectId`, `conversationId`, `userId` and `action`.
- `run_flow`: Execute a deployed Stack AI workflow and retrieve its output. Needs `flowId` and `inputs`.

## Triggers

Stack AI has 2 triggers, which fire on events in Stack AI:

- `flow_run_completed`: Triggers when a flow run completes.
- `inbound_webhook`

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