LicenseGuard

Check if a dependency's license obligates you, based on how you ship. npm, PyPI, Go.

Should I use this

Quality & Safety

A
Description quality
90%
Schema completeness
100%
Naming quality
93%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'explain_license' description lacks action verbin explain_license

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~1,775Tokens (tool definitions)
~6.2 KBTypical response size
Moderate attention impact (1.39% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "license-guard": {
      "url": "https://license-guard.rcc-aoki.workers.dev/mcp"
    }
  }
}

Remote endpoints

https://license-guard.rcc-aoki.workers.dev/mcpstreamable-http

What it can do

Tool inventory

Tools (3)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢check_dependency_license(ecosystem, name, version, distribution_model, scope)

Determine whether adding or keeping a single open source dependency creates a legal obligation, given how this project ships. Call this BEFORE adding a new dependency to a project, and when auditing an existing one. A permissive result means no source-disclosure duty; a blocked result means the license obligates you and the dependency should be replaced or the shipping model reconsidered.

Input Schema

{
  "type": "object",
  "properties": {
    "ecosystem": {
      "type": "string",
      "enum": [
        "npm",
        "pypi",
        "go",
        "cargo",
        "rubygems",
        "nuget"
      ],
      "description": "Package registry the dependency comes from."
    },
    "name": {
      "type": "string",
      "description": "Package name as written in the manifest, e.g. \"express\", \"requests\", \"github.com/gin-gonic/gin\", or \"serde\"."
    },
    "version": {
      "type": "string",
      "description": "Exact version if known. Omit to use the latest published version, which may differ from what is installed."
    },
    "distribution_model": {
      "type": "string",
      "enum": [
        "saas",
        "distributed-binary",
        "on-prem-delivery",
        "internal-only",
        "library-published"
      ],
      "description": "How the software incorporating this dependency reaches its users. This determines the answer: \"saas\" = users reach it over a network; \"distributed-binary\" = shipped as an app or binary; \"on-prem-delivery\" = installed in a customer environment; \"internal-only\" = never leaves your organization; \"library-published\" = released for others to depend on."
    },
    "scope": {
      "type": "string",
      "enum": [
        "runtime",
        "dev",
        "build",
        "test",
        "optional"
      ],
      "description": "Where the dependency sits. Use \"dev\", \"build\", or \"test\" for anything that does not end up in the shipped artifact — those carry no distribution obligation. Defaults to \"runtime\"."
    }
  },
  "required": [
    "ecosystem",
    "name",
    "distribution_model"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "license": {
      "type": [
        "string",
        "null"
      ]
    },
    "verdict": {
      "type": "string",
      "enum": [
        "allowed",
        "review",
        "blocked"
      ]
    },
    "obligations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "rationale": {
      "type": "string"
    },
    "assumption": {
      "type": "object",
      "properties": {
        "declared": {
          "type": "string"
        },
        "assumed": {
          "type": "string"
        }
      },
      "required": [
        "declared",
        "assumed"
      ]
    },
    "reference": {
      "type": "string"
    }
  },
  "required": [
    "license",
    "verdict",
    "obligations",
    "rationale"
  ]
}
🟢check_manifest_licenses(content, distribution_model)

Scan an entire dependency manifest and report every dependency whose license creates an obligation for this shipping model. Use when reviewing a project as a whole, preparing for due diligence, or after a large dependency change. Pass a package-lock.json when one exists: problematic licenses usually arrive as transitive dependencies rather than ones you added directly, and only a lockfile reveals those.

Input Schema

{
  "type": "object",
  "properties": {
    "content": {
      "type": "string",
      "description": "Full text of a lockfile, SBOM, or manifest. Accepted: package-lock.json, pnpm-lock.yaml, yarn.lock, go.sum, Cargo.lock, poetry.lock, uv.lock, Gemfile.lock, packages.lock.json, CycloneDX (JSON), SPDX (JSON), package.json, requirements.txt, go.mod, Cargo.toml, .csproj, Directory.Packages.props, packages.config. The format is detected automatically. Prefer a lockfile: it covers transitive dependencies and carries exact versions. package-lock.json is best of all, since it embeds licenses and needs no registry lookups. An SBOM covers several ecosystems in one document, but its licenses are read from the document rather than looked up, so they are only as current as the document."
    },
    "distribution_model": {
      "type": "string",
      "enum": [
        "saas",
        "distributed-binary",
        "on-prem-delivery",
        "internal-only",
        "library-published"
      ],
      "description": "How the software incorporating this dependency reaches its users. This determines the answer: \"saas\" = users reach it over a network; \"distributed-binary\" = shipped as an app or binary; \"on-prem-delivery\" = installed in a customer environment; \"internal-only\" = never leaves your organization; \"library-published\" = released for others to depend on."
    }
  },
  "required": [
    "content",
    "distribution_model"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "ecosystem": {
      "type": "string"
    },
    "distributionModel": {
      "type": "string"
    },
    "summary": {
      "type": "object",
      "description": "Counts by verdict. total is every dependency found, not only the ones that were resolved.",
      "properties": {
        "total": {
          "type": "number"
        },
        "allowed": {
          "type": "number"
        },
        "review": {
          "type": "number"
        },
        "blocked": {
          "type": "number"
        }
      },
      "required": [
        "total",
        "allowed",
        "review",
        "blocked"
      ]
    },
    "findings": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "ecosystem": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": [
              "string",
              "null"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "runtime",
              "dev",
              "build",
              "test",
              "optional"
            ]
          },
          "spdxExpression": {
            "type": [
              "string",
              "null"
            ]
          },
          "resolvedFrom": {
            "type": "string",
            "description": "Where the license came from. \"lockfile\" is exact; \"sbom\" means it was written in the SBOM you pasted rather than looked up, so it is only as current as that document; \"registry\" and \"deps-dev\" are the pinned version as published; \"registry-latest\" means the pinned version could not be read and the latest release was used instead; \"not-checked\" means the lookup budget ran out and this dependency was never resolved; \"not-published\" means it is a git dependency, a member of the scanned workspace, or from a private registry, so no public registry has license data for it — re-scanning will not resolve those."
          },
          "verdict": {
            "type": "string",
            "enum": [
              "allowed",
              "review",
              "blocked"
            ]
          },
          "obligations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rationale": {
            "type": "string"
          }
        },
        "required": [
          "ecosystem",
          "name",
          "scope",
          "verdict",
          "obligations",
          "rationale"
        ]
      }
    },
    "limitations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What this scan could not establish. Never empty when anything was left unresolved. Read it before treating a result as clean."
    }
  },
  "required": [
    "summary",
    "findings",
    "limitations"
  ]
}
🟢explain_license(license, linkage)

Given an SPDX license identifier or expression, explain what it requires across every shipping model at once. Use when the question is about the license itself rather than a specific package — for example when comparing AGPL-3.0 against GPL-3.0 for a hosted service, or deciding what a project may safely depend on.

Input Schema

{
  "type": "object",
  "properties": {
    "license": {
      "type": "string",
      "description": "SPDX identifier or expression, e.g. \"AGPL-3.0-only\", \"Apache-2.0\", or \"(MIT OR GPL-2.0-only)\"."
    },
    "linkage": {
      "type": "string",
      "enum": [
        "dynamic",
        "static",
        "separate-process"
      ],
      "description": "How the dependency is linked. Matters for LGPL-family licenses. Compiled languages such as Go and Rust normally link statically. Defaults to \"dynamic\"."
    }
  },
  "required": [
    "license"
  ]
}

Output Schema

{
  "type": "object",
  "properties": {
    "license": {
      "type": "string"
    },
    "linkage": {
      "type": "string"
    },
    "byDistributionModel": {
      "type": "array",
      "description": "One row per way of shipping. This is where the same license diverges.",
      "items": {
        "type": "object",
        "properties": {
          "model": {
            "type": "string",
            "enum": [
              "saas",
              "distributed-binary",
              "on-prem-delivery",
              "internal-only",
              "library-published"
            ]
          },
          "verdict": {
            "type": "string",
            "enum": [
              "allowed",
              "review",
              "blocked"
            ]
          },
          "obligations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "rationale": {
            "type": "string"
          }
        },
        "required": [
          "model",
          "verdict",
          "obligations",
          "rationale"
        ]
      }
    },
    "devScope": {
      "type": "object",
      "description": "The result when the dependency never reaches users (dev, build or test scope). Independent of the shipping model.",
      "properties": {
        "verdict": {
          "type": "string",
          "enum": [
            "allowed",
            "review",
            "blocked"
          ]
        },
        "rationale": {
          "type": "string"
        }
      },
      "required": [
        "verdict",
        "rationale"
      ]
    }
  },
  "required": [
    "license",
    "byDistributionModel",
    "devScope"
  ]
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded3 tools
verifiedversion not recorded3 tools
verifiedversion not recorded3 tools