ImageKit MCP by usefulapi

Search and read media files; add or remove tags, move, rename and upload files in ImageKit.

我该使用它吗

质量与安全性

A
描述质量
100%
模式完整度
95%
命名质量
79%
投毒风险
80%
权限匹配度
100%
协议合规性
100%

发现(3)

  • HIGHTool poisoning patterns detected
  • MEDIUMTool description contains URL to non-standard domain在 imagekit_upload_file 中
  • LOWTool 'imagekit_list_custom_metadata_fields' name length outside 3-30 range在 imagekit_list_custom_metadata_fields 中

基于对工具定义和协议合规性的自动分析。

上下文开销

~2,583token 数(工具定义)
~1.1 KB典型响应大小
对注意力有显著影响(占 128k 上下文窗口的 2.02%)

这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。

安装

一键安装

将以下内容添加到你的 `claude_desktop_config.json` 文件中:

{
  "mcpServers": {
    "imagekit": {
      "url": "https://imagekit.usefulapi.io/mcp"
    }
  }
}

远程端点

https://imagekit.usefulapi.io/mcpstreamable-http

它能做什么

工具清单

工具(15)

🟢 只读🟡 写入🔴 删除⚪ 未知
🟢imagekit_list_files(searchQuery, path, fileType, sort, limit, ...)

List or search files and folders in the media library, with name, path, tags, size, dimensions and URLs. Use searchQuery for filters such as name, tags or path (for example: 'tags IN ["sale"] AND createdAt > "2026-01-01T00:00:00Z"'). ImageKit API: GET /v1/files.

输入模式

{
  "type": "object",
  "properties": {
    "searchQuery": {
      "description": "ImageKit search query, for example 'name = \"shoe.jpg\"' or 'tags IN [\"sale\"]'.",
      "type": "string"
    },
    "path": {
      "description": "Only files in this folder path, for example \"/products/\".",
      "type": "string"
    },
    "fileType": {
      "description": "Only images or only non-image files.",
      "type": "string",
      "enum": [
        "image",
        "non-image"
      ]
    },
    "sort": {
      "description": "Sort order. DESC_RELEVANCE suits HAS full-text searches.",
      "type": "string",
      "enum": [
        "ASC_ORIGINAL_CREATION_DATE",
        "DESC_ORIGINAL_CREATION_DATE",
        "DESC_RELEVANCE"
      ]
    },
    "limit": {
      "description": "Number of results (1-100).",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "skip": {
      "description": "Number of results to skip, for paging.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_get_file(file_id)

Get one file or folder: name, path, tags, custom metadata, dimensions, size, URL and publication status. ImageKit API: GET /v1/files/{fileId}/details.

输入模式

{
  "type": "object",
  "properties": {
    "file_id": {
      "type": "string",
      "minLength": 1,
      "description": "The ImageKit fileId (the `fileId` field returned by imagekit_list_files)."
    }
  },
  "required": [
    "file_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_get_file_metadata(file_id)

Get the EXIF, IPTC, XMP and technical metadata of one uploaded file. ImageKit API: GET /v1/files/{fileId}/metadata.

输入模式

{
  "type": "object",
  "properties": {
    "file_id": {
      "type": "string",
      "minLength": 1,
      "description": "The ImageKit fileId (the `fileId` field returned by imagekit_list_files)."
    }
  },
  "required": [
    "file_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_get_metadata_from_url(url)

Read the image metadata of a publicly reachable image URL without uploading it to the media library. ImageKit API: GET /v1/metadata?url=.

输入模式

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Public https URL of the image."
    }
  },
  "required": [
    "url"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_list_file_versions(file_id)

List the earlier versions of one file. ImageKit API: GET /v1/files/{fileId}/versions.

输入模式

{
  "type": "object",
  "properties": {
    "file_id": {
      "type": "string",
      "minLength": 1,
      "description": "The ImageKit fileId (the `fileId` field returned by imagekit_list_files)."
    }
  },
  "required": [
    "file_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_list_custom_metadata_fields

List the custom metadata fields defined for the account, with their types. Use the field names in imagekit_list_files searches. ImageKit API: GET /v1/customMetadataFields.

输入模式

{
  "type": "object",
  "properties": {},
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_get_usage(start_date, end_date)

Get bandwidth, storage, transformation and request usage for a date range. Needs a restricted key with account read access (standard keys do not include account management). ImageKit API: GET /v1/accounts/usage.

输入模式

{
  "type": "object",
  "properties": {
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date as yyyy-mm-dd."
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "description": "Date as yyyy-mm-dd."
    }
  },
  "required": [
    "start_date",
    "end_date"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_get_bulk_job_status(job_id)

Check a bulk job, such as a folder copy or move, by its jobId. ImageKit API: GET /v1/bulkJobs/{jobId}.

输入模式

{
  "type": "object",
  "properties": {
    "job_id": {
      "type": "string",
      "minLength": 1,
      "description": "The jobId returned by the bulk job request."
    }
  },
  "required": [
    "job_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟢imagekit_get_purge_status(request_id)

Check a CDN cache purge request by its requestId. ImageKit API: GET /v1/files/purge/{requestId}.

输入模式

{
  "type": "object",
  "properties": {
    "request_id": {
      "type": "string",
      "minLength": 1,
      "description": "The requestId returned when the purge was requested."
    }
  },
  "required": [
    "request_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴imagekit_upload_file(file, file_name, folder, tags, use_unique_file_name, ...)

Upload an image or file to the media library from a public URL or a base64 string. Creates a new file each call (it does not overwrite by default). Upload host: POST https://upload.imagekit.io/api/v1/files/upload.

输入模式

{
  "type": "object",
  "properties": {
    "file": {
      "type": "string",
      "minLength": 1,
      "description": "A public https URL of the file, or the file content as a base64 string."
    },
    "file_name": {
      "type": "string",
      "minLength": 1,
      "description": "File name to store, for example \"shoe.jpg\"."
    },
    "folder": {
      "description": "Folder path to upload into, for example \"/products/\". Created if missing.",
      "type": "string"
    },
    "tags": {
      "description": "Tags to add to the new file.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "use_unique_file_name": {
      "description": "Add a random suffix so the name is unique.",
      "type": "boolean"
    },
    "is_private_file": {
      "description": "Restrict direct delivery to signed URLs.",
      "type": "boolean"
    }
  },
  "required": [
    "file",
    "file_name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴imagekit_update_file_details(file_id, tags, is_published, include_file_versions)

Replace the tags of one file, or publish or unpublish it. Tags sent here replace the existing tags. ImageKit API: PATCH /v1/files/{fileId}/details.

输入模式

{
  "type": "object",
  "properties": {
    "file_id": {
      "type": "string",
      "minLength": 1,
      "description": "The ImageKit fileId (the `fileId` field returned by imagekit_list_files)."
    },
    "tags": {
      "description": "New full tag list for the file. Replaces the existing tags.",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "is_published": {
      "description": "true to publish the file, false to unpublish it.",
      "type": "boolean"
    },
    "include_file_versions": {
      "description": "Also apply the publication change to all versions of the file.",
      "type": "boolean"
    }
  },
  "required": [
    "file_id"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🟡imagekit_add_tags(file_ids, tags)

Add tags to several files at once. Existing tags stay. Adding a tag twice has no extra effect. ImageKit API: POST /v1/files/addTags.

输入模式

{
  "type": "object",
  "properties": {
    "file_ids": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "description": "The ImageKit fileId (the `fileId` field returned by imagekit_list_files)."
      },
      "description": "fileIds of the files to tag (up to 100)."
    },
    "tags": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Tag names."
    }
  },
  "required": [
    "file_ids",
    "tags"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴imagekit_remove_tags(file_ids, tags)

Remove tags from several files at once. Tags that are not present have no effect. ImageKit API: POST /v1/files/removeTags.

输入模式

{
  "type": "object",
  "properties": {
    "file_ids": {
      "minItems": 1,
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "description": "The ImageKit fileId (the `fileId` field returned by imagekit_list_files)."
      },
      "description": "fileIds of the files to untag (up to 100)."
    },
    "tags": {
      "minItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "description": "Tag names."
    }
  },
  "required": [
    "file_ids",
    "tags"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴imagekit_move_file(source_file_path, destination_path)

Move one file to another folder. The file path changes, so existing links to the old path stop working. ImageKit API: POST /v1/files/move.

输入模式

{
  "type": "object",
  "properties": {
    "source_file_path": {
      "type": "string",
      "minLength": 1,
      "description": "Full path of the file in the media library, for example \"/products/shoe.jpg\"."
    },
    "destination_path": {
      "type": "string",
      "minLength": 1,
      "description": "Folder path in the media library, for example \"/products/\"."
    }
  },
  "required": [
    "source_file_path",
    "destination_path"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}
🔴imagekit_rename_file(file_path, new_file_name, purge_cache)

Rename one file. The file path changes, so existing links to the old name stop working. ImageKit API: PUT /v1/files/rename.

输入模式

{
  "type": "object",
  "properties": {
    "file_path": {
      "type": "string",
      "minLength": 1,
      "description": "Full path of the file in the media library, for example \"/products/shoe.jpg\"."
    },
    "new_file_name": {
      "type": "string",
      "minLength": 1,
      "description": "New file name only, for example \"shoe-v2.jpg\"."
    },
    "purge_cache": {
      "description": "Also purge the CDN cache for the old URL.",
      "type": "boolean"
    }
  },
  "required": [
    "file_path",
    "new_file_name"
  ],
  "$schema": "https://json-schema.org/draft/2020-12/schema"
}

社区

评价此服务器

证据

最近观测

已验证未记录版本15 个工具