
Storyblocks
io.github.rocksfrow由 GitHub 账号 rocksfrow 发布v0.2.1更新于 Oct 24, 2026
Unofficial Storyblocks API v2 server: search and license stock video, audio, and images.
概览
非官方的 Storyblocks API v2 服务器,让助手搜索视频、音频和图片素材,读取条目元数据并获取授权下载链接。
- 可以做什么
- 按时长、BPM、方向、颜色、画质、分页等条件搜索视频、音频和图片素材
- 读取单个或批量条目的完整元数据与可用格式,并查找相似素材
- 按格式获取授权下载链接,浏览分类、合集以及即将下架的素材
- 管理 YouTube Content ID 工具:将频道加入白名单、提交音频争议、列出有效权利方
- 向任意 API v2 路径发送签名原始请求,并读取内置的 API 参考资源
- 适用场景
- 在为视频或设计项目挑选视频素材、音乐、音效、照片或矢量图时,希望助手搜索 Storyblocks 素材库并返回授权下载链接。适合已持有 Storyblocks API 密钥、并使用可运行本地服务器的桌面 MCP 客户端的人。
- 运行要求
- 以本地 stdio 进程运行,基于 Node.js 且无第三方依赖;Claude Desktop 可安装 .mcpb 包,其他客户端指向 server/index.js。需要 Storyblocks 公钥和私钥,通过 STORYBLOCKS_PUBLIC_KEY 与 STORYBLOCKS_PRIVATE_KEY 提供。需要访问 Storyblocks API 的网络连接。可选变量可设置默认用户与项目 ID、状态目录、基础地址、请求有效期和超时。
安装
在 SourceWeft 中
- 打开 控制台中的 Storyblocks,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Storyblocks MCP
[License: MIT] [Built with MCPB] [Node] [Dependencies] [CI]
An MCP server for the Storyblocks API v2 — search stock footage, music, sound effects, photos, and vectors, pull item metadata, and fetch licensed download links from Claude, Cursor, or any MCP client.
This is a bring-your-own-credentials tool: you supply the API keys Storyblocks issued to you, and the server signs each request locally with Storyblocks' HMAC scheme. Nothing is hosted, your private key never leaves your machine, and there is nothing to install — the server is plain Node.js with zero dependencies.
Unofficial. This is an independent, community-built project. It is not affiliated with, endorsed by, or supported by Storyblocks. Your use of the API is governed by your own agreement with Storyblocks.
What you get
search_videos/search_audio/search_images— every filter the API supports (content type, duration, BPM, orientation, color, releases, editorial, frame rate, VR, sort, pagination, extended fields)get_stock_item_details/get_stock_items_details_batch— full metadata and available download formatsget_download_links— full-quality, licensed download URLs by formatfind_similar_stock_items— "more like this"list_categories/list_collections/get_collection_items— browse curated contentlist_expiring_content— removed items still downloadable for a limited timewhitelist_youtube_channel/file_youtube_audio_dispute/list_valid_claimants— YouTube Content ID claim tooling for Storyblocks audiostoryblocks_raw_request— signed escape hatch for any/api/v2path- Resource
storyblocks://docs/api-overview— a condensed API reference the model can read
Prerequisites: Storyblocks API keys
You need a public key and a private key from Storyblocks.
- Free test keys (lower rate limits, internal testing only): https://developer.storyblocks.com/register
- Full-access keys: https://www.storyblocks.com/business-solution/api or
[email protected]
Storyblocks also requires a user_id and project_id on every search and download. These are opaque identifiers from your system (not names or emails) that let Storyblocks tie downloads to searches and pay contributors. You can set defaults once (below) or pass them per call.
Install in Claude Desktop (the .mcpb)
- Download
storyblocks.mcpbfrom the latest release. - Settings → Extensions → Install extension, pick the file.
- When prompted, paste your public key and private key. Leave the optional user id / project id fields blank — see User and project ids.
Use with other MCP clients (Cursor, VS Code, Windsurf, …)
Underneath this is a standard stdio MCP server — any client that runs local MCP servers can use it directly, no .mcpb required. Clone or download the repo (no npm install, no build step) and point the client at server/index.js.
Cursor — ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project):
VS Code (.vscode/mcp.json), Windsurf, and Claude Desktop (manual config) use the same command + args + env shape; only the file location differs.
Remote-only clients (ChatGPT connectors, Perplexity, …) need an HTTPS MCP URL and can't run a local command, so this stdio build can't be added to them directly.
Usage examples
- "Find 4K drone footage of a coastline, under 30 seconds" →
search_videos { keywords: "coastline aerial", quality: "4K", max_duration: 30 } - "Upbeat instrumental around 120 BPM for a product video" →
search_audio { keywords: "upbeat corporate", content_type: ["music"], min_bpm: 110, max_bpm: 130, has_vocals: false } - "Landscape photos of Tokyo at night with a lot of blue" →
search_images { keywords: "tokyo night", orientation: "landscape", color: "#1E3A8A" } - "What formats is item 11851 available in?" →
get_stock_item_details { media_type: "videos", stock_item_id: 11851 } - "Give me the download link for that clip" →
get_download_links { media_type: "videos", stock_item_id: 11851 } - "Show me more like this track" →
find_similar_stock_items { media_type: "audio", stock_item_id: 148396, limit: 10 }
Search responses are capped at 10,000 results by Storyblocks (results_per_page ≤ 250). Category ids from list_categories can be passed to the categories filter along with the matching content_type.
Things worth knowing:
get_download_linksis a licensed download. It counts against your account's download limit, so it should be called once the user has picked an item, not while browsing. The URLs it returns are CloudFront-signed and expire roughly 30 minutes after issue — download immediately and don't store them. Preview and thumbnail URLs from search are public and safe to keep.- Image
content_type: over 99% of the image library (ordinary photos included) is typedsnapshots, so filtering tophotosreturns almost nothing. Leave it unset unless you want illustrations or vectors. - Narrowing a search: add words to
keywords("sunset ocean horizon") and use structural filters (min_duration,quality,orientation,categories).required_keywords/filtered_keywordsare sent exactly as documented (comma-separated) but have been observed to return 0 results upstream even for terms that appear in items' keyword lists; when that happens the tool response carries ahint. Keepsort_byat its defaultmost_relevantfor topical searches —most_downloadedranks the whole matching pool by popularity, so off-topic-but-popular clips float to the top. - Entitlements:
find_similar_stock_itemsandlist_expiring_contentare not enabled on every key. A403 "API function request is invalid."means the endpoint isn't switched on for your account (your credentials are fine); ask Storyblocks to enable it. list_collectionsis paged client-side (50 per page,searchfilter) because Storyblocks returns the entire list — hundreds of entries — in one response.get_stock_items_details_batchfetches and merges all upstream pages by default soinvalid_stock_ids/stock_ids_not_foundare always complete (Storyblocks only reports them on the final page).
User and project ids
Storyblocks requires a user_id and project_id on every search and download. They are identifiers in your system — Storyblocks does not issue them and its dashboard never shows them — and they exist so Storyblocks can tie downloads to searches, replay support cases, and de-duplicate repeat downloads by the same person when paying contributors. Because of that last point, user_id must be stable over time and must not be a name or email (the raw value is transmitted; Storyblocks hashes it on their side).
For a personal install there is nothing to configure. The server uses:
If you embed this server in a multi-user application that already has user and project ids, set STORYBLOCKS_DEFAULT_USER_ID / STORYBLOCKS_DEFAULT_PROJECT_ID or pass user_id / project_id on each call. Both must match ^[A-Za-z0-9_-]+$ — the server rejects anything else at startup (env) or before the request is sent (tool args). It never derives ids from your hostname, OS username, or email. STORYBLOCKS_STATE_DIR moves the state file.
How authentication works
Every request carries three query parameters: APIKEY (your public key), EXPIRES (a unix timestamp, at most 36 hours ahead), and HMAC = hex(HMAC-SHA256(key = privateKey + EXPIRES, data = URL path)). The signed data is the path only — no host, no query string — but it includes path parameters such as the stock item id. The server computes this per request in server/auth.js; the private key is used only as HMAC input and is never sent or logged.
Storyblocks rate-limits per endpoint and per client; test keys have lower limits than full-access keys. get_download_links is a licensed download event and counts against the download limit.
Configuration (env overrides)
Blank values — and the unreplaced ${user_config.…} placeholders Claude Desktop passes through when an optional field is left empty — are treated as unset.
Errors
API errors (400 bad parameter, 403, 404 not found, 429 rate limit) are returned as tool errors containing the HTTP status, the errors message from Storyblocks, and a troubleshooting hint tailored to the response. A 403 with "APIKEY header is invalid" means a wrong key or skewed system clock; a 403 with "API function request is invalid." means the endpoint isn't enabled for your key.
Build
Pushing a vX.Y.Z tag triggers CI to run the checks, pack the bundle, attach it to a GitHub Release, and publish to the MCP Registry.
Why zero dependencies
Only Node.js built-ins (crypto, fs, readline, global fetch) — no node_modules, no lockfile, no build step. The whole server is a few hundred lines you can read in one sitting, the .mcpb is ~25 KB, and there is no third-party code between your API keys and the wire. The MCP protocol itself is small enough (JSON-RPC over stdio: initialize, tools/list, tools/call, resources/*) that hand-rolling it in server/index.js is simpler than depending on an SDK.
Contributing
See CONTRIBUTING.md.
License
MIT © Kyle Renfrow
Not affiliated with or endorsed by Storyblocks. "Storyblocks" is a trademark of Footage Firm, Inc. Use of the Storyblocks API is subject to your own API agreement with Storyblocks.
来源:README.md,提交 14a65da
工具
0版本历史
1- v0.2.1最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分