adobe-firefly-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@adobe-firefly-mcpgenerate a surreal painting of a clock melting in a desert"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
adobe-firefly-mcp
Local MCP server for using Adobe Firefly from Claude Code through Playwright browser automation.
This project is designed for a personal local workflow where you already have access to Adobe Firefly in your browser. It launches a persistent Playwright Chromium profile, lets you sign in manually once, then reuses that profile for future image workflows.
It does not use a private Adobe API, automate login credentials, bypass authentication, or store credentials outside the browser profile.
Tools
adobe-firefly-mcp exposes these MCP tools:
firefly_generate- prompt-to-image generation.firefly_generate_video- prompt-to-video generation.firefly_variations- upload a local image and ask Firefly for variations.firefly_expand- upload a local image and run Firefly's expand/outpaint workflow.firefly_remove_background- upload a local image and run Firefly's remove-background workflow.firefly_status- open/check the persistent browser profile, auth state, paths, and optional screenshot.firefly_dom_inspect- inspect the current DOM state for debugging automation issues.firefly_dom_watch- watch for DOM mutations in real-time.firefly_debug_bundle- capture comprehensive debug bundle with 26+ diagnostic files.firefly_validate_environment- check environment readiness and auto-fix common issues.
Generated files are saved locally and returned as absolute file paths.
Related MCP server: io.github.pvliesdonk/image-generation-mcp
Install
From source:
npm install
npm run buildWhen published to npm:
npm install -g adobe-firefly-mcpClaude Code Configuration
From a source checkout:
{
"mcpServers": {
"adobe-firefly-mcp": {
"command": "node",
"args": ["./dist/server.js"],
"cwd": "/absolute/path/to/adobe-firefly-mcp"
}
}
}From a global install:
{
"mcpServers": {
"adobe-firefly-mcp": {
"command": "adobe-firefly-mcp",
"env": {
"FIREFLY_MCP_DATA_DIR": "/absolute/path/to/.adobe-firefly-mcp"
}
}
}
}On Windows, use escaped backslashes or forward slashes in JSON paths:
"FIREFLY_MCP_DATA_DIR": "C:/Users/you/.adobe-firefly-mcp"First Run
Start Claude Code with the MCP server configured.
Run
firefly_statuswithopenBrowser: true.A Chromium window opens at Adobe Firefly.
Sign in manually with your Adobe account.
Run
firefly_statusagain. The same profile inprofile/will be reused.
The default browser mode is headed (FIREFLY_HEADLESS=false) because the first sign-in must be done by you.
Example Tool Call
Image Generation
{
"prompt": "A cinematic product photo of a translucent blue mechanical keyboard on a polished steel desk",
"aspectRatio": "16:9",
"style": "Photo",
"count": 4
}Video Generation
{
"prompt": "A timelapse of clouds moving over a mountain landscape at golden hour",
"aspectRatio": "Widescreen (16:9)",
"resolution": "720p",
"duration": "8 seconds",
"model": "Veo 3.1 Fast"
}Example Claude prompts for video generation:
"Generate a video of a cat playing with a ball of yarn in slow motion"
"Create a 1080p video of ocean waves crashing on a rocky shore at sunset"
"Make a widescreen video of a busy city street at night with neon lights reflecting in puddles"
"Generate a short video of steam rising from a freshly brewed cup of coffee"
DOM Inspection (Developer Tool)
The firefly_dom_inspect tool is a read-only debugging utility for diagnosing broken automation. It never navigates, clicks, or modifies the page.
Modes
Full mode (default) - Returns everything:
{
"mode": "full"
}Selector mode - Inspect specific elements:
{
"mode": "selector",
"selector": "[data-testid='generate-button']"
}Shadow DOM mode - Inspect Adobe Spectrum components:
{
"mode": "shadow",
"maxDepth": 8
}Accessibility mode - Return accessibility tree:
{
"mode": "accessibility"
}Tree mode - Visual DOM tree:
{
"mode": "tree",
"maxDepth": 10
}Output Includes
Page info (URL, title, browser version, viewport, frameworks detected)
Discovered selectors with Playwright locator suggestions
Selector uniqueness (how many elements each selector matches)
XPath alongside CSS and Playwright locators
Shadow DOM traversal for Adobe Spectrum components
Console messages (captured via listeners in MCP process)
Network requests with duration
Performance metrics (Navigation Timing, LCP, FCP)
Screenshots (standard + annotated with numbered labels)
HTML snapshots
Element screenshots (optional)
Example: Diagnose Broken Automation
When Adobe changes the UI and your automation breaks:
{
"mode": "full",
"includeScreenshot": true,
"captureElementScreenshots": true
}This returns:
All discovered buttons/inputs with their selectors
Which selectors are unique (matches: 1) vs shared (matches: 14)
Playwright locator recommendations ranked by stability
Screenshots showing exactly what's on screen
DOM Watch (Real-time Monitoring)
The firefly_dom_watch tool uses MutationObserver to report exactly when elements appear, disappear, or attributes change.
{
"timeoutMs": 60000,
"targetSelector": "[data-testid='generate-container']",
"mutations": ["childList", "attributes"]
}Returns:
{
"mutations": [
{
"timestamp": "2026-07-06T12:34:56.789Z",
"type": "childList",
"action": "added",
"targetSelector": "[data-testid='generate-button']",
"addedNodes": ["Generate"],
"removedNodes": []
}
],
"summary": {
"totalMutations": 5,
"addedNodes": 3,
"removedNodes": 1,
"attributeChanges": 1
}
}Example use cases:
"Watch for the Generate button to appear after page load"
"Monitor when the spinner disappears and results show"
"Track when the download button becomes enabled"
Debug Bundle (Comprehensive Diagnostics)
The firefly_debug_bundle tool captures a complete diagnostic snapshot with 26+ files. This is a read-only tool that never clicks Generate, uploads files, modifies settings, changes prompts, or navigates away.
{}Optional: Specify a URL to navigate to first:
{
"url": "https://firefly.adobe.com/generate/video"
}Output Files
The tool creates a timestamped directory at debug/bundles/YYYY-MM-DDTHH-MM-SS/ with:
File | Description |
| URL, title, browser version, frameworks detected |
| Browser status and config |
| DOM tree, shadow DOM count, iframes, forms, dialogs |
| Accessibility tree snapshot |
| Navigation Timing, LCP, FCP, memory usage |
| Console messages (last 500) |
| Network requests with timing (last 500) |
| All browser cookies |
| localStorage and sessionStorage keys |
| Detected frameworks (React, Vue, Angular, etc.) |
| Discovered elements with bounding boxes |
| Selector validation results (exists/visible/enabled) |
| Form elements and validation state |
| Modal dialogs and alerts |
| Shadow DOM tree traversal |
| Iframe inspection |
| Browser permissions state |
| Browser fingerprint (user agent, WebGL, etc.) |
| Registered service workers |
| IndexedDB databases |
| localStorage contents |
| sessionStorage contents |
| Automation detection indicators (webdriver, etc.) |
| Auth state, Adobe cookies, token expiry |
| Human-readable selector validation report |
| Human-readable automation health report |
| Overall diagnostic summary with confidence level |
| Full-page screenshot |
| Complete HTML snapshot |
Use Cases
"Run a full diagnostic on the current page"
"Check if automation is being detected"
"Validate all selectors are still working"
"Get a snapshot before something breaks"
"Compare browser fingerprints between sessions"
Validate Environment
firefly_validate_environment checks your environment readiness and optionally auto-fixes common issues:
{
"autoFix": true
}Checks Performed
Authentication: Verifies Adobe session cookies are present and valid
Selectors: Validates all critical UI selectors still work
Browser: Confirms browser is available and launchable
Cookies: Checks cookie file integrity and expiration
Storage: Verifies storage directory exists and is writable
Credits: Attempts to detect Adobe credit/quota status
Automation health: Tests prompt input and download button availability
Response
{
"ok": true,
"readinessScore": 85,
"issues": [
{
"severity": "warning",
"category": "auth",
"message": "Adobe session cookie expired",
"autoFixed": false
}
],
"autoFixes": [],
"recommendations": ["Re-authenticate with Adobe Firefly"]
}Readiness score ranges from 0 (completely broken) to 100 (fully operational).
Successful tool calls return JSON like:
{
"ok": true,
"operation": "firefly_generate",
"files": [
{
"path": "/absolute/path/to/downloads/firefly-example.png",
"source": "download"
}
],
"pageUrl": "https://firefly.adobe.com/...",
"warnings": []
}Configuration
All configuration is optional.
Environment variable | Default | Purpose |
| current working directory | Base directory for |
|
| Saved image output directory. |
|
| Persistent Chromium user data directory. |
|
| Run Chromium headless after you have already signed in. |
|
|
|
|
| Default maximum generated images to save. |
|
| General UI action timeout. |
|
| Generation wait timeout. |
|
| Page navigation timeout. |
|
| Base Firefly URL. |
|
| Prompt-to-image route. |
|
| Variations route. |
|
| Expand route. |
|
| Remove-background route. |
|
| Video generation route. |
| built-in candidates | CSS selector override for the prompt input. |
| built-in candidates | CSS selector override for the generate/action button. |
| built-in candidates | CSS selector override for download buttons. |
| built-in candidates | CSS selector override for upload controls. |
|
| Use real Chrome with user's existing profile instead of Chromium. |
| undefined | Path to Chrome user data directory (required when using persistent). |
|
| Enable automatic selector recovery. |
|
| Minimum confidence score (0-1) to accept recovered selector. |
Adobe can change the Firefly UI at any time. The server uses resilient Playwright locators first, then CSS selector overrides when needed. Self-healing automatically recovers when selectors break.
Development
npm install
npm run dev
npm run checkUseful scripts:
npm run build- compile TypeScript todist/.npm run lint- run ESLint.npm run format- apply Prettier.npm run test- run Vitest unit tests.npm run check- typecheck, lint, format-check, test, and build.
Security Model
Uses
chromium.launchPersistentContext()with a dedicated local profile.Never asks for Adobe credentials.
Never fills login forms.
Never stores credentials in config, logs, env vars, or project files.
Reuses whatever Adobe session exists in the Playwright profile.
Writes MCP protocol messages to stdout and logs only to stderr.
Keep profile/ private. It may contain browser cookies/session storage after you sign in.
Architecture
The server uses a modular architecture with centralized selectors, reusable utilities, and automatic diagnostics:
Core Modules
src/firefly/selectors.ts- Centralized selector candidates for image, video, and shared UI elementssrc/firefly/locatorResolver.ts- ReusableresolveLocator()with timeout, scroll, retry, and debug loggingsrc/firefly/selfHealing.ts- Self-healing engine with confidence scoring and selector recoverysrc/firefly/diagnostics.ts- Automatic screenshot/HTML capture on failuressrc/firefly/generationWait.ts- Generation completion monitoring with explicit error detectionsrc/firefly/downloads.ts- Robust download handling withdownloadMode: "first"|"all"
Self-Healing Automation
The server includes a self-healing selector recovery system that automatically recovers when Adobe changes their UI, without requiring code changes:
Recovery Chain
Primary selector - Try the first selector candidate (fastest, most specific)
Remaining candidates - Try other predefined selector candidates
DOM inspector discovery - If all candidates fail, discover elements by role, name, and text
Confidence scoring - Each discovered element is scored based on match quality
Fail safely - If no match exceeds confidence threshold (default 0.7), report failure
Confidence Scoring
Each selector candidate is scored based on its kind and match quality:
Selector Kind | Base Score |
| 100 |
| 90 |
| 85 |
| 80 |
| 80 |
| 70 |
| 40 |
| 10 |
Bonuses: visibility (+10), enabled (+5), unique match (+40).
Usage
Self-healing is integrated into locatorResolver.ts. When you call resolveLocator(), it automatically:
Tries the primary selector candidate
Falls back to other candidates if primary fails
Uses self-healing engine if all candidates fail
Returns
healed: trueandconfidence: numberwhen recovery succeedsPersists recovered selectors to
debug/recovered-selectors.json
const result = await resolveLocator(page, candidates, "Generate button", 3000);
if (result.healed) {
console.log(`Healed with confidence: ${result.confidence}`);
}Configuration
const config: AppConfig = {
selfHealing: {
enabled: true,
confidenceThreshold: 0.7, // 0-1, minimum confidence to accept
maxRecoveryAttempts: 3,
persistencePath: "debug/recovered-selectors.json",
},
};Error Detection
The video generation tool explicitly detects Firefly errors instead of treating them as timeouts:
Status | Description |
| Generation completed and download button is enabled |
| "Something went wrong", "Try again", "Server error", etc. |
| Content policy violations |
| Session expired, sign-in required |
| No credits/quota remaining |
| No success or error detected within timeout |
Debugging Workflow
When automation fails:
Run
firefly_debug_bundleto capture a comprehensive diagnostic snapshotRun
firefly_statusto check auth state and take a screenshotRun
firefly_dom_inspectwithmode: "full"to see all selectors and page stateUse
firefly_dom_watchto monitor real-time DOM changesCheck tool output for structured error diagnostics
The debug bundle provides the most complete picture with 26+ diagnostic files, selector validation, automation health checks, and auth diagnostics.
Limitations
This is browser automation over a consumer web UI, not an official Adobe API. It can break when Adobe changes routes, labels, or page structure. Use firefly_status and selector/URL environment overrides to diagnose and adapt.
You are responsible for using Adobe Firefly in accordance with your Adobe plan and applicable terms.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/peroxide-dev/adobe-firefly-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server