# SunLicense

This MCP server for Claude Code manages SunLicense licenses from an AI assistant. It can issue or revoke keys, release machines, and look up customer records.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: sunlicense-com
- License: MIT-0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sunlicense-com/sunlicense-mcp
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/sunlicense

## What it does

SunLicense exposes tools for managing software licenses and customers through an AI assistant. It can issue, suspend, and revoke licenses, block leaked keys, release machines or IP addresses, and create or run automations. A separate tool can perform a real license check.

The hosted server uses HTTP and OAuth. On the first tool call, the assistant opens SunLicense for sign-in and permission approval, so a SunLicense account is required. Daily tool-call limits are 50 on Free, 300 on Lite, and 3,000 on Standard. The local option runs through the CLI and needs an access token; its license-check tool also requires `SUNLICENSE_API_KEY`.

## Requirements
- Needs: Node.js (commands run via npx)
- Remote server: `https://api.sunlicense.com/mcp`
- Environment variables: `SUNLICENSE_TOKEN`, `SUNLICENSE_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://api.sunlicense.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env SUNLICENSE_TOKEN=<SUNLICENSE_TOKEN> --env SUNLICENSE_API_KEY=<SUNLICENSE_API_KEY> --transport stdio sunlicense -- npx -y @sunlicense/cli
```
Replace <…> with your own values

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add sunlicense --url https://api.sunlicense.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add sunlicense --env SUNLICENSE_TOKEN=<SUNLICENSE_TOKEN> --env SUNLICENSE_API_KEY=<SUNLICENSE_API_KEY> -- npx -y @sunlicense/cli
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sunlicense": {
            "url": "https://api.sunlicense.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sunlicense": {
            "command": "npx",
            "args": [
                "-y",
                "@sunlicense/cli"
            ],
            "env": {
                "SUNLICENSE_TOKEN": "<SUNLICENSE_TOKEN>",
                "SUNLICENSE_API_KEY": "<SUNLICENSE_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sunlicense": {
            "type": "http",
            "url": "https://api.sunlicense.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sunlicense": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@sunlicense/cli"
            ],
            "env": {
                "SUNLICENSE_TOKEN": "<SUNLICENSE_TOKEN>",
                "SUNLICENSE_API_KEY": "<SUNLICENSE_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http sunlicense https://api.sunlicense.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e SUNLICENSE_TOKEN=<SUNLICENSE_TOKEN> -e SUNLICENSE_API_KEY=<SUNLICENSE_API_KEY> sunlicense npx -y @sunlicense/cli
```
Replace <…> with your own values

## When to use it
- issue a license for a customer
- suspend or revoke a leaked key
- free a machine linked to a license
- find a customer's license details
- create an automation for license management

## Example prompts
- Issue a Pro license for jane@example.com.
- Find out why the check for key AX8P-… is failing.
- Block the key posted on a forum.

## Similar
- [Context7](https://affpapa.org/en/nevibecode/mcp/context7.md) — MCP server · 5563 installs
- [Search Google Flights](https://affpapa.org/en/nevibecode/mcp/search-google-flights.md) — MCP server · 2595 installs
- [Math-MCP](https://affpapa.org/en/nevibecode/mcp/math-mcp.md) — MCP server · 5958 installs
- [pipeworx gateway](https://affpapa.org/en/nevibecode/mcp/pipeworx-gateway.md) — MCP server · 419019 installs
- [SparkForge](https://affpapa.org/en/nevibecode/mcp/sparkforge.md) — MCP server · 219896 installs
- [OpenWebSearch](https://affpapa.org/en/nevibecode/mcp/openwebsearch.md) — MCP server · 494 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
