# Open source licence generator

Get the text of the MIT, BSD, ISC, Apache-2.0 or Unlicense licence with your year and name filled in.

- Endpoint: `POST https://setget.net/v1/tools/license-generate` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `license-generate`
- Page: https://setget.net/tools/license-generate

## Inputs

- `license` (optional, string, one of `MIT`, `ISC`, `BSD-2-Clause`, `BSD-3-Clause`, `Apache-2.0`, `Unlicense`, default `"MIT"`): The licence, by its SPDX name. Apache-2.0 returns the short notice, not the full licence text.
- `holder` (optional, string): Copyright holder: your name or organisation. Not needed for the Unlicense.
- `year` (optional, integer, range 1900..2200): Copyright year, usually the year of first publication. Not needed for the Unlicense.

## Example 1

```json
{"input":{"license":"ISC","holder":"Sam Rivera","year":2026}}
```

Result:

```json
{"text":"ISC License\n\nCopyright (c) 2026 Sam Rivera\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\nPERFORMANCE OF THIS SOFTWARE.\n","license":"ISC","filename":"LICENSE","complete":true}
```

## Example 2: MIT

```json
{"input":{"license":"MIT","holder":"Example Ltd","year":2026}}
```

## Example 3: Public domain dedication; no name needed

```json
{"input":{"license":"Unlicense"}}
```

**Which licence should I pick?** MIT and ISC are short and permissive. BSD-3-Clause adds a rule against using your name for endorsement. Apache-2.0 adds a patent grant. The Unlicense gives the work to the public domain. This is not legal advice.

**Why is the year not filled in for me?** The tool gives the same answer for the same input, so it never reads the clock. Enter the year.

**Why is Apache-2.0 not the full text?** The full licence is about 11,000 characters and must be copied exactly, so the tool returns the official short notice and tells you where to download the full text.
