MetorialDocs

Set up ImageKit in Metorial for Claude, ChatGPT and Cursor

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

To give your team ImageKit in Claude, ChatGPT, Cursor and other AI clients, an admin shares the ImageKit integration in a Metorial portal, and each person connects with a private API key. Agents can upload files from public URLs or Base64 data; search, inspect, update, copy, move, rename, delete, and manage file versions in the ImageKit Media Library. The integration has 14 tools, 5 read-only, 4 write and 5 destructive, plus 2 triggers.

What you'll learn

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

Before you start

Sign-in method

MethodTypeWhat a person provides
Private API KeyAPI tokentoken

Private API Key

To connect, a person enters:

  • token: Your ImageKit private API key (starts with private_)

Setup settings

Setup also asks for:

  • urlEndpoint (optional): Your ImageKit URL endpoint, e.g. https://ik.imagekit.io/your_imagekit_id. Used for constructing asset URLs and cache purge operations.

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

Limit the tools

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

Choose who gets it

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

metorial-admin portals access list <portal-id> --type provider_template --search imagekit

Employee: connect ImageKit

In the portal

Open ImageKit in the catalog

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

Authenticate

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

Confirm

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

With the CLI

metorial catalog search imagekit
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your ImageKit 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.

metorial list imagekit
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 5 read-only tools, such as get_file and list_files, and lose the 4 write tools, such as manage_tags or purge_cache, and the 5 destructive tools, such as delete_files or copy_move_file.

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 list imagekit
metorial tools <integration-id>
metorial call <integration-id> list_files -d '{}'

metorial tools lists the 14 tools, minus any you rejected. list_files takes no input. It searches and list files in the ImageKit Media Library.

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

Tools

Read-only tools (5)

  • get_file_metadata: Retrieve available technical metadata for an image, audio, or video, including dimensions, format, EXIF data, duration, bitrate, and codecs.
  • get_file: Retrieve detailed information about a file including its metadata, tags, dimensions, URL, custom metadata, and version info. Needs fileId.
  • list_files: Search and list files in the ImageKit Media Library.
  • get_bulk_job_status: Check the provider status of an asynchronous folder job.
  • download_file: Download the original bytes of a published ImageKit file or an existing file version.

Write tools (4)

  • purge_cache: Purge the CDN cache for a specific asset URL, or check the status of a pending purge request. Needs operation.
  • upload_file: Upload a file to the ImageKit Media Library from a URL or Base64-encoded data. Needs file and fileName.
  • manage_tags: Add or remove tags from one or more files in bulk. Needs operation, fileIds and tags.
  • update_file: Update a file's properties including tags, custom coordinates, custom metadata, publish status, and extensions. Needs fileId.

Destructive tools (5)

  • manage_folders: Create, delete, copy, or move folders in the ImageKit Media Library. Needs operation.
  • manage_custom_metadata_fields: Create, list, update, or delete custom metadata field definitions in the ImageKit Media Library. Needs operation.
  • manage_file_versions: List, get details, delete, or restore file versions. Needs operation and fileId.
  • delete_files: Delete one or more files from the ImageKit Media Library by their file IDs. Needs fileIds.
  • copy_move_file: Copy, move, or rename a file in the ImageKit Media Library. Needs operation and sourceFilePath.

Triggers

ImageKit has 2 triggers, which fire on events in ImageKit:

  • video_transformation: Triggered when a video transformation is accepted, completed, or fails.
  • upload_transform: Triggered when a pre-upload or post-upload transformation succeeds or fails.

Next steps