Skip to main content

MCP server for the Labs64 NetLicensing license management API

Project description

NetLicensing MCP Server

CI PyPI Python 3.12+ License

The official Labs64 NetLicensing MCP Server — a natural language interface that lets AI agents manage software licenses, customers, and entitlements through conversational commands.

Works with Claude Desktop, GitHub Copilot (Agent mode), VS Code, JetBrains / IntelliJ IDEA, and any other MCP-compatible client.


Why use this?

  • Natural Language Licensing — Ask your AI assistant to create products, issue licenses, validate entitlements, and generate shop URLs without touching the NetLicensing UI or writing API calls.
  • Full API coverage — Various tools spanning the entire NetLicensing REST API: products, modules, templates, licensees, licenses, bundles, tokens, transactions, and payment methods.
  • Built-in audit prompts — Five ready-to-run prompt templates for account audits, expiry sweeps, anomaly detection, and cleanup workflows.
  • Safe by default — All delete operations expose a force_cascade option; nothing is silently cascaded.
  • Zero-dependency quick start — Run with uvx or Docker without a local Python install.

What can you ask?

Once connected, you can talk to NetLicensing in plain language:

  • "List all products in my NetLicensing account."
  • "Create a new licensee for customer@example.com under product PTEST."
  • "Validate the license for licensee L001 — does it pass?"
  • "Generate a shop URL for licensee L001 so they can self-serve their renewal."
  • "Which licenses are expiring in the next 30 days?"
  • "Find any licensees with no active licenses — flag them for cleanup."
  • "Transfer all licenses from licensee L001 to L002."
  • "Create an API key token scoped to read-only access."
  • "Show me all transactions from the last month."

Features

Area Tools
Products list, get, create, update, delete
Product Modules list, get, create, update, delete
License Templates list, get, create, update, delete
Licensees list, get, create, update, delete, validate, transfer
Licenses list, get, create, update (activate/deactivate), delete
Bundles list, get, create, update, delete, obtain
Tokens list, get, create shop URL, create API token, revoke
Transactions list, get, create, update
Payment Methods list, get, update
Utilities list licensing models, list license types
Audit Prompts full account, single customer, expiry sweep, cleanup, anomaly detection
Delete Safety force_cascade option on all delete tools

Quick Start

Option A — uvx (no install required)

NETLICENSING_API_KEY=your_key uvx netlicensing-mcp

Option B — pip

pip install netlicensing-mcp
NETLICENSING_API_KEY=your_key netlicensing-mcp

Option C — Docker

docker run -i --rm \
  -e NETLICENSING_API_KEY=your_key \
  ghcr.io/labs64/netlicensing-mcp:latest

No API key? Leave NETLICENSING_API_KEY empty to run against NetLicensing's built-in sandbox with demo credentials — no account required.


Configuration

Environment Variables

Variable Required Default Description
NETLICENSING_API_KEY No* (demo mode) NetLicensing API key. Leave empty to use sandbox demo credentials.
NETLICENSING_BASE_URL No https://go.netlicensing.io/core/v2/rest Override the NetLicensing REST API base URL (e.g. for on-prem deployments).

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "netlicensing": {
      "command": "uvx",
      "args": ["netlicensing-mcp"],
      "env": {
        "NETLICENSING_API_KEY": "your_key_here"
      }
    }
  }
}

Or use the official Docker image:

{
  "mcpServers": {
    "netlicensing": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "NETLICENSING_API_KEY=your_key_here",
        "ghcr.io/labs64/netlicensing-mcp:latest"
      ]
    }
  }
}

VS Code / GitHub Copilot

The repo ships a .vscode/mcp.json that auto-configures Copilot Agent mode. Set NETLICENSING_API_KEY in your shell environment or a .env file, then click Start in the editor banner that appears above mcp.json.

JetBrains / IntelliJ IDEA

In Copilot Chat → Agent mode → Tools icon → Add More Tools… — paste the same JSON block shown in the Claude Desktop section above.


Audit Prompt Templates

Five built-in prompts accessible in Copilot Agent and Claude Desktop:

Prompt Purpose
license_audit_full End-to-end account audit for a product
license_audit_customer Deep-dive on a single licensee
license_audit_expiry Find licenses expiring within N days and generate renewal URLs
license_audit_cleanup Identify inactive / orphaned licenses for cleanup
license_audit_anomaly Detect unusual usage patterns across all customers

Troubleshooting

Check MCP server logs

# macOS / Claude Desktop
tail -f ~/Library/Logs/Claude/mcp-server-netlicensing.log
 
# Windows
Get-Content "$env:APPDATA\Claude\Logs\mcp-server-netlicensing.log" -Wait

Run the MCP Inspector (browser UI at http://localhost:5173)

mcp dev src/netlicensing_mcp/server.py

Common issues

Symptom Likely cause Fix
401 Unauthorized responses Invalid or expired API key Regenerate your key at ui.netlicensing.io
Server not listed in Claude Config file JSON syntax error Validate with python -m json.tool claude_desktop_config.json
uvx: command not found uv not installed pip install uv or see docs.astral.sh/uv
Demo data instead of live data NETLICENSING_API_KEY not set Ensure the env var is exported in the shell that starts the client

Development

git clone https://github.com/Labs64/NetLicensing-MCP
cd NetLicensing-MCP
 
python -m venv .venv
source .venv/bin/activate       # Windows: .venv\Scripts\activate
 
pip install -e ".[dev]"
cp .env.example .env            # add your API key
 
# Run the MCP Inspector
mcp dev src/netlicensing_mcp/server.py
 
# Run tests
pytest tests/ -v

HTTP mode (for remote / shared deployments)

python -m netlicensing_mcp.server http
# Server listens on 0.0.0.0:8000

Use ngrok or a reverse proxy to expose the HTTP endpoint to remote MCP clients:

ngrok http 8000
# Then point your client at the generated HTTPS URL

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

For significant changes, open an issue first to discuss the approach.


License

Apache 2.0 — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netlicensing_mcp-0.0.6.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

netlicensing_mcp-0.0.6-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file netlicensing_mcp-0.0.6.tar.gz.

File metadata

  • Download URL: netlicensing_mcp-0.0.6.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for netlicensing_mcp-0.0.6.tar.gz
Algorithm Hash digest
SHA256 60fad22e3acbc28253b34701f57f5ffd5d99884f978e6b8f0425fcb6eacc3ace
MD5 46890071f3717c8cee4a660103d00012
BLAKE2b-256 dded0214751877eb655449c90b86df1d961224672f704227b3bc3125f45aaede

See more details on using hashes here.

Provenance

The following attestation bundles were made for netlicensing_mcp-0.0.6.tar.gz:

Publisher: netlicensing-release.yml on Labs64/NetLicensing-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file netlicensing_mcp-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for netlicensing_mcp-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e534a152a84270bc1f3abe3e21c84b25b6f8cc167e97272241f54bc6f54edbca
MD5 4c851f75087fcf8127df705bd371b6b9
BLAKE2b-256 8a01d850d9f636f0c8065d2b608f7a996416cdd1f7454ec38bbec61d1e335458

See more details on using hashes here.

Provenance

The following attestation bundles were made for netlicensing_mcp-0.0.6-py3-none-any.whl:

Publisher: netlicensing-release.yml on Labs64/NetLicensing-MCP

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page