mcpField
C
Cloudinary MCP Server

Cloudinary MCP Server

本地服务
github.com/felores媒体与设计1085 周前更新

关于 Cloudinary MCP Server

Cloudinary MCP Server 是一个供 Claude Desktop 和兼容 MCP 客户端使用的媒体上传服务。它通过单个 upload 工具将图片或视频上传到 Cloudinary,并支持设置资源类型、公开 ID 和标签。

主要功能

  1. 01上传图片和视频
  2. 02从路径、URL 或 Base64 数据上传
  3. 03设置资源类型和公开 ID
  4. 04配置覆盖选项与标签

适用场景

  1. 01将本地图片上传到 Cloudinary
  2. 02从 URL 上传视频资源
  3. 03为上传媒体指定公开 ID 和标签

MCP 相关

向 MCP 客户端提供 upload 工具,可将图片或视频上传到 Cloudinary。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

Cloudinary MCP Server

此 MCP 服务可通过 Claude Desktop 和兼容的 MCP 客户端将图像和视频上传到 Cloudinary。

Cloudinary Server MCP server

安装

要求:Node.js
  1. 从 nodejs.org 安装 Node.js(版本 18 或更高版本)和 npm
  2. 验证安装:
    node --version
    npm --version
    
使用 npx 安装(推荐)
  1. 前往 Claude 配置目录:

    • Windows:C:\Users\NAME\AppData\Roaming\Claude
    • macOS:~/Library/Application Support/Claude/

    也可以在 Claude Desktop 应用中找到这些目录:Claude Desktop > Settings > Developer > Edit Config

  2. 将以下配置添加到 MCP 设置文件中:

{
  "mcpServers": {
    "cloudinary": {
      "command": "npx",
      "args": ["@felores/cloudinary-mcp-server@latest"],
      "env": {
        "CLOUDINARY_CLOUD_NAME": "your_cloud_name",
        "CLOUDINARY_API_KEY": "your_api_key",
        "CLOUDINARY_API_SECRET": "your_api_secret"
      }
    }
  }
}
  1. 请务必将环境变量替换为从 Cloudinary Console 获取的 Cloudinary 凭据。
开发者安装

如果你想修改此服务或参与开发:

  1. 克隆仓库:
git clone https://github.com/felores/cloudinary-mcp-server.git
cd cloudinary-mcp-server
  1. 安装依赖并构建:
npm install
npm run build

设置说明

  1. 首先,确保你拥有 Cloudinary 账户,并从 Cloudinary Console 获取凭据:

    • Cloud Name
    • API Key
    • API Secret
  2. 将服务配置添加到 Claude/Cline MCP 设置文件中:

{
  "mcpServers": {
    "cloudinary": {
      "command": "node",
      "args": ["c:/path/to/cloudinary-mcp-server/dist/index.js"],
      "env": {
        "CLOUDINARY_CLOUD_NAME": "your_cloud_name",
        "CLOUDINARY_API_KEY": "your_api_key",
        "CLOUDINARY_API_SECRET": "your_api_secret"
      }
    }
  }
}

对于 Claude 桌面应用,请根据你的操作系统在相应位置编辑配置文件。

  1. 安装依赖并构建服务:
npm install
npm run build

可用工具

upload

将图像和视频上传到 Cloudinary。

参数:

  • file(必填):要上传的文件路径、URL 或 base64 数据 URI
  • resource_type(可选):资源类型('image'、'video' 或 'raw')
  • public_id(可选):上传资源的自定义 public ID
  • overwrite(可选):是否覆盖具有相同 public ID 的现有资源
  • tags(可选):分配给上传资源的标签数组

在 Claude/Cline 中的使用示例:

use_mcp_tool({
  server_name: "cloudinary",
  tool_name: "upload",
  arguments: {
    file: "path/to/image.jpg",
    resource_type: "image",
    public_id: "my-custom-id"
  }
});

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。