cc0-library-mcp 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,14 +1,15 @@
1
1
  # cc0-library
2
2
 
3
3
  **CC0 assets only. With receipts.**
4
- One search across 8 sources for images, audio, video, HDRIs, textures, 3D models, and museum artworks. Every result shows *how* its CC0 status was verified and *who* declared it.
4
+ One search across 9 sources for images, audio, video, HDRIs, textures, 3D models, and museum artworks. Every result shows *how* its CC0 status was verified and *who* declared it.
5
5
 
6
6
  [![ci](https://github.com/sanghyoLe/cc0-library/actions/workflows/ci.yml/badge.svg)](https://github.com/sanghyoLe/cc0-library/actions/workflows/ci.yml)
7
7
  ![license: MIT](https://img.shields.io/badge/code-MIT-blue)
8
8
  ![catalog: CC0](https://img.shields.io/badge/catalog-CC0-green)
9
+ [![npm](https://img.shields.io/npm/v/cc0-library-mcp)](https://www.npmjs.com/package/cc0-library-mcp)
9
10
 
10
11
  - **Try it in the browser:** https://sanghyole.github.io/cc0-library/
11
- - **Use it from Claude, Cursor, or any MCP client:** `claude mcp add cc0-library -- npx -y github:sanghyoLe/cc0-library`
12
+ - **Use it from Claude, Cursor, or any MCP client:** `claude mcp add cc0-library -- npx -y cc0-library-mcp`
12
13
 
13
14
  [![cc0-library web gallery: CC0 search results for "cat" from Poly Haven, Cleveland Museum of Art and The Met](docs/screenshot.jpg)](https://sanghyole.github.io/cc0-library/?q=cat&strict=1)
14
15
 
@@ -20,11 +21,11 @@ One search across 8 sources for images, audio, video, HDRIs, textures, 3D models
20
21
 
21
22
  | | Openverse search alone | cc0-library |
22
23
  |---|---|---|
23
- | Sources | Openverse index (Flickr, Freesound, Commons, museums…) | Openverse **plus** Commons, Internet Archive, Poly Haven, ambientCG, Sketchfab, Cleveland, The Met |
24
+ | Sources | Openverse index (Flickr, Freesound, Commons, museums…) | Openverse **plus** Commons, Internet Archive, WordPress Photo Directory, Poly Haven, ambientCG, Sketchfab, Cleveland, The Met |
24
25
  | CC0 filter | `license=cc0` query parameter | Query filter **and** a check of each item's own license field |
25
26
  | Who declared CC0 | Not shown | `declaredBy`: studio, museum, or uploader |
26
27
  | Re-check before download | — | `get_asset` re-checks CC0 at the source |
27
- | "Looks free but isn't" list | — | Unsplash, Pixabay, Pexels, SMK (Public Domain Mark) |
28
+ | "Looks free but isn't" list | — | Unsplash, Pixabay, Pexels, SMK (Public Domain Mark), NASA |
28
29
  | Asset types | Images, audio | Images, audio, video, HDRIs, textures, 3D models, artworks |
29
30
  | AI assistant access | REST API | MCP server (`search_assets`, `get_asset`, `list_sources`) |
30
31
 
@@ -36,7 +37,7 @@ Every result has `licenseEvidence.declaredBy`:
36
37
  |---|---|---|
37
38
  | `library` | The studio that made the asset publishes everything as CC0. | Poly Haven, ambientCG |
38
39
  | `institution` | A museum marks a work in its own collection as CC0. | Cleveland Museum of Art, The Met |
39
- | `uploader` | A site user set the CC0 label. Nobody reviewed it, and it can be wrong (for example, someone else's work uploaded as CC0). | Openverse, Wikimedia Commons, Internet Archive, Sketchfab |
40
+ | `uploader` | A site user set the CC0 label. Nobody reviewed it, and it can be wrong (for example, someone else's work uploaded as CC0). | Openverse, Wikimedia Commons, Internet Archive, Sketchfab, WordPress Photo Directory |
40
41
 
41
42
  The web gallery has a "rights holder only" switch that drops `uploader` results. MCP clients can filter on the field.
42
43
 
@@ -48,6 +49,7 @@ The web gallery has a "rights holder only" switch that drops `uploader` results.
48
49
  | [Poly Haven](https://polyhaven.com) | hdri, texture, model | Every asset in the library is CC0 ([license](https://polyhaven.com/license)). |
49
50
  | [Wikimedia Commons](https://commons.wikimedia.org/wiki/Category:CC-Zero) | image, audio, video | Search is limited to Category:CC-Zero. Each file must also have `extmetadata.License === "cc0"`. |
50
51
  | [Internet Archive](https://archive.org) | video, audio, image | The query requires a CC0 `licenseurl`. Each item's own `licenseurl` must be the CC0 1.0 deed. User text is stripped of query operators so it cannot bypass this clause. |
52
+ | [WordPress Photo Directory](https://wordpress.org/photos/) | image | Every photo in the directory is CC0 ("All photos are CC0 licensed"). |
51
53
  | [Sketchfab](https://sketchfab.com) | model | The query uses `license=cc0`. Each model's own license must be "CC0 Public Domain". Age-restricted models are dropped. |
52
54
  | [ambientCG](https://ambientcg.com) | hdri, texture, model | Every asset in the library is CC0 ([license](https://docs.ambientcg.com/license/)). |
53
55
  | [Cleveland Museum of Art](https://www.clevelandart.org/open-access) | artwork | The query uses `cc0=1`. Each item must also have `share_license_status === "CC0"`. |
@@ -64,7 +66,7 @@ Requires Node.js 20 or later.
64
66
  ### Claude Code
65
67
 
66
68
  ```sh
67
- claude mcp add cc0-library -- npx -y github:sanghyoLe/cc0-library
69
+ claude mcp add cc0-library -- npx -y cc0-library-mcp
68
70
  ```
69
71
 
70
72
  ### Claude Desktop / other clients (`mcpServers` JSON)
@@ -74,7 +76,7 @@ claude mcp add cc0-library -- npx -y github:sanghyoLe/cc0-library
74
76
  "mcpServers": {
75
77
  "cc0-library": {
76
78
  "command": "npx",
77
- "args": ["-y", "github:sanghyoLe/cc0-library"]
79
+ "args": ["-y", "cc0-library-mcp"]
78
80
  }
79
81
  }
80
82
  }
@@ -94,7 +96,7 @@ claude mcp add cc0-library -- node "$PWD/dist/index.js"
94
96
  | Tool | Input | Returns |
95
97
  |---|---|---|
96
98
  | `search_assets` | `query`, `kind` (`image`·`audio`·`video`·`hdri`·`texture`·`model`·`artwork`·`any`, default `any`), `limit` 1–20, `page` 1–12 | CC0 assets, per-provider totals, per-provider errors |
97
- | `get_asset` | `id` from `search_assets` (`openverse:image:<uuid>`, `openverse:audio:<uuid>`, `polyhaven:<slug>`, `ambientcg:<assetId>`, `cleveland:<number>`, `met:<number>`, `commons:<pageid>`, `archive:<identifier>`, `sketchfab:<uid>`) | Details plus download URLs (Poly Haven: up to 60 map/resolution/format files; Sketchfab: model page only, because downloads need the user's own login) |
99
+ | `get_asset` | `id` from `search_assets` (`openverse:image:<uuid>`, `openverse:audio:<uuid>`, `polyhaven:<slug>`, `ambientcg:<assetId>`, `cleveland:<number>`, `met:<number>`, `commons:<pageid>`, `archive:<identifier>`, `sketchfab:<uid>`, `wpphotos:<number>`) | Details plus download URLs (Poly Haven: up to 60 map/resolution/format files; Sketchfab: model page only, because downloads need the user's own login) |
98
100
  | `list_sources` | `kind` (optional) | Curated catalog, the non-CC0 list, and the pending-verification list |
99
101
 
100
102
  If one provider fails, `search_assets` still returns results from the other providers and lists the failure in `errors`. Gateway errors (HTTP 502/503/504) are retried once.
@@ -154,22 +156,22 @@ src/
154
156
  providers/commons.ts
155
157
  providers/archive.ts
156
158
  providers/sketchfab.ts
159
+ providers/wpphotos.ts
157
160
  web/ browser gallery (GitHub Pages); scripts/build-site.mjs assembles it into _site/
158
161
  catalog/sources.json curated CC0 source list (CC0 data)
159
162
  test/ node:test unit tests
160
163
  scripts/smoke.mjs live end-to-end check
164
+ scripts/discover.mjs weekly catalog re-check and Openverse candidate discovery
161
165
  ```
162
166
 
163
- ## Contributing a source
167
+ ## Contributing
164
168
 
165
- 1. Confirm on the source's **own** license page that its assets (or a filterable subset) are CC0 1.0.
166
- 2. Add an entry to `catalog/sources.json`. Fill in `licensePage`, `scope` (`whole-library` or `filter-only`), and `verified.date` / `verified.evidence` (quote the text you checked).
167
- 3. Run `npm test`. The catalog test checks required fields.
168
- 4. Open a pull request.
169
+ See [CONTRIBUTING.md](CONTRIBUTING.md). In short:
169
170
 
170
- If a source is free but not CC0, add it to `excluded` with the reason. If you could not verify a source, add it to `pending` with the reason.
171
-
172
- To add a searchable provider, add a module under `src/providers/` that returns `Asset` objects (`src/types.ts`) only after a per-item or whole-library CC0 check. Set `licenseEvidence.declaredBy` honestly. Then wire it into `search()` and `getAsset()` in `src/search.ts`, and add unit tests.
171
+ - **Suggest a source:** open a [New CC0 source](https://github.com/sanghyoLe/cc0-library/issues/new?template=new-source.yml) issue with a quote from the source's own license page.
172
+ - **Report a wrong license:** open a [Wrong license](https://github.com/sanghyoLe/cc0-library/issues/new?template=wrong-license.yml) issue.
173
+ - **Automatic discovery:** a weekly workflow re-checks every catalog license page and lists new CC0 candidates from Openverse in the [`source-check`](https://github.com/sanghyoLe/cc0-library/issues?q=label%3Asource-check) issue. A person verifies each candidate before it enters the catalog.
174
+ - **Pull requests:** `main` is protected. Changes need a pull request, passing tests, and maintainer approval.
173
175
 
174
176
  ## License
175
177
 
@@ -183,16 +185,16 @@ To add a searchable provider, add a module under `src/providers/` that returns `
183
185
 
184
186
  **cc0-library**는 CC0 1.0 자료만 찾아 주는 오픈소스 MCP 서버이자 CC0 자료원 목록입니다.
185
187
 
186
- - `search_assets`는 이미지, 오디오, 영상을 Openverse, 위키미디어 공용, 인터넷 아카이브에서 찾습니다. HDRI, 텍스처, 3D 모델은 Poly Haven, ambientCG, Sketchfab에서 찾습니다. 미술품(`artwork`)은 Cleveland Museum of Art와 The Met에서 찾습니다.
188
+ - `search_assets`는 이미지, 오디오, 영상을 Openverse, 위키미디어 공용, 인터넷 아카이브, WordPress 사진 디렉터리에서 찾습니다. HDRI, 텍스처, 3D 모델은 Poly Haven, ambientCG, Sketchfab에서 찾습니다. 미술품(`artwork`)은 Cleveland Museum of Art와 The Met에서 찾습니다.
187
189
  - 모든 결과에는 CC0 확인 근거(`licenseEvidence`)가 붙습니다. 근거에는 CC0를 누가 선언했는지(`declaredBy`)도 들어 있습니다. 제작사(`library`), 미술관(`institution`), 업로더(`uploader`) 중 하나입니다. 업로더가 선언한 CC0는 아무도 검토하지 않았으므로 직접 확인해야 합니다.
188
190
  - 웹에서 바로 검색할 수 있습니다: https://sanghyole.github.io/cc0-library/
189
191
  - `get_asset`은 다운로드 URL을 주기 전에 원본에서 CC0 여부를 다시 확인합니다.
190
- - `list_sources`는 검증한 CC0 자료원 24곳의 목록을 줍니다. CC0가 아닌 무료 사이트(Unsplash, Pixabay, Pexels, SMK)와 그 이유도 줍니다. 아직 검증하지 못한 후보도 따로 줍니다.
192
+ - `list_sources`는 검증한 CC0 자료원 89곳의 목록을 줍니다. CC0가 아닌 무료 사이트(Unsplash, Pixabay, Pexels, Pixnio, SMK, NASA)와 그 이유도 줍니다. 아직 검증하지 못한 후보도 따로 줍니다.
191
193
 
192
194
  설치 (Claude Code):
193
195
 
194
196
  ```sh
195
- claude mcp add cc0-library -- npx -y github:sanghyoLe/cc0-library
197
+ claude mcp add cc0-library -- npx -y cc0-library-mcp
196
198
  ```
197
199
 
198
- 코드는 MIT, 카탈로그 데이터는 CC0입니다. 자료원 추가는 위 "Contributing a source" 절차를 따릅니다.
200
+ 코드는 MIT, 카탈로그 데이터는 CC0입니다. 자료원 제안과 기여 방법은 [CONTRIBUTING.md](CONTRIBUTING.md)에 있습니다. 매주 자동 점검이 새 CC0 후보를 찾아 `source-check` 이슈에 올립니다. 후보는 사람이 원본 라이선스 페이지를 확인한 뒤에 목록에 들어갑니다.