get_license

Pack: spdx-license · Endpoint: https://gateway.pipeworx.io/spdx-license/mcp

Get metadata + descriptors for one SPDX license id (e.g. “MIT”, “Apache-2.0”, “GPL-3.0-or-later”).

Parameters

NameTypeRequiredDescription
idstringyes

Example call

Arguments

{
  "id": "MIT"
}

curl

curl -X POST https://gateway.pipeworx.io/spdx-license/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_license","arguments":{"id":"MIT"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('get_license', {
  "id": "MIT"
});

More examples

{
  "id": "Apache-2.0"
}

Response shape

FieldTypeDescription
licenseIdstringSPDX license identifier
namestringFull license name
licenseTextstringFull license text
standardLicenseHeaderstring | nullStandard license header if available
seeAlsoarrayCross-reference URLs
isOsiApprovedbooleanWhether OSI approved
isFsfLibrebooleanWhether FSF Free/Libre
isDeprecatedLicenseIdbooleanWhether license is deprecated
referencestringReference URL
referenceNumberintegerReference number
detailsUrlstringDetails URL
Full JSON Schema
{
  "type": "object",
  "properties": {
    "licenseId": {
      "type": "string",
      "description": "SPDX license identifier"
    },
    "name": {
      "type": "string",
      "description": "Full license name"
    },
    "licenseText": {
      "type": "string",
      "description": "Full license text"
    },
    "standardLicenseHeader": {
      "type": [
        "string",
        "null"
      ],
      "description": "Standard license header if available"
    },
    "seeAlso": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Cross-reference URLs"
    },
    "isOsiApproved": {
      "type": "boolean",
      "description": "Whether OSI approved"
    },
    "isFsfLibre": {
      "type": "boolean",
      "description": "Whether FSF Free/Libre"
    },
    "isDeprecatedLicenseId": {
      "type": "boolean",
      "description": "Whether license is deprecated"
    },
    "reference": {
      "type": "string",
      "description": "Reference URL"
    },
    "referenceNumber": {
      "type": "integer",
      "description": "Reference number"
    },
    "detailsUrl": {
      "type": "string",
      "description": "Details URL"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "spdx-license": {
      "url": "https://gateway.pipeworx.io/spdx-license/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build July 6, 2026