Skip to content

cloudinary/mcp-servers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Cloudinary MCP Servers

Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. This repository provides comprehensive MCP servers for Cloudinary's media management platform, enabling you to use natural language to upload, transform, analyze, and organize your media assets directly from AI applications like Cursor and Claude.

With these MCP servers, you can seamlessly manage your entire media workflow through conversational AI - from uploading and transforming images and videos, to configuring automated processing pipelines, analyzing content with AI-powered tools, and organizing assets with structured metadata. Whether you're building media-rich applications, managing large asset libraries, or automating content workflows, these servers provide direct access to Cloudinary's full suite of media optimization and management capabilities.

The following MCP servers are available for Cloudinary:

Server Name Description GitHub Repository Install
Asset Management Upload, manage, and transform your media assets with advanced search and organization capabilities @cloudinary/asset-management Install MCP Server
Environment Config Configure and manage your Cloudinary environment settings, upload presets, and transformations @cloudinary/environment-config Install MCP Server
Structured Metadata Create, manage, and query structured metadata fields for enhanced asset organization and searchability @cloudinary/structured-metadata Install MCP Server
Analysis Leverage AI-powered content analysis, moderation, and auto-tagging capabilities for your media assets @cloudinary/analysis Install MCP Server
MediaFlows Build and manage low-code workflow automations for images and videos with AI-powered assistance MediaFlows MCP Install MCP Server

Table of Contents

Documentation

For detailed guides, tutorials, and comprehensive documentation on using Cloudinary's MCP servers:

Configuration

Quick Install with Cursor Deeplinks

For Cursor users, you can install MCP servers with one click using Cursor deeplinks:

Install MCP Server Asset Management

Install MCP Server Environment Config

Install MCP Server Structured Metadata

Install MCP Server Analysis

Install MCP Server MediaFlows

Note: You'll need to update the environment variables (CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, CLOUDINARY_API_SECRET) with your actual credentials after installation.

Manual Configuration

You can also run the MCP servers using the individual npm packages. There are several ways to configure authentication:

Option 1: Using individual environment variables

{
  "mcpServers": {
    "cloudinary-asset-mgmt": {
      "command": "npx",
      "args": ["-y", "--package", "@cloudinary/asset-management", "--", "mcp", "start"],
      "env": {
        "CLOUDINARY_CLOUD_NAME": "cloud_name",
        "CLOUDINARY_API_KEY": "api_key",
        "CLOUDINARY_API_SECRET": "api_secret"
      }
    }
  }
}

Option 2: Using command line arguments

{
  "mcpServers": {
    "cloudinary-asset-mgmt": {
      "command": "npx",
      "args": [
        "-y", "--package", "@cloudinary/asset-management",
        "--",
        "mcp", "start",
        "--cloud-name", "cloud_name",
        "--api-key", "api_key",
        "--api-secret", "api_secret"
      ]
    }
  }
}

Option 3: Using CLOUDINARY_URL environment variable

{
  "mcpServers": {
    "cloudinary-asset-mgmt": {
      "command": "npx",
      "args": ["-y", "--package", "@cloudinary/asset-management", "--", "mcp", "start"],
      "env": {
        "CLOUDINARY_URL": "cloudinary://api_key:api_secret@cloud_name"
      }
    }
  }
}

Apply the same configuration pattern to all other servers by replacing @cloudinary/asset-management with the respective package names:

  • @cloudinary/environment-config
  • @cloudinary/structured-metadata
  • @cloudinary/analysis

MediaFlows MCP Server Configuration

For MediaFlows, use the following configuration:

{
  "mcpServers": {
    "mediaflows": {
      "url": "https://mediaflows.mcp.cloudinary.com/v2/mcp",
      "headers": {
        "cld-cloud-name": "cloud_name",
        "cld-api-key": "api_key",
        "cld-secret": "api_secret"
      }
    }
  }
}

Authentication

When running MCP servers locally, authentication can be configured in several ways:

Option 1: Individual environment variables (Recommended)

export CLOUDINARY_CLOUD_NAME="cloud_name"
export CLOUDINARY_API_KEY="api_key"
export CLOUDINARY_API_SECRET="api_secret"

Option 2: CLOUDINARY_URL environment variable

export CLOUDINARY_URL="cloudinary://api_key:api_secret@cloud_name"

Option 3: Command line arguments

Pass credentials directly as arguments (see configuration examples above)

You can find your Cloudinary credentials in your Cloudinary Console Dashboard under Settings > Security.

Features by Server

Asset Management Server

  • Upload and manage media assets (images, videos, raw files)
  • Search and organize assets with advanced filtering capabilities
  • Handle asset operations and transformations
  • Manage folders, tags, and asset relationships
  • Generate archives and download links

Environment Config Server

  • Configure upload presets and transformation settings
  • Manage streaming profiles and webhook notifications
  • Set up upload mappings

Structured Metadata Server

  • Create and manage structured metadata fields
  • Configure conditional metadata rules and validation
  • Organize and search metadata configurations
  • Handle metadata field relationships and ordering

Analysis Server

  • AI-powered content analysis including tagging, moderation, and captioning
  • Object detection and recognition with multiple AI models
  • Image quality analysis and watermark detection
  • Content moderation and safety analysis
  • Fashion, text, and anatomy detection capabilities

MediaFlows Server

  • Build and manage workflow automations using natural language
  • Query existing PowerFlow automations in your environment
  • Create conditional logic based on metadata, tags, and asset properties
  • Automate asset moderation, approval, and notification workflows
  • Debug and understand existing automation configurations

Need access to more Cloudinary tools?

We're continuing to add more functionality to these MCP servers. If you'd like to leave feedback, file a bug or provide a feature request, please open an issue on this repository.

Troubleshooting

"Claude's response was interrupted..."

If you see this message, Claude likely hit its context-length limit and stopped mid-reply. This happens most often on servers that trigger many chained tool calls such as the asset management server with large asset listings.

To reduce the chance of running into this issue:

  • Try to be specific, keep your queries concise.
  • If a single request calls multiple tools, try to break it into several smaller tool calls to keep the responses short.
  • Use filtering parameters to limit the scope of asset searches and listings.

Authentication Issues

Ensure your Cloudinary credentials are correctly configured and have the necessary permissions for the operations you're trying to perform.

Paid Features

Some features may require a paid Cloudinary plan. Ensure your Cloudinary account has the necessary subscription level for the features you intend to use, such as:

  • Advanced AI analysis features
  • High-volume API usage
  • Custom metadata fields
  • Advanced transformation capabilities

License

Licensed under the MIT License. See LICENSE file for details.

About

Official Cloudinary MCP Servers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •