Cloudinary Analysis MCP Server
Officialby cloudinary
README.md
# Cloudinary Analysis MCP Server
<!-- mcp-name: com.cloudinary/analysis-mcp -->
<!-- Start Summary [summary] -->
## Summary
Analyze API (Beta): Use the Analyze API to analyze any external asset and return details based on the type of analysis requested.
Currently supports the following analysis options:
* [AI Vision - Tagging](https://cloudinary.com/documentation/cloudinary_ai_vision_addon#tagging_mode)
* [AI Vision - Moderation](https://cloudinary.com/documentation/cloudinary_ai_vision_addon#moderation_mode)
* [AI Vision - General](https://cloudinary.com/documentation/cloudinary_ai_vision_addon#general_mode)
* [Captioning](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#ai_based_image_captioning)
* [Cld Fashion](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#supported_content_aware_detection_models)
* [Cld Text](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#supported_content_aware_detection_models)
* [Coco](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#supported_content_aware_detection_models)
* [Google Tagging](https://cloudinary.com/documentation/google_auto_tagging_addon)
* [Human Anatomy](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#supported_content_aware_detection_models)
* [Image Quality Analysis](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#image_quality_analysis)
* [Lvis](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#supported_content_aware_detection_models)
* [Shop Classifier](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#supported_content_aware_detection_models)
* [Unidet](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#supported_content_aware_detection_models)
* [Watermark Detection](https://cloudinary.com/documentation/cloudinary_ai_content_analysis_addon#watermark_detection)
**Notes**:
* The Analyze API is currently in development and is available as a Public Beta, which means we value your feedback, so please feel free to [share any thoughts with us](https://support.cloudinary.com/hc/en-us/requests/new).
* The analysis options require an active subscription to the relevant add-on. Learn more about [registering for add-ons](https://cloudinary.com/documentation/cloudinary_add_ons#registering_for_add_ons).
The API supports both Basic Authentication using your Cloudinary API Key and API Secret (which can be found on the Dashboard page of your [Cloudinary Console](https://console.cloudinary.com/pm)) or OAuth2 ([Contact support](https://support.cloudinary.com/hc/en-us/requests/new) for more information regarding OAuth).
<!-- End Summary [summary] -->
<!-- Start Table of Contents [toc] -->
## Table of Contents
<!-- $toc-max-depth=2 -->
* [Cloudinary Analysis MCP Server](#cloudinary-analysis-mcp-server)
* [Installation](#installation)
* [Progressive Discovery](#progressive-discovery)
* [Configuration](#configuration)
* [Authentication](#authentication)
* [Development](#development)
* [Building from Source](#building-from-source)
* [Contributions](#contributions)
<!-- End Table of Contents [toc] -->
<!-- Start Installation [installation] -->
## Installation
The MCP server requires Node.js 20.19.0 or later.
<details>
<summary>Claude Desktop</summary>
Install the MCP server as a Desktop Extension using the pre-built [`mcp-server.mcpb`](https://github.com/cloudinary/analysis-mcp/releases/download/v0.5.3/mcp-server.mcpb) file:
Simply drag and drop the [`mcp-server.mcpb`](https://github.com/cloudinary/analysis-mcp/releases/download/v0.5.3/mcp-server.mcpb) file onto Claude Desktop to install the extension.
The MCP bundle package includes the MCP server and all necessary configuration. Once installed, the server will be available without additional setup.
> [!NOTE]
> MCP bundles provide a streamlined way to package and distribute MCP servers. Learn more about [Desktop Extensions](https://www.anthropic.com/engineering/desktop-extensions).
</details>
<details>
<summary>Cursor</summary>
[](cursor://anysphere.cursor-deeplink/mcp/install?name=CloudinaryAnalysis&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAY2xvdWRpbmFyeS9hbmFseXNpcy1tY3AiLCJzdGFydCIsIi0tY2xvdWQtbmFtZSIsIkNMT1VEX05BTUUiLCItLWFwaS1rZXkiLCIiLCItLWFwaS1zZWNyZXQiLCIiLCItLW8tYXV0aDIiLCIiXX0=)
Or manually:
1. Open Cursor Settings
2. Select Tools and Integrations
3. Select New MCP Server
4. If the configuration file is empty paste the following JSON into the MCP Server Configuration:
```json
{
"command": "npx",
"args": [
"@cloudinary/analysis-mcp",
"start",
"--cloud-name",
"CLOUD_NAME",
"--api-key",
"",
"--api-secret",
"",
"--o-auth2",
""
]
}
```
</details>
<details>
<summary>Claude Code CLI</summary>
```bash
claude mcp add CloudinaryAnalysis -- npx -y @cloudinary/analysis-mcp start --cloud-name CLOUD_NAME --api-key --api-secret --o-auth2
```
</details>
<details>
<summary>Gemini</summary>
```bash
gemini mcp add CloudinaryAnalysis -- npx -y @cloudinary/analysis-mcp start --cloud-name CLOUD_NAME --api-key --api-secret --o-auth2
```
</details>
<details>
<summary>Windsurf</summary>
Refer to [Official Windsurf documentation](https://docs.windsurf.com/windsurf/cascade/mcp#adding-a-new-mcp-plugin) for latest information
1. Open Windsurf Settings
2. Select Cascade on left side menu
3. Click on `Manage MCPs`. (To Manage MCPs you should be signed in with a Windsurf Account)
4. Click on `View raw config` to open up the mcp configuration file.
5. If the configuration file is empty paste the full json
```bash
{
"command": "npx",
"args": [
"@cloudinary/analysis-mcp",
"start",
"--cloud-name",
"CLOUD_NAME",
"--api-key",
"",
"--api-secret",
"",
"--o-auth2",
""
]
}
```
</details>
<details>
<summary>VS Code</summary>
[](vscode://ms-vscode.vscode-mcp/install?name=CloudinaryAnalysis&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyJAY2xvdWRpbmFyeS9hbmFseXNpcy1tY3AiLCJzdGFydCIsIi0tY2xvdWQtbmFtZSIsIkNMT1VEX05BTUUiLCItLWFwaS1rZXkiLCIiLCItLWFwaS1zZWNyZXQiLCIiLCItLW8tYXV0aDIiLCIiXX0=)
Or manually:
Refer to [Official VS Code documentation](https://code.visualstudio.com/api/extension-guides/ai/mcp) for latest information
1. Open [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette)
1. Search and open `MCP: Open User Configuration`. This should open mcp.json file
2. If the configuration file is empty paste the full json
```bash
{
"command": "npx",
"args": [
"@cloudinary/analysis-mcp",
"start",
"--cloud-name",
"CLOUD_NAME",
"--api-key",
"",
"--api-secret",
"",
"--o-auth2",
""
]
}
```
</details>
<details>
<summary> Stdio installation via npm </summary>
To start the MCP server, run:
```bash
npx @cloudinary/analysis-mcp start --cloud-name CLOUD_NAME --api-key --api-secret --o-auth2
```
For a full list of server arguments, run:
```
npx @cloudinary/analysis-mcp --help
```
</details>
<!-- End Installation [installation] -->
<!-- Start Progressive Discovery [dynamic-mode] -->
## Progressive Discovery
MCP servers with many tools can bloat LLM context windows, leading to increased token usage and tool confusion. Dynamic mode solves this by exposing only a small set of meta-tools that let agents progressively discover and invoke tools on demand.
To enable dynamic mode, pass the `--mode dynamic` flag when starting your server:
```jsonc
{
"mcpServers": {
"CloudinaryAnalysis": {
"command": "npx",
"args": ["@cloudinary/analysis-mcp", "start", "--mode", "dynamic"],
// ... other server arguments
}
}
}
```
In dynamic mode, the server registers only the following meta-tools instead of every individual tool:
- **`list_tools`**: Lists all available tools with their names and descriptions.
- **`describe_tool_input`**: Returns the input schema for one or more tools by name.
- **`execute_tool`**: Executes a tool by name with its arguments.
This approach significantly reduces the number of tokens sent to the LLM on each request, which is especially useful for servers with a large number of tools.
<!-- End Progressive Discovery [dynamic-mode] -->
## Configuration
### Environment Variables
The MCP server supports the following environment variables:
| Variable | Description | Required |
|----------|-------------|----------|
| `CLOUDINARY_CLOUD_NAME` | Your Cloudinary cloud name | Yes |
| `CLOUDINARY_API_KEY` | Your Cloudinary API key | Yes |
| `CLOUDINARY_API_SECRET` | Your Cloudinary API secret | Yes |
| `CLOUDINARY_URL` | Complete Cloudinary URL (alternative to individual vars) | No |
### CLOUDINARY_URL Format
You can use a single `CLOUDINARY_URL` instead of individual variables:
```bash
CLOUDINARY_URL=cloudinary://API_KEY:API_SECRET@CLOUD_NAME
```
<!-- Start Authentication [security] -->
## Authentication
The MCP server uses your Cloudinary API key and secret for authentication:
```json
{
"env": {
"CLOUDINARY_CLOUD_NAME": "demo",
"CLOUDINARY_API_KEY": "123456789012345",
"CLOUDINARY_API_SECRET": "abcdefghijklmnopqrstuvwxyz12"
}
}
```
<!-- End Authentication [security] -->
<!-- Placeholder for Future Speakeasy SDK Sections -->
# Development
## Building from Source
### Prerequisites
- Node.js v20 or higher
- npm, pnpm, bun, or yarn
### Build Steps
```bash
# Clone the repository
git clone https://github.com/cloudinary/analysis-mcp.git
cd analysis-mcp
# Install dependencies
npm install
# Build the project
npm run build
# Run locally
npm start
```
## Contributions
While we value contributions to this MCP Server, the code is generated programmatically from the Cloudinary API spec. Any manual changes to generated files will be overwritten on the next generation.
We look forward to hearing your feedback. Feel free to open a PR or issue with a proof of concept and we'll do our best to include it in a future release.
---
### MCP Server Created by [Speakeasy](https://www.speakeasy.com/?utm_source=analysis-mcp&utm_campaign=mcp-typescript)
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues