此MCP服务器提供了通过Claude Desktop和兼容的MCP客户端上传图片和视频到Cloudinary的工具。
<a href="https://glama.ai/mcp/servers/zjiw1ry8ly"><img width="380" height="200" src="https://gips2.baidu.com/it/u=411916495,3006091087&fm=3081&app=3081&f=PNG?w=760&h=400" alt="Cloudinary Server MCP server" /></a>
node --version
npm --version
导航到Claude配置目录:
C:\Users\NAME\AppData\Roaming\Claude~/Library/Application Support/Claude/您也可以在Claude Desktop应用中找到这些目录:Claude Desktop > 设置 > 开发者 > 编辑配置
将以下配置添加到您的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"
}
}
}
}
如果您想修改服务器或参与开发:
git clone https://github.com/felores/cloudinary-mcp-server.git
cd cloudinary-mcp-server
npm install
npm run build
首先,确保您有一个Cloudinary账户,并从Cloudinary控制台获取您的凭证:
将服务器配置添加到您的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桌面应用程序,在适当的位置编辑配置文件。
npm install
npm run build
上传图片和视频到Cloudinary。
参数:
file(必需):要上传的文件路径、URL或base64数据URIresource_type(可选):资源类型('image','video' 或 'raw')public_id(可选):上传资产的自定义公共IDoverwrite(可选):是否覆盖具有相同公共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"
}
});