Skip to main content
Glama
yoavniran

cloudinary-mcp-server

by yoavniran

Cloudinary MCP 服务器

模型上下文协议服务器,将 Cloudinary 上传和管理 API 方法作为 AI 助手的工具公开。此集成允许 AI 系统触发 Cloudinary 云并与其交互。

工作原理

MCP 服务器:

  • 代表您调用 Cloudinary API

  • 允许将资产上传到 Cloudinary

  • 支持管理 Cloudinary 云中的资产

它依赖于 Cloudinary API来执行这些操作。并非所有方法和参数都受支持。未来将添加更多支持。

如果需要,请打开一个问题并请求特定的方法。

Related MCP server: Twilio MCP Server

好处

  • 将您的 Cloudinary 云操作转变为可供 AI 助手调用的工具

  • 将您的 Cloudinary 资产转化为 AI 助手的数据

与 Claude Desktop 一起使用

先决条件

  • NodeJS

  • MCP 客户端(如 Claude 桌面应用程序)

  • 创建并复制 Cloudinary API 密钥/秘密: API KEYS

安装

要将此服务器与 Claude Desktop 应用程序一起使用,请将以下配置添加到claude_desktop_config.json的“mcpServers”部分:

{
    "mcpServers": {
        "cloudinary-mcp-server": {
            "command": "npx",
            "args": ["-y", "cloudinary-mcp-server"],
            "env": {
                "CLOUDINARY_CLOUD_NAME": "<cloud name>",
                "CLOUDINARY_API_KEY": "<api-key>",
                "CLOUDINARY_API_SECRET": "<api-secret>"
            }
        }
    }
}
  • CLOUDINARY_CLOUD_NAME - 您的云名称

  • CLOUDINARY_API_KEY - 您的云的 API 密钥

  • CLOUDINARY_API_SECRET - 您的云的 API 密钥

工具

可以使用以下工具:

  1. 上传

    • 描述:将文件(资产)上传到 Cloudinary

    • 参数:

      • source :要上传的 URL、文件路径、base64 内容或二进制数据

      • folder :Cloudinary 中的可选文件夹路径

      • publicId :已上传资产的可选公共 ID

      • resourceType :要上传的资源类型(图像、视频、原始、自动)

      • tags :分配给资产的标签的逗号分隔列表

  2. 删除资产

    • 描述:从 Cloudinary 中删除文件(资产)

    • 参数:

      • publicId :要删除的资产的公共 ID

      • assetId :要删除的资产的资产 ID

  3. 获取资产

    • 描述:获取特定文件(资产)的详细信息

    • 参数:

      • assetId :Cloudinary 资产 ID

      • publicId :资产的公共ID

      • resourceType :资产类型(图像、原始、视频)

      • type :传递类型(上传、私人、认证等)

      • tags :是否包含标签名称列表

      • context :是否包含上下文元数据

      • metadata :是否包含结构化元数据

  4. 查找资产

    • 描述:使用查询表达式在 Cloudinary 中搜索现有文件(资产)

    • 参数:

      • expression :搜索表达式(例如“tags=cat”或“public_id:folder/*”)

      • resourceType :资源类型(图像、视频、原始)

      • maxResults :最大结果数(1-500)

      • nextCursor :分页的下一个光标

      • tags :在响应中包含标签

      • context :在响应中包含上下文

  5. 获取使用情况

    • 描述:获取产品环境使用情况的报告,包括存储、积分、带宽、请求、资源数量和附加组件使用情况

    • 参数:

      • date :可选。使用情况报告的日期,格式为:yyyy-mm-dd。必须为最近 3 个月内的数据。默认值:当前日期

Available Tools

5 tools
delete-assetB

Delete a file (asset) from Cloudinary

ParametersJSON Schema
NameRequiredDescriptionDefault
publicIdNoThe public ID of the asset to delete
assetIdNoThe asset ID of the asset to delete

TDQS

B3.2/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states the action ('Delete') but fails to add context beyond that, such as whether the deletion is permanent, requires specific permissions, has rate limits, or what the response looks like. This leaves significant gaps for a destructive operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence with zero waste, front-loading the key action and resource. It is appropriately sized for the tool's complexity, making it easy to parse without unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's destructive nature, lack of annotations, and no output schema, the description is incomplete. It does not address critical aspects like confirmation of deletion, error handling, or return values, leaving the agent with insufficient information for safe and effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, with both parameters ('publicId' and 'assetId') documented in the schema. The description does not add any meaning beyond the schema, such as explaining the difference between these IDs or usage scenarios. Baseline 3 is appropriate since the schema handles parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('Delete') and resource ('a file (asset) from Cloudinary'), distinguishing it from sibling tools like 'find-assets', 'get-asset', 'get-usage', and 'upload' which perform different operations. It precisely communicates the tool's function without redundancy.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, such as whether it's for permanent deletion, when to choose 'publicId' vs 'assetId', or if there are prerequisites like authentication. It lacks context on exclusions or comparisons with siblings, offering only the basic purpose.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

find-assetsC

Search for existing files (assets) in Cloudinary with a query expression

ParametersJSON Schema
NameRequiredDescriptionDefault
expressionNoSearch expression (e.g. 'tags=cat' or 'public_id:folder/*')
resourceTypeNoResource typeimage
maxResultsNoMaximum number of results
nextCursorNoNext cursor for pagination
tagsNoInclude tags in the response
contextNoInclude context in the response

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions searching with a query expression but doesn't describe what the tool returns (e.g., list of assets, metadata), pagination behavior (implied by 'nextCursor' parameter but not explained), rate limits, authentication needs, or error conditions. This is inadequate for a search tool with 6 parameters.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that immediately conveys the core functionality. It's front-loaded with the essential action ('search for existing files') and includes the key constraint ('with a query expression'). There's no wasted verbiage or unnecessary elaboration.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a search tool with 6 parameters, no annotations, and no output schema, the description is incomplete. It doesn't explain what the tool returns, how results are structured, pagination mechanics (despite a 'nextCursor' parameter), or error handling. The agent would lack sufficient context to use this tool effectively beyond basic invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents all 6 parameters. The description adds no parameter-specific information beyond mentioning 'query expression' (which aligns with the 'expression' parameter). This meets the baseline of 3 since the schema does the heavy lifting, but the description doesn't enhance parameter understanding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('search') and resource ('existing files (assets) in Cloudinary'), making the purpose immediately understandable. However, it doesn't explicitly differentiate from sibling tools like 'get-asset' (which likely retrieves a specific asset) or 'upload' (which creates new assets), missing full sibling differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention when to prefer 'find-assets' over 'get-asset' for retrieving specific assets or how it relates to 'delete-asset' or 'upload'. There's no context about prerequisites or typical use cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get-assetC

Get the details of a specific file (asset)

ParametersJSON Schema
NameRequiredDescriptionDefault
assetIdNoThe Cloudinary asset ID
publicIdNoThe public ID of the asset
resourceTypeNoType of asset. Default: image
typeNoDelivery type. Default: upload
tagsNoWhether to include the list of tag names. Default: false
contextNoWhether to include contextual metadata. Default: false
metadataNoWhether to include structured metadata. Default: false

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It states this is a read operation ('Get'), implying it's non-destructive, but doesn't cover critical aspects like authentication requirements, rate limits, error handling, or the format of returned details. For a tool with 7 parameters and no output schema, this leaves significant gaps in understanding how it behaves.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose without unnecessary words. It directly states what the tool does ('Get the details of a specific file (asset)'), making it easy to parse and understand quickly, with zero wasted information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (7 parameters, no annotations, no output schema), the description is insufficiently complete. It doesn't explain what 'details' include, how results are structured, or behavioral traits like error cases. For a retrieval tool with multiple optional parameters, more context is needed to guide effective use.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, meaning all parameters are documented in the input schema itself. The description adds no additional meaning about parameters beyond implying it retrieves 'details' of an asset. Since the schema does the heavy lifting, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and resource ('details of a specific file (asset)'), making the purpose evident. However, it doesn't explicitly differentiate from sibling tools like 'find-assets' (which likely lists multiple assets) or 'delete-asset' (which removes assets), leaving some ambiguity about when to choose this specific retrieval tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an asset ID), compare it to 'find-assets' for searching multiple assets, or specify scenarios where this detailed retrieval is preferred over other operations like 'upload' or 'delete-asset'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get-usageC

Get a report on the status of your product environment usage, including storage, credits, bandwidth, requests, number of resources, and add-on usage

ParametersJSON Schema
NameRequiredDescriptionDefault
dateNoThe date for the usage report. Must be within the last 3 months and specified in the format: yyyy-mm-dd. Default: the current date

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the report includes various metrics but fails to specify critical traits like whether this is a read-only operation, if it requires authentication, rate limits, or how data is formatted. The description adds minimal context beyond the basic purpose, leaving gaps in understanding the tool's behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the main purpose and lists key metrics without unnecessary words. It could be slightly improved by structuring usage guidelines, but it earns its place by being clear and direct, with no wasted information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (reporting multiple metrics) and lack of annotations or output schema, the description is incomplete. It should explain the report's format, whether it's aggregated or detailed, and any behavioral aspects like permissions or data freshness. The description only covers what the tool does, not how it behaves or what it returns, leaving significant gaps for an agent to use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 100% coverage with a well-described 'date' parameter, so the baseline is 3. The description does not add any parameter-specific details beyond what the schema provides, such as explaining why the date range is limited to the last 3 months or how the default current date affects the report. It compensates slightly by implying the report covers multiple metrics, but this is not parameter-related.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('report on the status of your product environment usage'), listing key metrics like storage, credits, and bandwidth. It distinguishes itself from siblings like 'delete-asset' or 'upload' by focusing on reporting rather than asset management, though it doesn't explicitly differentiate from other potential reporting tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It lacks context about prerequisites, frequency, or scenarios where this report is needed, such as monitoring limits or billing. With siblings like 'find-assets' that might overlap in data retrieval, no explicit distinctions are made.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

uploadC

Upload a file (asset) to Cloudinary

ParametersJSON Schema
NameRequiredDescriptionDefault
sourceYesThe source media to upload (URL, file path, base64 content, or binary data)
folderNoOptional folder path in Cloudinary
publicIdNoOptional public ID for the uploaded asset
resourceTypeNoType of resource to uploadauto
tagsNoA string containing Comma-separated list of tags to assign to the asset

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden for behavioral disclosure but offers minimal insight. It states the tool uploads a file but doesn't cover critical traits like authentication requirements, rate limits, error handling, or what happens on success (e.g., returns a URL or ID). For a mutation tool with zero annotation coverage, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the core purpose without unnecessary details. Every word earns its place by clearly conveying the tool's function, making it highly concise and well-structured for quick understanding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (a mutation operation with 5 parameters) and lack of annotations and output schema, the description is incomplete. It doesn't address behavioral aspects like side effects, return values, or error conditions, leaving the agent with insufficient context to use the tool effectively beyond basic purpose.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all 5 parameters thoroughly. The description adds no parameter-specific information beyond implying 'source' is required, which is already clear from the schema. This meets the baseline of 3, as the description doesn't compensate but the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('upload') and resource ('a file (asset) to Cloudinary'), making the purpose immediately understandable. It distinguishes from siblings like delete-asset or find-assets by focusing on creation rather than deletion or retrieval. However, it doesn't explicitly contrast with get-asset or get-usage, which keeps it from a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication needs), when not to use it (e.g., for updates vs. initial uploads), or how it differs from sibling tools like find-assets for locating existing files. This lack of contextual direction leaves the agent to infer usage scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

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

  1. 5 tool updates
    • First observeddelete-asset
    • First observedfind-assets
    • First observedget-asset
    • First observedget-usage
    • First observedupload

TDQS

B3.4/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: delete, search, get details, get usage report, and upload. There is no overlap in functionality, making it easy for an agent to select the correct tool without confusion.

Naming Consistency4/5

Four tools follow a consistent verb-noun pattern (delete-asset, find-assets, get-asset, get-usage), but 'upload' deviates by omitting the noun. This minor inconsistency slightly reduces predictability, though the naming remains readable and mostly uniform.

Tool Count5/5

With 5 tools, this server is well-scoped for managing Cloudinary assets. Each tool earns its place by covering essential operations (upload, get, search, delete, usage reporting), avoiding bloat while providing complete core functionality.

Completeness4/5

The toolset covers core CRUD operations for assets (upload, get, delete, search) and includes usage reporting, offering good coverage for the Cloudinary domain. A minor gap is the lack of update or transformation tools for assets, but agents can work around this by re-uploading or using other methods.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers