Skip to main content
Glama
free-image-library

free-image-library

by surendranb
README.md
# Free Image Library — Free CC Images & Audio MCP šŸ–¼ļø

[![CI](https://github.com/surendranb/free-image-library/actions/workflows/package-checks.yml/badge.svg)](https://github.com/surendranb/free-image-library/actions)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square)](LICENSE)
[![PyPI](https://img.shields.io/pypi/v/free-image-library.svg)](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

A3.7/5.0

Scored across 6 tools

Disambiguation4/5

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.

Naming Consistency3/5

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.

Tool Count4/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessOutdated data