Skip to main content
Glama
mcp-license-audit

mcp-license-audit

by webmoleai

mcp-license-audit

MCP server that audits your project's dependency licenses for compatibility issues. Flags GPL/AGPL conflicts and generates compliance reports.

What It Does

  • Parses a package.json file (dependencies + devDependencies)

  • Fetches license info for each package from the npm registry

  • Classifies licenses: permissive (MIT, Apache, BSD, ISC), copyleft (GPL, AGPL), weak-copyleft (LGPL, MPL), unknown

  • Detects conflicts (e.g., GPL dependency in an MIT-licensed project)

  • Returns a structured JSON report with risk level and summary

Related MCP server: license-guardian

Install

npm install -g mcp-license-audit
# or run directly:
npx mcp-license-audit

Configure in Claude Code

Add to your .claude/mcp.json or ~/.claude/mcp.json:

{
  "mcpServers": {
    "license-audit": {
      "command": "npx",
      "args": ["mcp-license-audit"]
    }
  }
}

Or if installed globally:

{
  "mcpServers": {
    "license-audit": {
      "command": "mcp-license-audit"
    }
  }
}

Tool: audit-licenses

Input: packageJson — the full contents of a package.json file as a string.

Output: JSON report:

{
  "totalDependencies": 15,
  "analyzed": 15,
  "licenses": {
    "MIT": ["express", "lodash"],
    "Apache-2.0": ["typescript"],
    "GPL-3.0": ["some-package"],
    "unknown": ["private-pkg"]
  },
  "conflicts": [
    {
      "package": "some-package",
      "license": "GPL-3.0",
      "issue": "GPL dependency in MIT project — must open-source your code if distributed"
    }
  ],
  "riskLevel": "medium",
  "summary": "15 deps analyzed. 1 GPL conflict found. 1 unknown license."
}

Risk levels: low (no copyleft), medium (weak copyleft or many unknowns), high (GPL/AGPL found).

Limits

  • Analyzes first 20 dependencies for speed

  • Only supports npm packages (no pip/cargo/gem support yet)

  • License data comes from the npm registry — private packages return "unknown"

Build from Source

npm install
npm run build
node dist/index.js

Available Tools

1 tool
audit-licensesA

Audit your project's dependency licenses for compatibility issues. Flags GPL/AGPL conflicts and generates compliance reports.

Inputs: packageJson (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    Only one tool exists, so there is no possible confusion between tools.

    Naming Consistency5/5

    The sole tool name 'audit-licenses' follows a clear verb_noun pattern, consistent with itself.

    Tool Count3/5

    With only one tool, the server feels thin for a license audit domain, which might benefit from separate reporting or configuration tools. However, the single tool may suffice for basic use.

    Completeness3/5

    The tool covers scanning and report generation, but lacks tools for managing license policies, viewing history, or handling exceptions, leaving notable gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      B
      maintenance
      Audits npm dependencies for license compatibility, catching copyleft and source-available traps before shipping.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Scans npm project dependencies for license compliance issues, detecting GPL contamination and generating detailed reports.
      2
      58 npm
      MIT