free-image-library
# Free Image Library ā Free CC Images & Audio MCP š¼ļø
[](https://github.com/surendranb/free-image-library/actions)
[](LICENSE)
[](https://pypi.org/project/free-image-library/)
> **Free images for any project: millions of openly-licensed, royalty-free Creative Commons images and audio (Flickr, Wikimedia, museums) ā every result with ready-to-paste attribution. Zero API keys, zero configuration.**
The visual sibling of the [Free Music Library](https://github.com/surendranb/music-mcp)
for the same content-creator audience: the agent finds the image AND the credit
line in one call, so the attribution never gets lost between copy and paste.
## Why this exists
- Models suggest random stock images (license unknown, credit never written).
This returns license-safe images with the credit the user MUST paste ā built
into the same result.
- **License intelligence, not just labels**: every row carries a `credit_note`
stating the actual obligation ā CC BY-NC rows are loudly flagged
non-commercial-only before your client ships them into a paid campaign.
- **Serendipity**: `image_roulette` picks from deep in the result set, not the
first hit everyone has seen.
- Built on [Openverse](https://api.openverse.org) ā keyless (anonymous limits:
20 requests/min, 200/day, verified; a free registered key raises them via
`OPENVERSE_API_KEY`). A 5-minute TTL cache makes repeat searches free.
## Tools
| Tool | What it does |
|---|---|
| `find_images` | Free CC image search with filters (license, aspect_ratio, size, extension) + attribution on every row |
| `image_roulette` | One random license-safe pick, honest about how it was chosen |
| `find_audio` | Free CC music / sound effects / field recordings from Openverse's audio index |
| `skills_list` / `skill_read` | Updatable playbooks: CC license briefs in plain language, error recovery |
Plus prompts: `hero-image`, `license-safe-images`.
## Quickstart
```bash
# 1-Line Universal Installer (auto-configures Claude Desktop, Cursor, Claude Code, VS Code, ...)
curl -fsSL "https://free-image-library.builditwithai.xyz/install" | bash
# Or run directly via your preferred runtime:
uvx free-image-library
npx -y free-image-library
```
## Example
```
User: I need a hero image for my climate blog post
find_images(query="melting glacier", aspect_ratio="wide", count=3,
intent="hero image for a climate blog post")
ā images: [{
title: "Glacier calving", creator: "ā¦", license: "CC BY 2.0",
image_url: "https://ā¦", width: 2048, height: 1152,
attribution: "\"Glacier calving\" image by ⦠(flickr), licensed CC BY 2.0 (ā¦)",
credit_note: "Credit REQUIRED ā paste the attribution verbatim." }]
```
## Telemetry & privacy
Anonymous usage telemetry (no PII, no queries, no paths) via the fleet
standard (schema v2, dual-endpoint fallback). Opt out any time:
`FREE_IMAGE_LIBRARY_TELEMETRY=false` or `DO_NOT_TRACK=1`.
## Development
```bash
uv venv && uv pip install -e ".[dev]"
DO_NOT_TRACK=1 .venv/bin/python -m pytest tests/ -q # unit + live + e2e
```
Live tests hit the real Openverse API; they skip themselves when offline or
rate-limited.
## License
MIT
TDQS
Scored across 6 tools
Each tool targets a recognizable action: skill discovery (skills_list/skill_read), version check, image search, audio search, and random image. The only real overlap is find_images vs image_roulette, but the descriptions clearly separate deterministic search from a single serendipity pick. The skill_list/skill_read pair is complementary rather than ambiguous.
Mostly readable but the convention shifts: verb_noun (find_images, find_audio, check_for_updates), noun_verb (skill_read), noun_plural_verb (skills_list), and a bare noun (image_roulette). The find_* pair is consistent, but skill_read vs skills_list differ in both word order and plurality.
Six tools is a comfortable scope for a search-focused library. Half the surface is meta (skills_list, skill_read, check_for_updates), which is slightly heavy relative to the two core search tools, but nothing feels redundant.
Search across both images and audio plus attribution and a serendipity mode covers the core retrieval workflow for a CC content library. Gaps remain: no fetch-by-ID/URL to re-retrieve a specific asset, no license/source filtering, and audio lacks any equivalent of the roulette/detail affordances.