SunLicense — Claude Code MCP server: features and setup
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.
MIT-0 updated 2026-11-10
claude mcp add --transport http mcp https://api.sunlicense.com/mcpWhat SunLicense 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.
What it helps with
- 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 for the agent
- Issue a Pro license for [email protected].
- Find out why the check for key AX8P-… is failing.
- Block the key posted on a forum.
How to install SunLicense
1Platform CLI: remote server
claude mcp add --transport http mcp https://api.sunlicense.com/mcp2Platform CLI
claude mcp add --env SUNLICENSE_TOKEN=<SUNLICENSE_TOKEN> --env SUNLICENSE_API_KEY=<SUNLICENSE_API_KEY> --transport stdio sunlicense -- npx -y @sunlicense/cliReplace <…> with your own values
1Platform CLI: remote server
codex mcp add sunlicense --url https://api.sunlicense.com/mcp2Platform CLI
codex mcp add sunlicense --env SUNLICENSE_TOKEN=<SUNLICENSE_TOKEN> --env SUNLICENSE_API_KEY=<SUNLICENSE_API_KEY> -- npx -y @sunlicense/cliReplace <…> with your own values
Config file
{
"mcpServers": {
"sunlicense": {
"url": "https://api.sunlicense.com/mcp"
}
}
}{
"mcpServers": {
"sunlicense": {
"command": "npx",
"args": [
"-y",
"@sunlicense/cli"
],
"env": {
"SUNLICENSE_TOKEN": "<SUNLICENSE_TOKEN>",
"SUNLICENSE_API_KEY": "<SUNLICENSE_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"sunlicense": {
"type": "http",
"url": "https://api.sunlicense.com/mcp"
}
}
}{
"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
1Platform CLI: remote server
gemini mcp add -t http sunlicense https://api.sunlicense.com/mcp2Platform CLI
gemini mcp add -e SUNLICENSE_TOKEN=<SUNLICENSE_TOKEN> -e SUNLICENSE_API_KEY=<SUNLICENSE_API_KEY> sunlicense npx -y @sunlicense/cliReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about SunLicense
How do I install SunLicense in Claude Code?
Run claude mcp add --transport http sunlicense https://api.sunlicense.com/mcp, then open /mcp, select sunlicense, and authenticate.
What does SunLicense do?
It gives an AI assistant tools to manage SunLicense records, including issuing or revoking keys, handling customers and machines, and building automations.
What does SunLicense need to run?
The hosted connection requires a SunLicense account and OAuth sign-in. The local server needs the CLI and an access token; license checks also require SUNLICENSE_API_KEY.