Using FileSpin within an AI Agent
How MCP-compatible AI agents connect to FileSpin, follow FileSpin's own guide and workflow recipes, and execute end-to-end media operations through natural language -- setup, permissions, tool patterns, and real-world examples.
FileSpin offers three automation paths: AI agents for ad-hoc, complex workflows through natural language; workflow engines for repeatable, visual pipelines operations teams build without engineering; and REST APIs for custom, high-throughput integrations. This guide covers the first path -- AI agents.
FileSpin is an AI-native digital asset management platform used by eCommerce retailers, event producers, attractions operators, and media companies to manage, transform, and deliver assets. One of the most useful ways to work with FileSpin is through an AI agent -- Claude, ChatGPT, Mistral or any MCP-compatible client -- connected to the platform through the Model Context Protocol.
Instead of learning API endpoints and building integration code, your team describes what they need: "Tag all new arrivals by SKU, remove backgrounds, and send a review link to the buying team." The agent works out which FileSpin operations to use, shows you its plan, and carries out the workflow once you agree.
This guide covers the architecture, setup, available capabilities, and real-world workflow patterns so your team can evaluate and use FileSpin's MCP server. For per-client setup steps, see the MCP Server reference.
Writing code against FileSpin with Claude Code, Codex or Cursor? See Building with FileSpin from Claude Code, Codex and Cursor.
What is the Model Context Protocol (MCP)?
MCP is an open standard that lets AI agents discover and use external tools. Instead of hard-coding API calls or building custom plugins, an MCP server advertises its capabilities -- tools, prompt templates and reference material -- and any compatible AI agent can discover and use them at runtime.
FileSpin's MCP server exposes the FileSpin platform as a focused set of tools, plus prompt templates across 6 workflow categories. The agent connects to FileSpin, the user signs in and approves what the agent may do, and the agent works within those permissions and the user's FileSpin role.
Key concepts
| Concept | What it means |
|---|---|
| Tools | Atomic operations (search, upload, tag, share, transform, etc.) callable by any MCP client. |
| FileSpin's guide | Instructions the server hands every connected app (the get_guide tool): how to find, save, organise and share assets the FileSpin way. It's why the agent behaves the same in Claude, ChatGPT or Cursor. |
| Prompts | Multi-step workflow recipes that chain tools together, in 6 categories. |
| OAuth 2.0 sign-in | The user signs in to FileSpin and approves a fixed set of permissions. The agent never gets delete or admin rights. |
| Asset Shares | Branded, hosted web pages for external distribution with download controls, approval workflows, and analytics. |
| Collections | Internal groups of assets for team collaboration and bulk operations. |
| Addons | Account capabilities (auto-tagging, background removal, on-demand images) that some tools need; the agent checks them at runtime. |
How it works
When an AI agent connects to the FileSpin MCP server, the interaction follows three phases: the agent discovers available capabilities, executes a chain of tool calls to fulfill the user's request, and returns the result.
The agent handles the orchestration -- deciding which tools to call, in what order, with what parameters -- based on the user's request and FileSpin's guide. The MCP server translates each tool call into the corresponding FileSpin REST API request.
Step 1: Add the FileSpin MCP server
The server address is all you need:
https://mcp.filespin.io/mcp
Claude
Add FileSpin under Settings > Connectors with that address. There's nothing else to install: you don't need to upload a skill, because the server gives Claude FileSpin's guide when it connects.

ChatGPT, Cursor and other MCP clients
Any MCP-compatible client can connect: add the address as a custom connector or MCP server. The MCP Server reference has the exact steps for Claude Code, Codex, ChatGPT, Cursor, VS Code and Windsurf.
Step 2: Sign in and approve permissions
The FileSpin MCP server uses standard OAuth 2.0. The first time the agent connects, a browser window opens: the user signs in to FileSpin and approves the permissions the agent asks for. The agent then receives a token limited to those permissions.
Two limits apply to everything the agent does:
- The permissions approved when connecting: viewing and downloading assets, uploading and editing, collections, scheduled agent runs, sending notifications and read-only usage stats. The user can untick any of them.
- The user's FileSpin role. Within those permissions, the agent can only do what the signed-in user's role allows.
No role, Admin included, gives a connected agent the right to delete or purge assets, manage users, or change account settings. Those stay in the FileSpin dashboard.
This means:
- No API key in the AI app. The agent signs in as a FileSpin user.
- Every action is attributed. The agent's actions run under the signed-in user and are listed on the dashboard's Agent activity page.
- You can disconnect at any time. Each connection appears under Connected apps in your profile, where you can sign it out.
Create a dedicated FileSpin user for a shared or unattended agent, with the least privileged role that covers its workflows. This gives you a clean audit trail and precise permission control.
How the agent keeps your library safe
FileSpin's guide and the server make every connected app work the same careful way:
- It asks first. Before any change to your assets -- metadata, tags, public access, collections, replacing a file, AI edits, transcodes -- the agent shows a plan (which assets, how many, what will change) and waits for your OK. For bulk changes it tries one asset first and shows you the result.
- A retry never does the work twice. If a connection drops and the agent repeats a call, FileSpin returns the first result instead of creating a second share or collection, or sending a second email.
- It never overwrites someone else's newer change. When the agent writes back something it read earlier, FileSpin checks that nobody changed it in between. If someone did, nothing is written and the agent re-reads.
- Metadata changes can be undone for 24 hours. Ask the agent to undo its last metadata change.
- It can report a problem for you. Ask your assistant to report a bug or request a feature, and it sends it to FileSpin support with a tracking ID. Support replies to your FileSpin email address.
Let the AI get you started
The quickest way to start is to ask the agent itself. Once FileSpin is connected, it has FileSpin's guide and the list of workflow recipes. Try:
Help me get started with FileSpin, walk me through the prompts and workflows I can do - starting with how to find assets and have them reviewed and finalised

Available tools
The FileSpin MCP server exposes a focused set of tools that agents call directly. These are atomic operations -- the building blocks agents compose into workflows. They sit on top of the FileSpin REST API and enforce the permissions above.
| Category | Summary |
|---|---|
| Asset management | Search and inspect assets, find exact copies and similar images, update metadata (single or bulk, with undo), discover schemas, and check account capabilities. |
| Uploads | Import files from a link. Agents that can run commands (Claude Code, Codex, Cursor) upload files and folders from your computer straight to your FileSpin storage; chat apps send you a FileSpin upload page instead. |
| Image transformation | Generate on-brand image variants -- resizing, cropping, social-platform sizes, and logo or text watermarks. Print-ready CMYK exports. |
| AI image editing | Background removal, enhance, upscale, remove objects, fill or extend an image, and retrieve AI-generated labels with confidence scores. |
| Sharing and distribution | Create, update, list, and delete branded share pages; track analytics and approvals; reuse share templates; build campaign-tagged links. |
| Collections | Create and search collections, manage their assets, and generate ZIP download links. |
| Video | Transcode videos, create trimmed or custom clips, and retrieve streaming URLs. |
| Delivery | Generate CDN view URLs and signed download URLs for assets. |
| Automation | Schedule recurring agent runs, and email a teammate or client about assets. |
| Guide and support | FileSpin's guide for the agent (get_guide), the FileSpin developer docs, and sending feedback to FileSpin support (submit_feedback). |
For the authoritative, always-current list, have your agent call the standard MCP tools/list endpoint after connecting.
Prompt templates -- pre-built workflow recipes
Prompt templates are multi-step workflow recipes that guide the agent through common jobs. The agent discovers them automatically, and when one is invoked it receives a structured message that tells it which tools to call and in what order. There are 36, in 6 categories:
| Category | Examples |
|---|---|
| Campaign & Media | Campaign launch kits (find assets, create variants, package into a collection and a share), press kits, branded galleries, video showcase pages, saving a search to a collection, client hand-off packages. |
| Product Pipelines | End-to-end product image runs (find, tag, review share), marketplace-ready thumbnails for Amazon, Shopify and Instagram, a daily new-arrivals pipeline. |
| Event Highlights | Event photo workflows (find a speaker's photos, tag them, press share), sponsor deliverable pages with approval, same-day conference distribution, watermarked guest-photo previews. |
| Brand Approval & Review | Campaign review pages with approve/reject, template-based shares, checking approval status. |
| DAM Migration & Backfill | Post-ingest clean-up after a migration (de-duplicate, keep source metadata, tag), finding assets processed by an addon, auditing and standardising metadata. |
| Quick Actions | Background removal, social media kits, logo and text watermarks, print-ready exports, video transcodes and clips, profile pictures, responsive hero images, share analytics and expired-share clean-up. |
How prompts work
When a user says "Process all product images from the summer shoot", the agent matches this to the product image template and receives:
Process product images matching "summer shoot" uploaded recently:
1. Find images matching "summer shoot".
2. Discover the available metadata schema, then bulk-tag the matching assets with
campaign = "Summer Campaign", category = "product", status = "ready".
3. Generate Instagram feed and Facebook post versions using branded image transformation.
4. Create a branded review page with approvals enabled for the buying team.
Give me the share URL and a summary of assets processed.
The agent shows you its plan, then executes each step, calling the appropriate tools in sequence, handling responses, and reporting back.
Workflow patterns
When agents compose multi-step workflows -- whether guided by prompts or working from free-form instructions -- they follow a few canonical sequences:
Discovery first
Before operating on assets, the agent checks which addons are enabled, discovers the available metadata schemas, and searches for assets matching the request.
Plan, then change
Before changing anything, the agent tells you which assets it found, how many, and what it will do, and waits for your OK. Bulk changes start with one sample asset.
Single-asset inspection and delivery
The agent fetches the asset's details, then returns a viewable CDN URL, a signed download URL, or a resized or cropped variant.
Metadata workflows
The agent discovers the relevant schema, then updates fields on a single asset or bulk-tags many assets at once. Tags are added or removed without resending the whole list, so nobody else's tags are lost.
External sharing
The agent searches for the target assets (or picks up a collection), creates a branded share page, and can later pull analytics or approval status for that share.
Video workflows
The agent inspects the asset's existing conversions, transcodes or clips as required, and returns a streaming URL.
The agent checks asset data before video operations to confirm the asset is a video and to see its existing conversions -- avoiding redundant transcoding.
Real-world example: E-commerce product pipeline
User prompt: "Tag all new arrivals by SKU, remove backgrounds, and send a review link to the buying team."
Here's what the agent does:
- Discover context. Confirms the Remove Background addon is enabled and retrieves the relevant metadata schema (fields: sku, category, status, campaign).
- Find assets. Searches for recent "new arrivals" and finds 24 product images uploaded in the last 7 days.
- Show the plan. Lists the 24 images, the tags it will set and that background removal uses credits, tries the tags on one image first, and waits for your OK.
- Tag with metadata. Bulk-tags all 24 assets with category = "new-arrival", status = "pending-review", campaign = "Spring 2026".
- Remove backgrounds. Creates a transparent cut-out of each image as a new asset, linked to its original.
- Create review share. Creates a branded share page titled "Spring 2026 New Arrivals -- Review" with approvals and feedback enabled, expiring in seven days.
Agent response to user: "Done. 24 new arrival images tagged with Spring 2026 campaign metadata, with background-free versions saved next to them. Review page with approvals and social media downloads: https://app.filespin.io/shared/... -- the buying team can approve or reject each image directly."
Real-world example: Event photo distribution
User prompt: "Find today's photos of our keynote speaker, tag them by session, and build a branded share page for the press team."
Here's what the agent does:
- Find the photos. Searches today's uploads for the event and narrows them to the speaker by name across file names, tags and descriptions, using the AI labels where the metadata is thin -- 87 matches.
- Confirm. Shows you a sample of the photos and the count, and waits for your OK before tagging.
- Tag by session. Retrieves the event schema and bulk-tags the 87 assets with speaker = "Jane Smith", session = "Opening Keynote", event = "TechConf 2026".
- Branded press share. Creates a share page titled "TechConf 2026 -- Jane Smith Keynote Photos" with company branding (logo from the account watermark, primary colour #1a73e8), approvals enabled, expiring in one week.
Agent response: "Found 87 photos of Jane Smith from today's sessions and tagged them with speaker, session and event. Press share page with social media downloads: https://app.filespin.io/shared/..."
Tag speakers at upload, or keep their names in file names, and this search is exact.
Addon availability and runtime checks
Some capabilities depend on addons enabled on your FileSpin account. The agent checks the account's addons before an addon-dependent operation.
| Addon | Capability it enables |
|---|---|
IMAGE_ANALYSIS | AI labels on upload and auto-tag retrieval |
REMOVE_BACKGROUND | Background removal |
ON_DEMAND_IMAGE | Real-time image transformations: resized and cropped variants, branded variants |
If an addon isn't enabled, the agent tells the user rather than failing silently.
Best practices
-
Create a dedicated agent user. Set up a FileSpin user specifically for a shared or unattended agent, with the least privileged role for its workflows. This gives you a clean audit trail and precise permission control.
-
Use prompt templates for common workflows. Prompts encode the right tool order, the required checks and sensible defaults. They're faster and more reliable than free-form instructions for repeatable operations.
-
Read the plan before you say yes. The agent tells you which assets and how many it will change. That's the moment to catch a search that matched too much.
-
Use collections for internal grouping, shares for external distribution. Collections organise assets for your team. Shares create branded, trackable pages for people outside FileSpin -- with download controls, approval workflows, and analytics.
-
Let the agent handle orchestration. Describe the outcome you want and let the agent decide which tools to chain and in what order. That's what MCP is designed for.
-
Review what it did. The dashboard's Agent activity page lists every action, by agent, with what succeeded and what was refused.