Cloudinary MCP server

Integrates with Cloudinary to enable seamless image and video uploads with customizable parameters for dynamic content management.
Back to servers
Setup instructions
Provider
felores
Release date
Jan 08, 2025
Language
TypeScript
Stats
7 stars

This MCP server allows you to easily upload images and videos to Cloudinary through Claude Desktop and other compatible MCP clients. It provides a convenient way to integrate Cloudinary's media management capabilities with your AI assistant workflows.

Installation

Requirements

  • Node.js (version 18 or higher) and npm
  • Install from nodejs.org
  • Verify installation:
    node --version
    npm --version
    

Setting Up with npx (Recommended)

Navigate to the Claude configuration directory:

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

You can also access these directories through Claude Desktop: Settings > Developer > Edit Config

Add the following configuration to your MCP settings file:

{
  "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"
      }
    }
  }
}

Replace the environment variables with your actual Cloudinary credentials from the Cloudinary Console.

Configuration

Getting Your Cloudinary Credentials

Before using the server, you'll need:

  • Cloud Name
  • API Key
  • API Secret

These can be obtained from the Cloudinary Console.

Manual Configuration

If you're not using npx, you can configure the server using a direct path:

{
  "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"
      }
    }
  }
}

Using the MCP Server

Upload Tool

The main functionality of this MCP server is the upload tool which lets you upload media to Cloudinary.

Parameters:

  • file (required): Path to file, URL, or base64 data URI to upload
  • resource_type (optional): Type of resource ('image', 'video', or 'raw')
  • public_id (optional): Custom public ID for the uploaded asset
  • overwrite (optional): Whether to overwrite existing assets with the same public ID
  • tags (optional): Array of tags to assign to the uploaded asset

Example usage in Claude:

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

This will upload your specified file to Cloudinary and return information about the uploaded asset, which you can then use in your conversations with Claude.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "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"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "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"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "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"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later