Dreep MCP Server
Dreep MCP Server gives AI agents a full media pipeline for uploading, transforming, converting, OCR-ing, and delivering images, videos and documents.
Upload files from a local path or base64, including direct-to-storage presigned uploads with confirmation.
List media assets with folder filtering and pagination.
Remove image backgrounds to transparent PNG/WebP.
Extract text via OCR from images/PDFs, optionally with line blocks and bounding boxes.
Convert documents between Word, PDF, Excel, PowerPoint, CSV, etc., and render PDF pages as images.
Build CDN delivery URLs with transforms like resize, crop, format conversion, compression, blur, rounding, DPR, and video trim/codec/fps.
Build time-limited signed URLs for assets in signed folders.
Create and list folders, set top-level access control (public/private/signed), and list folder hierarchy.
Create and list reusable named transform presets.
Check project usage: storage used and image/file/folder counts.
Click on "Deploy 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., "@Dreep MCP Server Convert contract.docx to PDF and give me a link that expires in an hour"
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.
Dreep docs · API reference · Python SDK · Changelog · Report a bug
Ask your agent things like:
"Upload
~/Desktop/launch/hero.pngtomarketing/2026and give me a 1200px WebP and a 400px square thumbnail.""Pull the text out of this scanned invoice."
"Convert
contract.docxto PDF and give me a link that expires in an hour.""Cut the background out of
product.jpgand show it on white."
Contents
Add it to your client: Claude Desktop · Claude Code · Cursor · VS Code · Windsurf · Codex CLI · Gemini CLI · Zed · Cline and others · Remote (HTTP)
Related MCP server: Ceo MCP Media
How it works
flowchart LR
A["AI agent<br/>(Claude, Cursor, Codex...)"] -- "MCP<br/>stdio or HTTP" --> S["dreep-mcp"]
S -- "dreep SDK<br/>(your API key)" --> API["Dreep API"]
API --> CDN["Dreep CDN<br/>(or your custom domain)"]
S -. "URL building:<br/>no network" .-> CDNYour MCP client starts
dreep-mcpon your machine (stdio), or connects to one you host (streamable HTTP).The agent sees 14 tools (16 with deletes enabled), each with a typed JSON schema that lists every valid transform value, so it calls them correctly the first time.
Each tool calls the official Dreep SDK (Node or Python), which talks to the Dreep API with your key. Delivery and signed URLs are built locally, with no API call.
Results come back as structured JSON. Every asset carries the delivery
urlexactly as Dreep returned it, custom CDN domain included.
There are two native servers, one for Node and one for Python, so you only need the runtime you already have. They expose the same tools: the Python server exports its tool names, descriptions and input schemas to npm/contract/tools.json, the Node server serves that file, and CI fails if it goes stale. The one known difference comes from the Node SDK.
Quick start
Create an API key on the API Keys page of the Dreep dashboard.
Add the server to your client (below). Pick whichever runtime you already have:
Runner
Command
Needs
npx
npx -y dreep-mcpNode 20+
uvx
uvx dreep-mcppip
pip install dreep-mcp, thendreep-mcpPython 3.10+
The examples below use
npx. To use uvx instead, swap"command": "npx", "args": ["-y", "dreep-mcp"]for"command": "uvx", "args": ["dreep-mcp"].
Add it to your client
Every client needs the same three things: a command (npx), its arguments (-y dreep-mcp), and your API key in the DREEP_API_KEY environment variable. Replace drp_live_your_key with your key. Add DREEP_SIGNING_SECRET if you use signed folders, and DREEP_MCP_ALLOW_DELETE if you want the delete tools (see Configuration).
Claude Desktop
Open Settings → Developer → Edit Config, which opens claude_desktop_config.json:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"dreep": {
"command": "npx",
"args": ["-y", "dreep-mcp"],
"env": {
"DREEP_API_KEY": "drp_live_your_key",
"DREEP_SIGNING_SECRET": "your_signing_secret"
}
}
}
}Restart Claude Desktop. Dreep appears under the tools (slider) icon in the message box.
If Claude Desktop can't find
npx, use its full path (runwhich npx). GUI apps don't always inherit your shell'sPATH, which is common with nvm.
Claude Code
claude mcp add dreep --scope user -e DREEP_API_KEY=drp_live_your_key -- npx -y dreep-mcp--scope user makes it available in every project; leave it out to add it to the current project only, or use --scope project to share it with your team through .mcp.json (keep the key out of that file, as shown below). Check it with claude mcp list, or /mcp inside a session.
To share the setup in a repository without committing the key, put this in .mcp.json and let each person export DREEP_API_KEY in their own shell:
{
"mcpServers": {
"dreep": {
"command": "npx",
"args": ["-y", "dreep-mcp"],
"env": { "DREEP_API_KEY": "${DREEP_API_KEY}" }
}
}
}Cursor
Open Cursor Settings → MCP → Add new MCP server, or edit ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"dreep": {
"command": "npx",
"args": ["-y", "dreep-mcp"],
"env": { "DREEP_API_KEY": "drp_live_your_key" }
}
}
}The Dreep tools are then available to the agent in chat.
VS Code (GitHub Copilot)
Create .vscode/mcp.json. VS Code asks for the key the first time and stores it securely:
{
"inputs": [
{
"type": "promptString",
"id": "dreep-api-key",
"description": "Dreep API key",
"password": true
}
],
"servers": {
"dreep": {
"type": "stdio",
"command": "npx",
"args": ["-y", "dreep-mcp"],
"env": { "DREEP_API_KEY": "${input:dreep-api-key}" }
}
}
}Open Copilot Chat in Agent mode and pick the Dreep tools from the tools menu.
Windsurf
Open Windsurf Settings → Cascade → MCP Servers → View raw config, or edit ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"dreep": {
"command": "npx",
"args": ["-y", "dreep-mcp"],
"env": { "DREEP_API_KEY": "drp_live_your_key" }
}
}
}OpenAI Codex CLI
Add to ~/.codex/config.toml:
[mcp_servers.dreep]
command = "npx"
args = ["-y", "dreep-mcp"]
env = { DREEP_API_KEY = "drp_live_your_key" }Gemini CLI
Add to ~/.gemini/settings.json (or .gemini/settings.json in a project):
{
"mcpServers": {
"dreep": {
"command": "npx",
"args": ["-y", "dreep-mcp"],
"env": { "DREEP_API_KEY": "drp_live_your_key" }
}
}
}Zed
Add to Zed's settings.json (Zed → Settings → Open Settings):
{
"context_servers": {
"dreep": {
"command": "npx",
"args": ["-y", "dreep-mcp"],
"env": { "DREEP_API_KEY": "drp_live_your_key" }
}
}
}Cline and other clients
Cline (MCP Servers → Configure), Roo Code, Continue, Goose, JetBrains AI Assistant, LM Studio and most other clients take the same mcpServers block shown for Cursor. Anything that can launch a stdio MCP server can run npx -y dreep-mcp with DREEP_API_KEY set.
Remote clients over HTTP
For web-based agents, shared team servers or containers, run the streamable HTTP transport:
export DREEP_API_KEY=drp_live_your_key
export DREEP_MCP_HTTP_TOKEN="$(openssl rand -hex 32)"
npx -y dreep-mcp --transport http --host 0.0.0.0 --port 8000The endpoint is http://<host>:8000/mcp, and every request must send Authorization: Bearer <DREEP_MCP_HTTP_TOKEN>. Put it behind HTTPS (a reverse proxy or your platform's load balancer) before exposing it. Then connect, for example from Claude Code:
claude mcp add --transport http dreep https://mcp.example.com/mcp --header "Authorization: Bearer $DREEP_MCP_HTTP_TOKEN"Without --host it binds to 127.0.0.1, and it refuses to bind to any other address unless DREEP_MCP_HTTP_TOKEN is set. Over HTTP the tools can't read files on the server unless you allow specific directories with DREEP_MCP_FILE_ROOTS; remote callers send files as content_base64 instead.
Tools
Tool | What it does | Kind |
| Uploads an image, video, audio file or document from a local path or base64 content, optionally transforming it before storage. Files over 100 MB stream straight to storage. | writes |
| Starts a presigned upload for bytes the server can't read (PUT them, then confirm). | writes |
| Finalises a presigned upload and returns the asset. | writes |
| Lists assets with pagination, filtered by folder. | read-only |
| Cuts the subject out of an image and stores a transparent PNG or WebP. | writes |
| OCR for images and PDFs. On the Python server, optionally with line blocks and bounding boxes ( | writes |
| Word ↔ PDF, Excel, PowerPoint, CSV, or a PDF page to PNG/JPEG. | writes |
| Resize, crop, convert, compress, blur, round or trim an asset at the CDN. | local, no network |
| A time-limited link for an asset in a signed folder. | local, no network |
| Creates a folder or a whole path, with access control ( | writes |
| Lists folders with their paths and access control. | read-only |
| Saves a named transform for reuse. | writes |
| Lists saved presets. | read-only |
| Storage used and image, file and folder counts. | read-only |
| Permanently deletes an asset. Only when | destructive |
| Deletes a preset. Only when | destructive |
Every tool carries MCP annotations: read-only tools are marked so clients can run them without asking, and delete tools are marked destructive so clients ask you first.
A few behaviours come straight from the API reference, verified against the live API:
Use URLs as returned. Projects can serve assets from a custom CDN domain, so the tools never construct a delivery URL from scratch; they transform the one Dreep returned.
Signed URLs sign the asset and expiry only (
HMAC-SHA256over"{id}:{exp}"). Transform parameters ride along unsigned.Access control is set on top-level folders; nested folders inherit it. The API has no endpoint for deleting folders.
Presets need a
format, and preset keys may only contain lowercase letters, digits and underscores.
Configuration
Variable | Required | Purpose |
| yes | Your project API key. |
| for signed URLs | The URL Signing Secret from the dashboard's API Keys page. |
| no |
|
| no | Directories the file tools may read, separated by |
| for public HTTP | Bearer token every HTTP request must present. |
Command-line options:
dreep-mcp [--transport {stdio,http}] [--host HOST] [--port PORT] [--path PATH]Option | Default |
|
|
|
|
|
|
|
|
Security
Your API key can read, upload and delete everything in the project. It stays in the server's environment and is sent only to the Dreep API, never to the agent.
Deletes are off unless you turn them on, and are marked destructive so clients confirm them.
File access is scoped. Restrict which directories the agent can upload from with
DREEP_MCP_FILE_ROOTS. Over HTTP, local file reads are off unless you set it.The HTTP transport binds to localhost by default and refuses a public address without
DREEP_MCP_HTTP_TOKEN. Tokens are compared in constant time.Signed URLs are bearer tokens. Anyone with the link can fetch the asset until it expires.
Report vulnerabilities privately; see SECURITY.md.
Development
git clone https://github.com/IndigoSoftwares21/dreep-mcp.git
cd dreep-mcp
bash scripts/setup_hooks.sh # venv, dev dependencies, git hooks
bash scripts/quality_gate.sh # lint, format, repository rules, mypy --strict, Python and Node testsTry your local checkout in a client by pointing it at the venv: "command": "/path/to/dreep-mcp/.venv/bin/dreep-mcp". To poke at the tools interactively, run the MCP Inspector:
npx @modelcontextprotocol/inspector .venv/bin/dreep-mcpThe layout:
Path | What lives there |
| The Python server: one module per tool group |
| The schemas the agent reads, for both servers |
| The Python command and both transports |
| The Node server: the same tool groups |
| Generated tool contract the Node server serves ( |
| Repository rules: file length, no magic strings, DRY, layering, security |
Read CONTRIBUTING.md before opening a pull request, and AGENTS.md if you're an AI agent working in this repository.
License
Available Tools
14 toolsbuild_delivery_urlARead-onlyIdempotent
Builds a delivery URL that resizes, crops, converts or otherwise transforms an asset.
Transforms run on the fly at the CDN and are cached. Example: width 400 and format webp for a thumbnail; format pdf to convert a Word document.
Inputs: url (required), transform. Returns: object
build_signed_urlARead-onlyIdempotent
Builds a time-limited URL for an asset in a signed folder.
Needs DREEP_SIGNING_SECRET on the server. Anyone holding the link can fetch the asset until it expires, so share it only with the intended recipient.
Inputs: url (required), asset_id (required), expires_in_seconds (required), transform. Returns: object
confirm_uploadA
Finalises a presigned upload once its bytes are in storage; returns the asset.
A conflict error means the bytes haven't landed yet: retry this call, not the PUT.
Inputs: upload_id (required), transform, preset_key. Returns: object
convert_documentA
Converts a document (Word to PDF, PDF to Word, a PDF page to an image...).
Stored as a new asset. If status is 'processing', the url answers 202
until the conversion finishes.
Inputs: format (required), key, page, path, +5 more. Returns: object
create_folderA
Creates a folder. Uploads create folders on demand, so this is mainly for setting access control before anything lands.
Access control can only be set on a top-level folder (name, no parent); nested folders inherit it. Folders cannot be deleted through the API.
Inputs: name, path, parent_id, parent_path, +2 more. Returns: object
create_presetB
Saves a named transform, applied anywhere with transform preset: key.
Inputs: key (required), name (required), transform (required). Returns: object
create_upload_urlA
Starts a direct-to-storage upload for bytes this server can't read.
PUT the file to upload_url with exactly this Content-Type and Content-Length
(valid about ten minutes), then call confirm_upload with the returned id.
If already_exists is true, skip the PUT and confirm straight away.
Inputs: size_bytes (required), content_type (required), key, folder, +4 more. Returns: object
extract_textB
Runs OCR on an image or PDF and returns the extracted text.
Inputs: path, folder, filename, folder_id, +3 more. Returns: object
get_usageARead-only
Storage consumed and image, file and folder counts for the project.
Inputs: no named parameters. Returns: object
list_foldersARead-only
Lists folders with their full paths and access control. With no filter, returns every folder at any depth.
Inputs: path, parent_id, root_only. Returns: object
list_mediaARead-only
Lists ready assets, newest first, with pagination.total across all pages.
Each asset has id, url, filename, mimetype, size_bytes and folder.
There is no text search: page through and filter by filename or folder.
Inputs: page, limit, folder, folder_id, +1 more. Returns: object
list_presetsARead-only
Lists every saved preset with its id, key, name and params.
Inputs: no named parameters. Returns: object
remove_backgroundA
Cuts the subject out of an image and stores the transparent cutout.
To show it on a colour, build a delivery URL with transform bg, e.g. 'ffffff'.
Inputs: path, folder, format, filename, +3 more. Returns: object
upload_fileA
Uploads an image, video, audio file or document to Dreep and returns the asset.
The result's url is the ready-to-use delivery URL. Files over 100 MB stream
straight to storage through a presigned upload. A transform given here is
applied before storage and replaces the original.
Inputs: key, path, folder, filename, +6 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools have clearly distinct purposes tied to a resource+action: upload, transform URL building, listing, image/doc operations, folder and preset management. The only friction is the upload trio (upload_file, create_upload_url, confirm_upload), where an agent must understand that create_upload_url handles large/unreadable files and confirm_upload finalizes them, but the descriptions do spell this out.
Every tool follows a consistent verb_noun pattern: upload_file, confirm_upload, build_delivery_url, create_upload_url, list_media, remove_background, extract_text, convert_document, build_signed_url, create_folder, list_folders, create_preset, list_presets, get_usage. No mixed conventions or stray camelCase; the naming is highly predictable.
Fourteen tools is well within the ideal 3-15 range for a media asset management server. Each tool earns its place by covering a distinct operation: two upload paths, URL building, listing, image/doc transforms, folders, presets, and usage. Nothing feels redundant.
The surface covers upload (both direct and presigned), listing, on-the-fly transforms, image background removal, OCR, document conversion, signed URLs, folders, presets, and usage. Minor gaps exist: there's no delete for assets or presets, and no get-single-asset or text search, but these are either explicitly explained (folders can't be deleted via API) or workable via listing.
Maintenance
Related MCP Connectors
Image, video and audio hosting for agents through MCP, CLI, and API.
Audio, music, video, image, PDF, speech, text and web-check tools callable from any MCP client.
Audio, music, video, image, PDF, speech, text and web-check tools callable from any MCP client.
Hosted MCP tools for FFmpeg-style video and audio processing through FFMPEG API.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables document conversion and processing through MCP, including Office/PDF/Markdown conversions, OCR, and PDF operations like split, rotate, encrypt, and extract.MIT
- FlicenseCqualityBmaintenanceProvides a durable MCP media pipeline for image, video, audio, and storyboard generation, with FFmpeg composition, provider routing, and resumable long-running jobs.21-
- AlicenseNot gradedqualityBmaintenanceEnables image and video generation and editing through MCP tools, including image editing, upscaling, background removal, video generation, image-to-video, and video extension. Video generation runs asynchronously with job status and result retrieval.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to inspect, convert, resize, compress, crop, rotate, watermark, background-remove, and batch-process images with secure path confinement and result verification.14MIT