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

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

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

---

To give your team Cursor in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Cursor integration in a Metorial portal, and each person connects with an API key. Launch and manage Cursor cloud agents and individual runs, retrieve downloadable files, and track Enterprise team usage, spending, members, and repository blocklists. The integration has 34 tools, 22 read-only, 7 write and 5 destructive, plus 1 trigger.

**What you will learn**

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

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API key from Cursor 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`: Cursor API key (User API Key or Admin API Key). Generated from your Cursor dashboard.

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

4. **Choose who gets it**

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

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

## Employee: connect Cursor

### In the portal

1. **Open Cursor in the catalog**

   Sign in to your portal and open Cursor. 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 cursor
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your Cursor 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 cursor
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 22 read-only tools, such as `get_agent` and `list_agents`, and lose the 7 write tools, such as `stop_agent` or `launch_agent`, and the 5 destructive tools, such as `delete_agent` or `manage_cloud_agent`.

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

`metorial tools` lists the 34 tools, minus any you rejected. `list_models` takes no input. It lists available AI models that can be used when launching Cursor cloud agents.

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

## Tools

### Read-only tools (22)

- `get_team_members`: DEPRECATED — use `list_team_members` instead.
- `list_models`: List available AI models that can be used when launching Cursor cloud agents.
- `get_audit_logs`: Retrieve audit logs for your team.
- `list_agent_artifacts`: List files produced by a Cursor cloud agent. Needs `agentId`.
- `download_artifact`: Get a temporary download URL for a specific agent artifact file. Needs `agentId` and `artifactPath`.
- `get_agent`: Retrieve the current status and details of a Cursor cloud agent by its ID. Needs `agentId`.
- `list_cloud_agents`: List durable Cursor cloud agents, newest first, using the current public beta API.
- `get_repo_blocklists`: Retrieve all repository blocklists configured for your team.
- `get_team_spend`: DEPRECATED — use `get_team_spending` instead.
- `download_cloud_artifact`: Prepare a downloadable file produced by a durable cloud agent.
- `get_cloud_agent`: Get durable cloud agent metadata, repositories, branch settings, and latest run ID using the current public beta API.
- `list_agent_runs`: List a durable cloud agent’s runs, newest first, with pagination.
- `get_usage_events`: Retrieve detailed usage events for your team with filtering by date range, user, and pagination. Needs `startDate` and `endDate`.
- `get_agent_conversation`: Retrieve the full conversation history of a Cursor cloud agent, including both user prompts and assistant responses. Needs `agentId`.
- `get_daily_usage`: Retrieve daily usage metrics for your team within a date range. Needs `startDate` and `endDate`.
- `get_team_spending`: Get current-cycle Cursor team spending with encoded member IDs, on-demand and overall spending in cents, and effective user limits.
- `list_team_members`: List current and removed Cursor team members with their encoded user IDs, names, emails, and roles.
- `list_cloud_agent_artifacts`: List downloadable files produced by a durable cloud agent.
- `list_agents`: List cloud agents in your Cursor account.
- `get_api_key_info`: Retrieve information about the authenticated API key, including the associated user email and key metadata.
- `list_repositories`: List GitHub repositories accessible to your Cursor account.
- `get_agent_run`: Read run execution status, timestamps, duration, final reply, and pushed branches.

### Write tools (7)

- `launch_agent`: Launch a new Cursor cloud agent to work on a GitHub repository. Needs `promptText`.
- `create_agent_run`: Send a new prompt to a durable cloud agent, reusing its conversation and workspace.
- `set_user_spend_limit`: Set or remove a monthly spend limit for a team member. Needs `userEmail` and `spendLimitDollars`.
- `stop_agent`: Stop a running Cursor cloud agent. Needs `agentId`.
- `follow_up_agent`: Send a follow-up instruction to a running or stopped Cursor cloud agent. Needs `agentId` and `promptText`.
- `cancel_agent_run`: Cancel an active cloud agent run.
- `create_cloud_agent`: Create a durable Cursor cloud agent and its initial run using the current public beta API.

### Destructive tools (5)

- `delete_agent`: Permanently delete a Cursor cloud agent. Needs `agentId`.
- `delete_repo_blocklist`: Delete a repository blocklist entry by its ID. Needs `repoId`.
- `remove_team_member`: Remove a member from the team.
- `manage_cloud_agent`: Archive, unarchive, or permanently delete a durable cloud agent.
- `upsert_repo_blocklists`: Add or update repository blocklist patterns. Needs `repos`.

## Triggers

Cursor has 1 trigger, which fire on events in Cursor:

- `agent_status_change`: Triggered when a Cursor cloud agent reaches FINISHED or ERROR status.

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