Skip to main content
Glama
imagekit-mcp-server

imagekit-mcp-server

by aiconnai

ImageKit MCP Server

A Model Context Protocol (MCP) server for ImageKit.io that lets AI assistants upload, search, transform, and manage media assets in your ImageKit media library.

Quick Start

npx imagekit-mcp-server

Requires three environment variables:

IMAGEKIT_PUBLIC_KEY=public_xxx
IMAGEKIT_PRIVATE_KEY=private_xxx
IMAGEKIT_URL_ENDPOINT=https://ik.imagekit.io/your_id

Get your credentials from the ImageKit Dashboard.

Related MCP server: Spronta MCP Server

MCP Client Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "imagekit": {
      "command": "npx",
      "args": ["-y", "imagekit-mcp-server"],
      "env": {
        "IMAGEKIT_PUBLIC_KEY": "public_xxx",
        "IMAGEKIT_PRIVATE_KEY": "private_xxx",
        "IMAGEKIT_URL_ENDPOINT": "https://ik.imagekit.io/your_id"
      }
    }
  }
}

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "imagekit": {
      "command": "npx",
      "args": ["-y", "imagekit-mcp-server"],
      "env": {
        "IMAGEKIT_PUBLIC_KEY": "public_xxx",
        "IMAGEKIT_PRIVATE_KEY": "private_xxx",
        "IMAGEKIT_URL_ENDPOINT": "https://ik.imagekit.io/your_id"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json in your project:

{
  "mcpServers": {
    "imagekit": {
      "command": "npx",
      "args": ["-y", "imagekit-mcp-server"],
      "env": {
        "IMAGEKIT_PUBLIC_KEY": "public_xxx",
        "IMAGEKIT_PRIVATE_KEY": "private_xxx",
        "IMAGEKIT_URL_ENDPOINT": "https://ik.imagekit.io/your_id"
      }
    }
  }
}

Tools

Tool

Description

list_files

List and search files with filters (path, type, search query, pagination, sort)

list_folders

List folders at a given path

get_file_details

Get full metadata for a file (dimensions, tags, URLs, dates)

upload_file

Upload a local file

upload_file_from_url

Upload from a remote URL

upload_base64_file

Upload from base64 data

delete_file

Delete a file by ID

create_folder

Create a new folder

delete_folder

Delete a folder

move_file

Move a file to a different folder

generate_url

Generate URLs with transformations (resize, crop, format, signed URLs)

Examples

Ask your AI assistant:

  • "List all images in the /products/ folder"

  • "Upload this screenshot to /screenshots/2026/"

  • "Generate a 300x300 thumbnail for /hero-banner.jpg"

  • "Search for files named 'logo'"

  • "Move /old-folder/image.jpg to /new-folder/"

  • "Delete the file with ID abc123"

Development

git clone https://github.com/aiconnai/imagekit-mcp-server.git
cd imagekit-mcp-server
npm install

# Set credentials
export IMAGEKIT_PUBLIC_KEY=public_xxx
export IMAGEKIT_PRIVATE_KEY=private_xxx
export IMAGEKIT_URL_ENDPOINT=https://ik.imagekit.io/your_id

# Run
node index.js

License

MIT

Available Tools

11 tools
create_folderB

Create a new folder in ImageKit

Inputs: folderName (required), parentFolderPath.

delete_fileC

Delete a file from ImageKit

Inputs: fileId (required).

delete_folderC

Delete a folder from ImageKit

Inputs: folderPath (required).

generate_urlB

Generate an ImageKit URL with transformations (resize, crop, format, quality, etc.)

Inputs: src, path, signed, expireSeconds, +2 more.

get_file_detailsC

Get detailed information about a specific file

Inputs: fileId (required).

list_filesC

List and search files in ImageKit media library

Inputs: path, skip, sort, limit, +2 more.

list_foldersC

List folders in ImageKit

Inputs: path.

move_fileC

Move a file to a different folder in ImageKit

Inputs: sourceFilePath (required), destinationPath (required).

upload_base64_fileC

Upload a file to ImageKit from base64 encoded data

Inputs: fileName (required), base64Data (required), tags, folder, +5 more.

upload_fileC

Upload a local file to ImageKit

Inputs: filePath (required), tags, folder, fileName, +5 more.

upload_file_from_urlB

Upload a file to ImageKit from a URL

Inputs: url (required), fileName (required), tags, folder, +5 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 11 tools

    Disambiguation4/5

    Most tools target distinct resources and actions. The three upload variants (upload_file, upload_file_from_url, upload_base64_file) overlap functionally but are clearly differentiated by input source, so an agent can select correctly.

    Naming Consistency5/5

    All 11 tools follow a consistent snake_case verb_noun pattern (list_folders, get_file_details, create_folder, delete_file, etc.). The verb-first convention is uniform with no mixing of styles.

    Tool Count5/5

    11 tools is well within the ideal 3-15 range and each maps to a concrete operation on files or folders. No tool feels like padding.

    Completeness4/5

    File lifecycle (list, get, upload, move, delete) and folder operations (list, create, delete) are well covered. Minor gaps exist: no folder rename/move and no file rename/metadata update, but core workflows are supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers