A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

Stocky MCP server
An MCP server that lets an AI assistant search, inspect and download royalty-free stock photography from Pexels and Unsplash.
WHAT IT DOES
- •Searches Pexels and Unsplash concurrently for stock images, with per-provider filters for orientation, color, and sort.
- •Returns rich image metadata including dimensions, photographer, tags, and available sizes.
- •Generates the attribution each provider requires and reports Unsplash downloads as their API guidelines demand.
- •Downloads an image by id at a chosen size, either to a path or as base64 data.
BEST FOR
- •Finding stock photos for a project by asking in natural language, such as a misty pine forest at dawn.
- •Fetching filtered results, such as a set of landscape-orientation mountain photos from a specific provider.
- •Downloading a chosen image by its prefixed id at a specified size to a local path.
ABOUT STOCKY
Stocky MCP server is cataloged as an MCP server attributed to joelio. An MCP server that lets an AI assistant search, inspect and download royalty-free stock photography from Pexels and Unsplash. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.
能力检查器
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
Tools (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Resources (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Prompts (0)
暂无可展示的已审核记录。这不表示上游不支持此能力。
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for Stocky MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Do I need API keys for both providers?
No; you only need one, since Stocky runs with whichever providers are configured.
What happens if an image provider fails during a search?
A failing provider is reported in an errors map explaining which provider failed and why, rather than silently returning no results.
How are download sizes handled if a provider lacks the requested size?
If a provider doesn't offer the requested size, the closest available size is used instead of failing.
上游原版 README
README.md · 43230b92bff1 · 采集于 2026-11-13 11:58:46 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。

Stocky
Find beautiful royalty-free stock images 📸

Stocky
Find beautiful royalty-free stock images 📸
Stocky is an MCP server that lets an AI assistant search, inspect and download royalty-free stock photography from Pexels and Unsplash.
🆕 Version 2.0 — already using Stocky? Read this
Your MCP client config keeps working. If it points at
stocky_mcp.py, that file is still there and still starts the server. Nothing breaks on upgrade.But
pip install -r requirements.txtwill fail — that file is gone, and so issetup.py. From a source checkout, install withuv syncorpip install -e .instead. See Upgrading from 1.x for the two-minute version, or the CHANGELOG for everything.The headline changes:
pycurlis gone (so no more C build errors), searches actually run concurrently, failed providers now report why instead of returning nothing, and Python 3.10+ is required.
✨ Features
- 🔍 Multi-provider search — queries Pexels and Unsplash concurrently
- 📊 Rich metadata — dimensions, photographer, tags and every image size
- ⚖️ Licence-aware — generates the attribution each provider requires, and reports Unsplash downloads as their API guidelines demand
- ⏱️ Search caching — a short TTL cache keeps repeat queries off your quota
- 🛡️ Honest errors — a failing provider is reported, not silently returned as "no results"
- 🎯 Filters — orientation, colour and sort, validated per provider

Beautiful stock photography at your fingertips Example image used for demonstration purposes
Stunning landscapes available through multiple providers
Photo by Simon Berger on Unsplash
🚀 Quick start
1. Get API keys
Both are free:
| Provider | Where | Notes |
|---|---|---|
| Pexels 📷 | pexels.com/api | 200 requests/hour by default |
| Unsplash 🌅 | unsplash.com/developers | 50/hour in demo mode, 1000/hour once your app is approved |
You only need one — Stocky runs with whichever providers are configured.
2. Add it to your MCP client
The recommended configuration needs no installation at all:
{
"mcpServers": {
"stocky": {
"command": "uvx",
"args": ["stocky-mcp"],
"env": {
"PEXELS_API_KEY": "your_pexels_key",
"UNSPLASH_ACCESS_KEY": "your_unsplash_key"
}
}
}
}
Other ways to run it
Installed with pip or uv:
uv tool install stocky-mcp # or: pipx install stocky-mcp
{
"mcpServers": {
"stocky": {
"command": "stocky-mcp",
"env": { "PEXELS_API_KEY": "your_pexels_key" }
}
}
}
From a source checkout — still supported so existing configurations keep working:
{
"mcpServers": {
"stocky": {
"command": "python",
"args": ["/path/to/stocky/stocky_mcp.py"],
"env": { "PEXELS_API_KEY": "your_pexels_key" }
}
}
}
Stocky reads its configuration from the environment its client starts it in.
It does not load a .env file of its own, so keys must go in the env block
above.
⚙️ Configuration
| Variable | Default | Purpose |
|---|---|---|
PEXELS_API_KEY | — | Enables the Pexels provider |
UNSPLASH_ACCESS_KEY | — | Enables the Unsplash provider |
ENABLE_ATTRIBUTION_LINKS | false | Include attribution details in every result |
STOCKY_CACHE_TTL | 300 | Search cache lifetime in seconds. 0 disables caching |
STOCKY_HTTP_TIMEOUT | 15 | Per-request timeout in seconds |
STOCKY_MAX_DOWNLOAD_BYTES | 26214400 | Refuse downloads larger than this (25 MiB) |
STOCKY_DOWNLOAD_ROOT | — | If set, confine all downloads to this directory |
STOCKY_LOG_LEVEL | INFO | DEBUG, INFO, WARNING, ERROR |
STOCKY_USER_AGENT | stocky-mcp | User-Agent sent to providers |
STOCKY_DOWNLOAD_ROOT is worth setting. Download paths come from
model-generated tool calls, and this confines writes to one directory. Stocky
always refuses a non-image file extension, and validates that image URLs from a
provider are public HTTP(S) addresses before fetching them, but a download root
is the strongest control available.
📖 Usage
Find the perfect image for your project
Stocky exposes three MCP tools. You don't call them directly — your client invokes them when you ask in natural language.
Search stock photos for a misty pine forest at dawn.
Find 30 landscape-orientation mountain photos from Pexels.
Download
pexels_123456at medium size to ~/Pictures/mountain.jpg
🛠️ Tools
search_stock_images
| Parameter | Type | Default | Notes |
|---|---|---|---|
query | str | required | Search terms |
providers | list | all configured | ["pexels", "unsplash"] |
per_page | int | 20 | Clamped per provider: Pexels 80, Unsplash 30 |
page | int | 1 | 1-based |
sort | str | relevant | relevant or latest. Unsplash only — Pexels has no sort option |
orientation | str | — | landscape, portrait, square |
color | str | — | A colour name; Pexels also accepts hex codes |
include_attribution | bool | — | Overrides ENABLE_ATTRIBUTION_LINKS |
Returns results grouped by provider, plus total_results and — if any
provider failed — an errors map explaining which and why.
An invalid orientation or color is dropped rather than forwarded: Pexels
silently ignores bad filters and still returns 200, which would otherwise hide
the mistake, while Unsplash rejects them outright with HTTP 400.
get_image_details
| Parameter | Type | Default | Notes |
|---|---|---|---|
image_id | str | required | Prefixed id, e.g. pexels_123456 |
include_attribution | bool | — | Overrides ENABLE_ATTRIBUTION_LINKS |
download_image
| Parameter | Type | Default | Notes |
|---|---|---|---|
image_id | str | required | Prefixed id |
size | str | original | thumbnail, small, medium, large, original |
output_path | str | — | Omit to receive base64 data instead |
If a provider doesn't offer the requested size, the closest available one is used rather than failing.
Resource
stock-images://help — a usage guide the assistant can read on demand.
⚖️ Licence and attribution
Images are free to use, but both providers require attribution as a condition of API access. This is not optional, and the previous version of this document was wrong to imply otherwise for Pexels.
Pexels requires a prominent link back to Pexels wherever API results are shown, and asks that you credit the photographer where possible.
Unsplash requires that you credit both the photographer and Unsplash, with UTM parameters on the links, and that images are hotlinked from the URLs the API returns rather than re-hosted.
Set ENABLE_ATTRIBUTION_LINKS=true and each result gains an attribution
block with ready-made text and html in the correct format for its provider.
Note on
download_image. Saving Unsplash bytes to disk or returning them base64-encoded is in tension with Unsplash's hotlinking requirement. Stocky fires the mandatory download-report endpoint whenever you download an Unsplash image, but if you are displaying images in an application, use the hotlinked URLs from the search results instead of downloading them.
Read the full terms: Pexels · Unsplash
⬆️ Upgrading from 1.x
Version 2.0 restructured the project. Existing MCP client configurations keep
working — the root stocky_mcp.py is deliberately retained as a launcher —
but installation changed, and a few behaviours are intentionally different.
What you need to do
If you run it via uvx or an installed console script, nothing. Upgrade
and carry on.
If you run it from a source checkout, reinstall. requirements.txt,
setup.py and setup.cfg were replaced by pyproject.toml:
git pull
uv sync # or: pip install -e .
pip install -r requirements.txt now fails — the file no longer exists.
Check your Python version. 2.0 requires Python 3.10+. The old
setup.py claimed 3.8 support, but the mcp SDK has always required 3.10, so
that claim was never actually satisfiable.
Consider switching to uvx. It needs nothing installed and avoids the
whole class of "which interpreter did my editor launch?" startup failures:
{
"mcpServers": {
"stocky": {
"command": "uvx",
"args": ["stocky-mcp"],
"env": { "PEXELS_API_KEY": "your_pexels_key" }
}
}
}
What changed underneath
| Change | Why it matters to you |
|---|---|
pycurl → httpx | No C extension to compile, so no more build failures on install. httpx was already required by the mcp SDK, so this removed a dependency. |
| Searches now run concurrently | The old code was async in name only — it made blocking calls inside async def. Searching both providers now costs roughly one provider's latency. |
| Failed providers report why | Previously an invalid API key returned an empty list, identical to a search that genuinely matched nothing. |
per_page clamped per provider | Unsplash silently falls back to 10 above its maximum of 30, so asking for 50 used to return fewer images than asking for 30. |
| Attribution generated for you | Both providers require it as a condition of API access. Set ENABLE_ATTRIBUTION_LINKS=true and every result carries ready-made text and HTML. |
| New configuration options | Caching, timeouts, download size caps and a download root — see Configuration. |
The one thing that might affect your code
Only if you parse Stocky's responses programmatically. A search that fails
now returns an errors map naming the provider and the reason, where it used
to return an empty result list:
{
"query": "mountains",
"results": { "pexels": [], "unsplash": [ /* ... */ ] },
"errors": { "pexels": "pexels rejected the API key (HTTP 401)..." }
}
If you treated "empty" as "no matches", check for errors too — otherwise a
broken key looks like a query with no results. This is the fix, not a
regression, but it is a visible change.
Nothing else in the tool surface changed: search_stock_images,
get_image_details and download_image take the same arguments they always
did, so existing prompts and workflows are unaffected.
🧑💻 Development
git clone https://github.com/joelio/stocky.git
cd stocky
uv sync --group dev
uv run pytest -m "not integration" # unit tests, no network
uv run pytest -m integration # needs real API keys
uv run ruff check . && uv run ruff format --check .
uv run mypy
See CONTRIBUTING.md for more.
🐛 Troubleshooting
Client reports a timeout on startup
Almost always a launch problem rather than a Stocky bug. GUI-launched clients
often have a minimal PATH, so uvx or a virtualenv python may not be
found — use an absolute path, or uvx with uv installed system-wide. You can
reproduce the handshake yourself:
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}' \
| stocky-mcp
A JSON response means the server is fine. Note that stdout carries the protocol, so Stocky sends all logging to stderr — anything else printed there would corrupt the stream.
"No image providers are configured"
No keys reached the server. They must be in the env block of your client
config; names are case-sensitive.
A provider returns an error
Check errors in the response. Auth failures, rate limits and timeouts are
now reported explicitly rather than looking like an empty result set.
Pexels seems to accept an invalid key It does. Pexels returns 200 for a malformed key, so a typo can look like it works. If results seem wrong, verify the key directly.
Rate limits
| Provider | Limit | On exhaustion |
|---|---|---|
| Pexels | 200/hour (default, per key) | HTTP 429 |
| Unsplash | 50/hour demo, 1000/hour production | HTTP 403 with X-Ratelimit-Remaining: 0 |
🤝 Contributing
Contributions are welcome — see CONTRIBUTING.md. For major changes, please open an issue first to discuss the approach.
🙏 Acknowledgments
- Thanks to Pexels and Unsplash for their free APIs
- Built with the Model Context Protocol
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Stocky MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/stocky)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
下载与拉取统计
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.
