@iconpik/mcp-server 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/LICENSING.md +184 -0
- package/NOTICE.md +7 -0
- package/README.md +268 -3
- package/THIRD_PARTY_NOTICES.md +81 -0
- package/dist/flag-hint.d.ts +4 -0
- package/dist/flag-hint.d.ts.map +1 -0
- package/dist/flag-hint.js +22 -0
- package/dist/flag-hint.js.map +1 -0
- package/dist/icons.json +161034 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +391 -0
- package/dist/index.js.map +1 -0
- package/dist/ui-tools.d.ts +14 -0
- package/dist/ui-tools.d.ts.map +1 -0
- package/dist/ui-tools.js +108 -0
- package/dist/ui-tools.js.map +1 -0
- package/dist/ui.d.ts +36 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +104 -0
- package/dist/ui.js.map +1 -0
- package/package.json +63 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 thesvg.org
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/LICENSING.md
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
# Icon Licensing Guide
|
|
2
|
+
|
|
3
|
+
How licensing works on **thesvg.org**, what you promise when you submit, and what we promise when we publish. Plain language, with sources you can verify.
|
|
4
|
+
|
|
5
|
+
> **Not legal advice.** This document explains how we operate. If the brand you're submitting belongs to someone else and you're unsure about your rights, talk to a lawyer or the brand owner before submitting. See [DISCLAIMER.md](./DISCLAIMER.md) for the full project disclaimer.
|
|
6
|
+
|
|
7
|
+
## Table of contents
|
|
8
|
+
|
|
9
|
+
1. [License vs. trademark — read this first](#1-license-vs-trademark--read-this-first)
|
|
10
|
+
2. [What you promise when you submit](#2-what-you-promise-when-you-submit)
|
|
11
|
+
3. [What we promise when we publish](#3-what-we-promise-when-we-publish)
|
|
12
|
+
4. [Pick a license by question](#4-pick-a-license-by-question)
|
|
13
|
+
5. [The licenses we accept](#5-the-licenses-we-accept)
|
|
14
|
+
6. [The "Other / custom" path](#6-the-other--custom-path)
|
|
15
|
+
7. [What we never accept](#7-what-we-never-accept)
|
|
16
|
+
8. [If you find a wrong license — takedown procedure](#8-if-you-find-a-wrong-license--takedown-procedure)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 1. License vs. trademark — read this first
|
|
21
|
+
|
|
22
|
+
These are two different things, and **both** can apply to a brand icon. Confusing them is the single most common mistake on the submission form.
|
|
23
|
+
|
|
24
|
+
| | License | Trademark |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| **Controls** | Who can copy / modify / redistribute the **SVG file** | Who can use the **brand mark** to identify goods or services |
|
|
27
|
+
| **Set by** | The author or publisher of the file | The brand owner, often via national / EU registration |
|
|
28
|
+
| **Source of truth** | The `LICENSE` file shipped with the asset | The brand's "Brand Guidelines" or "Trademark Usage Policy" page |
|
|
29
|
+
| **Authoritative reference** | [SPDX License List](https://spdx.org/licenses/) | [USPTO Trademark Basics](https://www.uspto.gov/trademarks/basics), [EUIPO Trademark Basics](https://euipo.europa.eu/ohimportal/en/trade-marks-in-the-european-union) |
|
|
30
|
+
|
|
31
|
+
A logo can have a **permissive license** (the SVG is free to copy) **and** still be a **registered trademark** (you can't use it to imply endorsement, sell merchandise, or pass off your product as the brand). All brand marks on thesvg.org are subject to the original owner's trademark rights — see [TRADEMARK.md](./TRADEMARK.md) for our full policy.
|
|
32
|
+
|
|
33
|
+
**The submission form is only asking about the *license* of the SVG file itself, not whether you have permission to use the brand commercially.**
|
|
34
|
+
|
|
35
|
+
> **UI icons are different.** The interface icons at thesvg.org/ui are original drawings made for theSVG, not brand marks, so there is no trademark to consider. They are released under the [MIT license](./LICENSE) like the rest of the repository. Only contribute a UI icon you drew yourself, and never trace, convert or adapt an icon from another set. See [CONTRIBUTING.md](./CONTRIBUTING.md#ui-icons).
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## 2. What you promise when you submit
|
|
40
|
+
|
|
41
|
+
By picking a license on the form, you're asserting:
|
|
42
|
+
|
|
43
|
+
1. **You have the right to license this asset.** Either you created it, it's already published under that license by the brand owner, or it's in the public domain.
|
|
44
|
+
2. **The license is accurate.** If you pick `MIT`, you're saying the upstream source actually publishes the brand mark under MIT (not just the project's code — many OSS projects have permissive code but restricted brand assets).
|
|
45
|
+
3. **You'll respond if we ask follow-up questions.** Especially for the "Other / custom" path, where a maintainer will reach out on the GitHub issue.
|
|
46
|
+
|
|
47
|
+
If you're unsure about any of these, pick **"Other / custom — needs maintainer review"** and we'll figure it out together before merging. **Picking incorrectly creates legal exposure for both you and us** — that's why the form blocks submission until a license is chosen.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. What we promise when we publish
|
|
52
|
+
|
|
53
|
+
When your icon lands in the registry, we:
|
|
54
|
+
|
|
55
|
+
1. **Record your declared license verbatim** in the `icons.json` entry. Downstream consumers (apps, packages, jsDelivr, the npm package `@thesvg/icons`) inherit that field as-is. The license is part of the public API.
|
|
56
|
+
2. **Surface the license on the icon's detail page** at `thesvg.org/icon/<slug>` so anyone using the icon can see what they're agreeing to.
|
|
57
|
+
3. **Promptly remove or relicense an icon** if we discover the declared license is wrong — see [section 8](#8-if-you-find-a-wrong-license--takedown-procedure).
|
|
58
|
+
4. **Never relicense your asset more permissively than you declared.** If you submit a CC BY-ND icon, we'll never quietly re-publish it as MIT.
|
|
59
|
+
|
|
60
|
+
What we **don't** do: We don't audit every submission against the brand owner's trademark policy at intake. We rely on submitters to be honest, on community reports for corrections, and on the [takedown procedure](./LEGAL.md) for disputes. Submitters and downstream users are responsible for trademark compliance — see [TRADEMARK.md](./TRADEMARK.md).
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## 4. Pick a license by question
|
|
65
|
+
|
|
66
|
+
### Q1. Did you draw this icon yourself, from scratch, with no copying?
|
|
67
|
+
|
|
68
|
+
**Pick:** [`CC0 1.0`](https://creativecommons.org/publicdomain/zero/1.0/) (public domain dedication)
|
|
69
|
+
|
|
70
|
+
You're waiving all rights and letting anyone use it for any purpose. Best for personal projects, generic icons, and brand kits you've designed and want to gift to the community. CC0 is the closest thing to true public domain that's legally enforceable in jurisdictions where you can't "release to public domain" by simple declaration.
|
|
71
|
+
|
|
72
|
+
### Q2. Is this the official logo of an open-source project?
|
|
73
|
+
|
|
74
|
+
Look in the project's repository for a `LICENSE` file inside the brand-assets folder — commonly `assets/`, `branding/`, `logo/`, or `media/`. **The project's source code license is not automatically the same as the brand asset license.** Many projects deliberately restrict their brand mark even when the code is permissive.
|
|
75
|
+
|
|
76
|
+
| What the project says | Pick |
|
|
77
|
+
|---|---|
|
|
78
|
+
| Brand assets explicitly CC0 / public domain | [`CC0 1.0`](https://creativecommons.org/publicdomain/zero/1.0/) |
|
|
79
|
+
| Apache-licensed project, no separate brand policy | [`Apache 2.0`](https://spdx.org/licenses/Apache-2.0.html) |
|
|
80
|
+
| MIT-licensed project, no separate brand policy | [`MIT`](https://spdx.org/licenses/MIT.html) |
|
|
81
|
+
| BSD-licensed project, no separate brand policy | [`BSD-3-Clause`](https://spdx.org/licenses/BSD-3-Clause.html) |
|
|
82
|
+
| ISC-licensed project, no separate brand policy | [`ISC`](https://spdx.org/licenses/ISC.html) |
|
|
83
|
+
| MPL 2.0 project (Firefox / Mozilla) | [`MPL-2.0`](https://spdx.org/licenses/MPL-2.0.html) |
|
|
84
|
+
| CC BY 4.0 (Creative Commons attribution) | [`CC BY 4.0`](https://creativecommons.org/licenses/by/4.0/) |
|
|
85
|
+
| CC BY-SA 4.0 (share-alike, e.g. Wikipedia assets) | [`CC BY-SA 4.0`](https://creativecommons.org/licenses/by-sa/4.0/) |
|
|
86
|
+
| CC BY-ND 4.0 (no derivatives — common for corporate kits) | [`CC BY-ND 4.0`](https://creativecommons.org/licenses/by-nd/4.0/) |
|
|
87
|
+
| Brand guidelines doc with usage restrictions, no SPDX license | [Other / custom](#6-the-other--custom-path) |
|
|
88
|
+
|
|
89
|
+
### Q3. Is this a corporate / company brand mark?
|
|
90
|
+
|
|
91
|
+
**Pick:** [Other / custom](#6-the-other--custom-path)
|
|
92
|
+
|
|
93
|
+
Most companies don't license their logos under a public open-source license. They publish brand guidelines instead — see for example [Google's Brand Resource Center](https://about.google/brand-resource-center/), [Microsoft's Trademark Usage Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks), or [Apple's Guidelines for Using Apple Trademarks](https://www.apple.com/legal/intellectualproperty/guidelinesfor3rdparties.html). Picking "Other / custom" lets us:
|
|
94
|
+
|
|
95
|
+
1. Read the linked brand guidelines and verify the usage you're proposing is permitted.
|
|
96
|
+
2. Label the issue `license-unsure` so it routes to a maintainer for confirmation.
|
|
97
|
+
3. Document the actual policy in the `icons.json` entry instead of pretending it's MIT.
|
|
98
|
+
|
|
99
|
+
### Q4. Is this a fork / modification of an existing icon?
|
|
100
|
+
|
|
101
|
+
Same license as the original — most permissive licenses require this (Apache, MPL, all CC licenses). If you can't find the original's license, pick [Other / custom](#6-the-other--custom-path).
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## 5. The licenses we accept
|
|
106
|
+
|
|
107
|
+
All ten licenses below are listed in the [SPDX License List](https://spdx.org/licenses/) and most are approved by the [Open Source Initiative](https://opensource.org/licenses/). Links go to the canonical text — read it before picking.
|
|
108
|
+
|
|
109
|
+
### Public-domain dedications
|
|
110
|
+
|
|
111
|
+
- **[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)** — "No Rights Reserved." Best legally-enforceable public-domain dedication. ([SPDX](https://spdx.org/licenses/CC0-1.0.html))
|
|
112
|
+
- **[The Unlicense](https://unlicense.org/)** — public-domain dedication common in small OSS projects. ([SPDX](https://spdx.org/licenses/Unlicense.html), [OSI-approved](https://opensource.org/license/unlicense))
|
|
113
|
+
|
|
114
|
+
### Permissive
|
|
115
|
+
|
|
116
|
+
- **[MIT](https://opensource.org/license/mit)** — short and permissive, attribution only. The most common OSS license. ([SPDX](https://spdx.org/licenses/MIT.html))
|
|
117
|
+
- **[Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0)** — permissive with an explicit patent grant. Common for cloud / infra brands. ([SPDX](https://spdx.org/licenses/Apache-2.0.html), [OSI-approved](https://opensource.org/license/apache-2-0))
|
|
118
|
+
- **[BSD 3-Clause](https://opensource.org/license/bsd-3-clause)** — permissive with attribution + no-endorsement clause. ([SPDX](https://spdx.org/licenses/BSD-3-Clause.html))
|
|
119
|
+
- **[ISC](https://opensource.org/license/isc-license-txt)** — functionally equivalent to MIT, shorter text. ([SPDX](https://spdx.org/licenses/ISC.html))
|
|
120
|
+
|
|
121
|
+
### Creative Commons attribution family
|
|
122
|
+
|
|
123
|
+
The CC family is published by the [Creative Commons](https://creativecommons.org/) non-profit. Each license has a [machine-readable summary](https://creativecommons.org/share-your-work/cclicenses/) and full legal code.
|
|
124
|
+
|
|
125
|
+
- **[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)** — attribution required, otherwise unrestricted. ([SPDX](https://spdx.org/licenses/CC-BY-4.0.html))
|
|
126
|
+
- **[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)** — attribution + share-alike. Wikipedia uses this for most of its assets. ([SPDX](https://spdx.org/licenses/CC-BY-SA-4.0.html))
|
|
127
|
+
- **[CC BY-ND 4.0](https://creativecommons.org/licenses/by-nd/4.0/)** — attribution, **no derivatives**. Picking this means the logo cannot be modified, only used as-is. Common for corporate brand kits. ([SPDX](https://spdx.org/licenses/CC-BY-ND-4.0.html))
|
|
128
|
+
|
|
129
|
+
### Weak copyleft
|
|
130
|
+
|
|
131
|
+
- **[Mozilla Public License 2.0](https://www.mozilla.org/en-US/MPL/2.0/)** — file-level copyleft. Used by Firefox, Thunderbird, and Mozilla-adjacent projects. ([SPDX](https://spdx.org/licenses/MPL-2.0.html), [OSI-approved](https://opensource.org/license/mpl-2-0))
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 6. The "Other / custom" path
|
|
136
|
+
|
|
137
|
+
Pick **"Other / custom — needs maintainer review"** when any of these apply:
|
|
138
|
+
|
|
139
|
+
- The asset has a real license, but it's not in the list above (e.g. a custom company brand-usage policy, EPL, AGPL, a CC license we don't pre-stock).
|
|
140
|
+
- The brand has published guidelines but no formal SPDX license at all.
|
|
141
|
+
- You're not sure and want a maintainer to confirm before merging.
|
|
142
|
+
|
|
143
|
+
When you pick Other:
|
|
144
|
+
|
|
145
|
+
1. You'll be prompted for a short description (≤120 chars). Examples:
|
|
146
|
+
- `"Acme Brand Guidelines v2 — non-commercial only"`
|
|
147
|
+
- `"Custom — written permission from owner, see issue thread"`
|
|
148
|
+
- `"EPL-2.0"`
|
|
149
|
+
2. The auto-generated GitHub issue is labeled [`license-unsure`](https://github.com/GLINCKER/thesvg/issues?q=label%3Alicense-unsure).
|
|
150
|
+
3. A maintainer reviews the source link, the brand guidelines, and the description before merging. They may request more info on the issue thread.
|
|
151
|
+
4. If the license is verifiable and acceptable, the asset is merged with the declared text recorded verbatim in `icons.json`.
|
|
152
|
+
|
|
153
|
+
**This path is not a way to bypass the rules — it's a way to be honest about ambiguity.** A clearly-labeled `license-unsure` submission is much easier to handle than a "yeah, just say MIT" submission that we have to take down later.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## 7. What we never accept
|
|
158
|
+
|
|
159
|
+
- **"All rights reserved"** assets without explicit, documented owner permission. Even if you uploaded it, we can't republish it without rights.
|
|
160
|
+
- **Assets where the license forbids redistribution.** Some brand assets are licensed only for internal company use — those can't go into a public registry.
|
|
161
|
+
- **Mislabeled licenses.** Submitting a CC BY-ND asset as MIT, for example. This creates legal exposure for you, for us, and for every downstream consumer.
|
|
162
|
+
- **Assets you found on the internet with no traceable source.** "I got it from Google Images" is not a license declaration.
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## 8. If you find a wrong license — takedown procedure
|
|
167
|
+
|
|
168
|
+
License accuracy is a first-class concern for us. If you spot an icon whose declared license is wrong (e.g. marked MIT when it should be Other / proprietary):
|
|
169
|
+
|
|
170
|
+
1. **Open an issue** at [github.com/GLINCKER/thesvg/issues](https://github.com/GLINCKER/thesvg/issues/new) titled `[License] <slug> — <what's wrong>`.
|
|
171
|
+
2. Include: the icon slug, the declared license in the registry, what you believe the correct license is, and a link to the authoritative source.
|
|
172
|
+
3. We aim to respond within 72 hours. For verifiable mistakes we either relicense the entry or remove the asset entirely.
|
|
173
|
+
|
|
174
|
+
For formal takedown requests from rights-holders or their representatives, see the procedure in [LEGAL.md](./LEGAL.md).
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## Related policies
|
|
179
|
+
|
|
180
|
+
- [DISCLAIMER.md](./DISCLAIMER.md) — project disclaimer
|
|
181
|
+
- [LEGAL.md](./LEGAL.md) — DMCA / takedown procedure
|
|
182
|
+
- [TRADEMARK.md](./TRADEMARK.md) — trademark policy
|
|
183
|
+
- [CONTRIBUTING.md](./CONTRIBUTING.md) — general contribution guide
|
|
184
|
+
- [CODE_OF_CONDUCT.md](./CODE_OF_CONDUCT.md) — community standards
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# iconPik attribution
|
|
2
|
+
|
|
3
|
+
Derived from [theSVG](https://github.com/glincker/thesvg), originally copyright thesvg.org.
|
|
4
|
+
Original MIT license and third-party icon notices are included unchanged.
|
|
5
|
+
Brand names, logos and flags retain their respective owners and applicable licenses.
|
|
6
|
+
|
|
7
|
+
iconPik packaging and distribution: https://www.iconpik.com
|
package/README.md
CHANGED
|
@@ -1,3 +1,268 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://github.com/glincker/thesvg">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://www.iconpik.com/og-image.png" />
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="https://www.iconpik.com/og-image-light.png" />
|
|
6
|
+
<img src="https://www.iconpik.com/og-image-light.png" alt="iconPik - 7,900+ Brand SVG Icons" width="700" />
|
|
7
|
+
</picture>
|
|
8
|
+
</a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<a href="https://www.npmjs.com/package/@iconpik/mcp-server"><img src="https://img.shields.io/npm/v/@iconpik/mcp-server?color=F97316&label=npm" alt="npm version" /></a>
|
|
13
|
+
<a href="https://www.jsdelivr.com/package/npm/@iconpik/mcp-server"><img src="https://data.jsdelivr.com/v1/package/npm/@iconpik/mcp-server/badge" alt="jsDelivr" /></a>
|
|
14
|
+
</p>
|
|
15
|
+
|
|
16
|
+
# @iconpik/mcp-server
|
|
17
|
+
|
|
18
|
+
MCP (Model Context Protocol) server for [thesvg.org](https://www.iconpik.com). Gives AI agents in Claude Desktop, Cursor, Claude Code, and any MCP-aware client direct access to 7,600+ brand SVG icons -- no API key required.
|
|
19
|
+
|
|
20
|
+
## What it does
|
|
21
|
+
|
|
22
|
+
The server exposes five tools that AI agents can call:
|
|
23
|
+
|
|
24
|
+
| Tool | Description |
|
|
25
|
+
|------|-------------|
|
|
26
|
+
| `search_icons` | Fuzzy search icons by brand name or slug |
|
|
27
|
+
| `get_icon` | Fetch raw SVG markup + metadata for a specific icon |
|
|
28
|
+
| `list_variants` | List available variants for a specific icon |
|
|
29
|
+
| `get_icon_url` | Get a jsDelivr CDN URL for embedding (no SVG fetch) |
|
|
30
|
+
| `list_categories` | List all icon categories with counts |
|
|
31
|
+
|
|
32
|
+
## UI icons (`kind`)
|
|
33
|
+
|
|
34
|
+
Every tool also accepts an optional `kind` parameter: `"brand"` (default, identical to previous behavior) or `"ui"` for the UI icon set. `get_icon` and `get_icon_url` take an optional `look` for UI icons (`outline` by default, also `glass`, `duotone`, `offset`, `fill`, `glass-outline`, `depth`); an unknown look returns an error listing the valid ones. For `kind: "ui"`, `list_variants` lists looks and `list_categories` counts UI categories.
|
|
35
|
+
|
|
36
|
+
The UI index is a separate file (`https://www.iconpik.com/ui/manifest.json`). It is fetched lazily on the first UI request and cached in memory. If that fetch fails, only UI requests return an error; brand tools never depend on it.
|
|
37
|
+
|
|
38
|
+
## Data source
|
|
39
|
+
|
|
40
|
+
Icons are bundled at build time from the thesvg.org open registry (7,600+ entries). SVG content is fetched on demand from the jsDelivr CDN at `https://www.iconpik.com/icons/{slug}/{variant}.svg`.
|
|
41
|
+
|
|
42
|
+
**Tradeoff**: bundling the registry (~2.8 MB) means the server starts instantly with no network dependency and works offline for search/URL queries. Only `get_icon` requires a network request (to fetch the SVG from jsDelivr). To refresh to a newer registry, rebuild the package.
|
|
43
|
+
|
|
44
|
+
## Installation
|
|
45
|
+
|
|
46
|
+
No install needed with npx:
|
|
47
|
+
|
|
48
|
+
```json
|
|
49
|
+
{
|
|
50
|
+
"mcpServers": {
|
|
51
|
+
"thesvg": {
|
|
52
|
+
"command": "npx",
|
|
53
|
+
"args": ["-y", "@iconpik/mcp-server"]
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Or install globally:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install -g @iconpik/mcp-server
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Configuration
|
|
66
|
+
|
|
67
|
+
### Claude Desktop
|
|
68
|
+
|
|
69
|
+
Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
|
|
70
|
+
|
|
71
|
+
```json
|
|
72
|
+
{
|
|
73
|
+
"mcpServers": {
|
|
74
|
+
"thesvg": {
|
|
75
|
+
"command": "npx",
|
|
76
|
+
"args": ["-y", "@iconpik/mcp-server"]
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
If you installed globally:
|
|
83
|
+
|
|
84
|
+
```json
|
|
85
|
+
{
|
|
86
|
+
"mcpServers": {
|
|
87
|
+
"thesvg": {
|
|
88
|
+
"command": "thesvg-mcp"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
### Cursor
|
|
95
|
+
|
|
96
|
+
Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` globally:
|
|
97
|
+
|
|
98
|
+
```json
|
|
99
|
+
{
|
|
100
|
+
"mcpServers": {
|
|
101
|
+
"thesvg": {
|
|
102
|
+
"command": "npx",
|
|
103
|
+
"args": ["-y", "@iconpik/mcp-server"]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Claude Code (CLI)
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
claude mcp add thesvg -- npx -y @iconpik/mcp-server
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Or add to `.claude/settings.json` in your project:
|
|
116
|
+
|
|
117
|
+
```json
|
|
118
|
+
{
|
|
119
|
+
"mcpServers": {
|
|
120
|
+
"thesvg": {
|
|
121
|
+
"command": "npx",
|
|
122
|
+
"args": ["-y", "@iconpik/mcp-server"]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Tools
|
|
129
|
+
|
|
130
|
+
### `search_icons`
|
|
131
|
+
|
|
132
|
+
Fuzzy search for brand icons by name or slug.
|
|
133
|
+
|
|
134
|
+
**Input**:
|
|
135
|
+
```json
|
|
136
|
+
{
|
|
137
|
+
"query": "github",
|
|
138
|
+
"limit": 10
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Output** (example):
|
|
143
|
+
```text
|
|
144
|
+
Found 5 icons for "github":
|
|
145
|
+
- GitHub (slug: `github`) | variants: default, mono | categories: Software, Development
|
|
146
|
+
- GitHub Actions (slug: `github-actions`) | variants: default, mono | categories: DevOps
|
|
147
|
+
...
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### `get_icon`
|
|
153
|
+
|
|
154
|
+
Fetch the raw SVG markup for a specific icon variant.
|
|
155
|
+
|
|
156
|
+
**Input**:
|
|
157
|
+
```json
|
|
158
|
+
{
|
|
159
|
+
"slug": "stripe",
|
|
160
|
+
"variant": "default"
|
|
161
|
+
}
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
**Output** (example):
|
|
165
|
+
```text
|
|
166
|
+
# Stripe
|
|
167
|
+
|
|
168
|
+
**Slug**: `stripe`
|
|
169
|
+
**Variant**: default
|
|
170
|
+
**CDN URL**: https://www.iconpik.com/icons/stripe/default.svg
|
|
171
|
+
**Available variants**: default, mono, dark
|
|
172
|
+
|
|
173
|
+
```svg
|
|
174
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">...</svg>
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
### `list_variants`
|
|
180
|
+
|
|
181
|
+
List available variants for a specific icon.
|
|
182
|
+
|
|
183
|
+
**Input**:
|
|
184
|
+
```json
|
|
185
|
+
{ "slug": "openai" }
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
**Output** (example):
|
|
189
|
+
```text
|
|
190
|
+
openai has 6 variants:
|
|
191
|
+
- `default` -- https://www.iconpik.com/icons/openai/default.svg
|
|
192
|
+
- `light` -- https://...
|
|
193
|
+
- `dark` -- https://...
|
|
194
|
+
- `wordmark` -- https://...
|
|
195
|
+
- `wordmarkLight` -- https://...
|
|
196
|
+
- `wordmarkDark` -- https://...
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### `get_icon_url`
|
|
202
|
+
|
|
203
|
+
Get a CDN URL for embedding an icon in HTML or Markdown (no SVG fetch).
|
|
204
|
+
|
|
205
|
+
**Input**:
|
|
206
|
+
```json
|
|
207
|
+
{
|
|
208
|
+
"slug": "openai",
|
|
209
|
+
"variant": "default"
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**Output** (example):
|
|
214
|
+
```text
|
|
215
|
+
CDN URL for `openai` (variant: default):
|
|
216
|
+
|
|
217
|
+
https://www.iconpik.com/icons/openai/default.svg
|
|
218
|
+
|
|
219
|
+
Example usage:
|
|
220
|
+
<img src="..." alt="OpenAI" width="32" height="32" />
|
|
221
|
+
|
|
222
|
+

|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
---
|
|
226
|
+
|
|
227
|
+
### `list_categories`
|
|
228
|
+
|
|
229
|
+
Discover all icon categories with counts.
|
|
230
|
+
|
|
231
|
+
**Input**: `{}` (no parameters)
|
|
232
|
+
|
|
233
|
+
**Output** (example):
|
|
234
|
+
```text
|
|
235
|
+
142 categories across 6,502 icons:
|
|
236
|
+
|
|
237
|
+
- Software - 4,200 icons
|
|
238
|
+
- Platform - 2,100 icons
|
|
239
|
+
- AI - 310 icons
|
|
240
|
+
...
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
## Development
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# Install dependencies
|
|
247
|
+
npm install
|
|
248
|
+
|
|
249
|
+
# Build (copies icons.json, compiles TypeScript)
|
|
250
|
+
npm run build
|
|
251
|
+
|
|
252
|
+
# Run locally
|
|
253
|
+
node dist/index.js
|
|
254
|
+
|
|
255
|
+
# Quick smoke test
|
|
256
|
+
node test-smoke.mjs
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
## Requirements
|
|
260
|
+
|
|
261
|
+
- Node.js >= 18
|
|
262
|
+
- Internet access only for `get_icon` (fetches SVGs from jsDelivr CDN)
|
|
263
|
+
|
|
264
|
+
## Community
|
|
265
|
+
|
|
266
|
+
Questions, icon requests, or ideas? Join the [GLINR Discord](https://discord.gg/Ar5pcaZB99), where iconPik has its own forum.
|
|
267
|
+
|
|
268
|
+
[](https://discord.gg/Ar5pcaZB99)
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Third-party notices
|
|
2
|
+
|
|
3
|
+
This file is generated by `scripts/flags/generate-flags.mjs`. Do not edit it by hand.
|
|
4
|
+
|
|
5
|
+
The flag artwork in `public/icons/flag-*` and in `@thesvg/flags` is derived from the open source projects below. Each is MIT licensed, which requires that the copyright notice and license text accompany copies of the software. They are reproduced here in full. The SVG files were optimized with SVGO; the artwork is otherwise unchanged and the files carry no credit text, so the notices live here and in `packages/flags/src/data/licenses.json`, which maps every file to its upstream path.
|
|
6
|
+
|
|
7
|
+
National flags are public symbols. The MIT license covers the SVG drawings in those repositories, not any right of a state or organization in its own emblem. See LEGAL.md and DISCLAIMER.md.
|
|
8
|
+
|
|
9
|
+
## flag-icons
|
|
10
|
+
|
|
11
|
+
- URL: https://github.com/lipis/flag-icons
|
|
12
|
+
- Version: 7.6.0, commit ac7e0eb3259eb62aa6100c435607e2fe03896a97
|
|
13
|
+
- License: MIT
|
|
14
|
+
- Accessed: 2026-11-13
|
|
15
|
+
|
|
16
|
+
The MIT License (MIT)
|
|
17
|
+
|
|
18
|
+
Copyright (c) 2013 Panayiotis Lipiridis
|
|
19
|
+
|
|
20
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
21
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
22
|
+
the Software without restriction, including without limitation the rights to
|
|
23
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
24
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
25
|
+
so, subject to the following conditions:
|
|
26
|
+
|
|
27
|
+
The above copyright notice and this permission notice shall be included in all
|
|
28
|
+
copies or substantial portions of the Software.
|
|
29
|
+
|
|
30
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
31
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
32
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
33
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
34
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
35
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
36
|
+
SOFTWARE.
|
|
37
|
+
|
|
38
|
+
## circle-flags
|
|
39
|
+
|
|
40
|
+
- URL: https://github.com/HatScripts/circle-flags
|
|
41
|
+
- Version: main, commit 379588b5da95482d6bbf10bd45644a35b0609ea6
|
|
42
|
+
- License: MIT
|
|
43
|
+
- Accessed: 2026-11-13
|
|
44
|
+
|
|
45
|
+
# MIT License
|
|
46
|
+
|
|
47
|
+
Copyright (c) 2026 HatScripts
|
|
48
|
+
|
|
49
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
50
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
51
|
+
in the Software without restriction, including without limitation the rights
|
|
52
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
53
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
54
|
+
furnished to do so, subject to the following conditions:
|
|
55
|
+
|
|
56
|
+
The above copyright notice and this permission notice shall be included in all
|
|
57
|
+
copies or substantial portions of the Software.
|
|
58
|
+
|
|
59
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
60
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
61
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
62
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
63
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
64
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
65
|
+
SOFTWARE.
|
|
66
|
+
|
|
67
|
+
## wikimedia-commons (rectangle variants of a few regional flags)
|
|
68
|
+
|
|
69
|
+
- URL: https://commons.wikimedia.org
|
|
70
|
+
- License: public domain or CC0, per file, verified through the Commons API on 2026-11-13. Neither requires attribution; the files are listed for transparency.
|
|
71
|
+
|
|
72
|
+
- Flag of Corsica.svg by Patricia.fidi, CC0: https://commons.wikimedia.org/wiki/File:Flag_of_Corsica.svg
|
|
73
|
+
- Flag of Occitania (with star).svg by Nimlar and others, Public domain: https://commons.wikimedia.org/wiki/File:Flag_of_Occitania_(with_star).svg
|
|
74
|
+
- Flag of the Balearic Islands.svg by see file page, CC0: https://commons.wikimedia.org/wiki/File:Flag_of_the_Balearic_Islands.svg
|
|
75
|
+
- Flag of the Land of Valencia (official).svg by Mutxamel and others, Public domain: https://commons.wikimedia.org/wiki/File:Flag_of_the_Land_of_Valencia_(official).svg
|
|
76
|
+
|
|
77
|
+
## Reference data used only to validate and label (not redistributed)
|
|
78
|
+
|
|
79
|
+
- i18n-iso-countries 7.14.0 (MIT): ISO 3166-1 alpha-2, alpha-3 and numeric codes and localized country names.
|
|
80
|
+
- Unicode CLDR via cldr-core 47.0.0 (Unicode License V3): territory languages.
|
|
81
|
+
- Wikimedia Commons files were used only where listed above; otherwise they were a manual cross-check.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-hint.d.ts","sourceRoot":"","sources":["../src/flag-hint.ts"],"names":[],"mappings":"AAGA,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEzD;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAahE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Flags ship in their own package, so any flag result points there rather than at the generic icon packages. */
|
|
2
|
+
const pascal = (code) => code.split("-").map((p) => p[0].toUpperCase() + p.slice(1)).join("");
|
|
3
|
+
export function flagCode(slug) {
|
|
4
|
+
return slug.startsWith("flag-") ? slug.slice("flag-".length) : undefined;
|
|
5
|
+
}
|
|
6
|
+
/** Lines to append to a tool answer when any slug is a flag; empty otherwise. */
|
|
7
|
+
export function flagHintLines(slugs) {
|
|
8
|
+
const code = slugs.map(flagCode).find((c) => Boolean(c));
|
|
9
|
+
if (!code)
|
|
10
|
+
return [];
|
|
11
|
+
return [
|
|
12
|
+
"",
|
|
13
|
+
"Flags install from their own package, not @iconpik/icons:",
|
|
14
|
+
"```bash",
|
|
15
|
+
"pnpm add @iconpik/flags",
|
|
16
|
+
"```",
|
|
17
|
+
"```tsx",
|
|
18
|
+
`import { Flag${pascal(code)} } from "@iconpik/flags/react/${code}";`,
|
|
19
|
+
"```",
|
|
20
|
+
];
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=flag-hint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flag-hint.js","sourceRoot":"","sources":["../src/flag-hint.ts"],"names":[],"mappings":"AAAA,iHAAiH;AACjH,MAAM,MAAM,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAE9G,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3E,CAAC;AAED,iFAAiF;AACjF,MAAM,UAAU,aAAa,CAAC,KAAwB;IACpD,MAAM,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAe,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;IACtE,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,OAAO;QACL,EAAE;QACF,2DAA2D;QAC3D,SAAS;QACT,yBAAyB;QACzB,KAAK;QACL,QAAQ;QACR,gBAAgB,MAAM,CAAC,IAAI,CAAC,iCAAiC,IAAI,IAAI;QACrE,KAAK;KACN,CAAC;AACJ,CAAC"}
|