tteg
Free CLI that gives AI agents real stock photos from Unsplash. No API key needed. MCP server + HTTP API included.
Documentation
tteg
Unsplash stock photos without registration or API keys.
uv tool install tteg
tteg save "startup office" ./public/hero --orientation landscape
# → saves a real photo to ./public/hero.jpgNo Unsplash app. No API key. No `.env` files. Just photos.
Why this exists
Unsplash has 4M+ free photos. To use them programmatically you need to register a developer account, create an application, and manage API keys. Their official JavaScript library was archived in 2024.
Meanwhile `source.unsplash.com/random` — the zero-setup alternative everyone used — was deprecated in mid-2024 and now 503s. An authenticated GitHub code-search returns ~16,500 live file hits across ~885 unique repositories still referencing it; see RESEARCH.md for the full list, including several 1k+ star projects currently shipping broken `` tags.
tteg handles all of that server-side. You get a CLI, an HTTP API, an MCP server, and an embeddable widget — all with zero setup.
Install
uv tool install tteg
# or: pip install ttegUse
Search — get image URLs:
tteg "coffee shop" -n 3 --orientation landscapeSave — download one photo into your project:
tteg save "modern office" ./public/hero --orientation landscapeBatch — fill an entire landing page from a JSON manifest:
tteg batch landing-page-images.json[
{"query": "startup office", "output": "./public/hero", "orientation": "landscape"},
{"query": "developer portrait", "output": "./public/founder"},
{"query": "team meeting", "output": "./public/team", "orientation": "landscape"}
]HTTP API (no install needed)
curl "https://tteg-api-53227342417.asia-south1.run.app/search?q=coffee+shop&n=3"No headers. No auth. CORS enabled. Try it live →
Parameters: `q` (query), `n` (count, 1-10), `orientation` (landscape/portrait/square/any), `width`, `height`
MCP server
For Claude Code, Cursor, or any MCP host:
{
"mcpServers": {
"tteg": {
"command": "uvx",
"args": ["tteg-mcp"]
}
}
}Tools: `search_images`, `save_image`, `search_and_save_image`, `batch_save_images`
Embed widget
Drop into any HTML page:
// Code blockOptions
| Flag | Default | Description |
|---|---|---|
| `-n`, `--count` | 5 | Number of results (1–10) |
| `--orientation` | any | `landscape`, `portrait`, `square`, or `any` |
| `--width` | — | Max width in pixels |
| `--height` | — | Max height in pixels |
Starter kit
Copy-paste blocks for CLAUDE.md and AGENTS.md: STARTER_KIT.md
Links
- tteg.kushalsm.com — landing page
- Try it live — search from your browser
- PyPI — `pip install tteg`
- Free tier: 50 queries/day per IP
Frequently asked questions
What is tteg?
tteg is Free CLI that gives AI agents real stock photos from Unsplash. No API key needed. MCP server + HTTP API included.
How do I install tteg?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is tteg open source?
Yes — it is hosted on GitHub at https://github.com/kiluazen/tteg and has 3 stars.
Related MCP tools
Open-source coding agent memory. Records issues, attempts, fixes and decisions, then warns your agent before it repeats an approach that already failed. Native MCP server for Claude Code, Cursor, Antigravity and Codex. 100% local, no cloud, no telemetry. MIT.
Cut AI token costs 95%+ on code exploration. The leading MCP server for precise, symbol-level GitHub code retrieval via tree-sitter AST. Works with Claude Code, Cursor & any MCP client. 313B+ tokens saved.
AI-powered OSINT agent with interactive REPL, MCP server, and CLI. 19 tools. Works with Claude, GPT-4, or local models. For authorized security research only.
Pre-build reality check for AI coding agents. Scans GitHub, HN, npm, PyPI, Product Hunt. MCP server. 290+ stars.
AI Skills, MCP Tools, and CLI for Unity Engine. Full AI develop and test loop. Use cli for quick setup. Efficient token usage, advanced tools. Any C# method may be turned into a tool by a single line. Works with Claude Code, Gemini, Copilot, Cursor and any other absolutely for free.
Official remote MCP server for Atlassian. Securely connect Jira, Confluence, Jira Service Management, Bitbucket, and Compass to Claude, ChatGPT, Cursor, VS Code, and other AI tools using OAuth 2.1 or API tokens.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP