license-advisor-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@license-advisor-mcpscan my project for license red flags — I'm shipping closed-source SaaS"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Why this exists
Modern builders (especially with AI coding agents) can install dozens of transitive dependencies in seconds.
Security scanners are common.
Contextual licensing alerts are not.
Most tools answer:
What license is this package?
Builders actually need:
I am shipping a paid closed-source SaaS. What in this tree deserves attention before I commercialize?
License Advisor is built for that second question.
Related MCP server: gridwork-license
What it does
You declare how you ship (hosted SaaS, open source, SDK to customers, and so on)
It reads your real dependency tree and license evidence
It returns alerts under those assumptions, with paths and sources - not a fake "94% safe" score, and not a legal verdict
Core rule: you state intent. The rules engine decides what is known. The LLM only explains.
It is not a law firm, not an SCA dashboard clone, and not a package-replacement recommender.
Disclaimer: docs/legal-disclaimer.md
How it works
Your shipping intent Your lockfile / requirements
(project-context.yaml) (npm, pnpm, yarn, or PyPI)
| |
v v
How you plan to ship Dependency graph
+ license evidence
| |
+--------------+---------------+
|
v
Deterministic rules
|
v
Findings: clear / notice /
red_flag / review_required / ...
|
+------------+------------+
| |
v v
CLI MCP
(you in terminal) (Cursor / agents)Every material finding includes package and version, direct vs transitive path, license evidence, rule id, assumptions used, and explicit limits.
Who it is for
Builders shipping SaaS or products with Cursor, Claude Code, and similar tools
Beginners who want a structured second look at licenses
Testers and early adopters evaluating a pre-MVP open-source tool
Supported today: npm, pnpm, Yarn classic (v1), and Python (requirements.txt + .venv, or poetry.lock / uv.lock).
What we do not cover yet: docs/limitations.md
Try it in 5 minutes
Requires Node.js 20+.
git clone https://github.com/license-advisor/license-advisor.git
cd license-advisor
npm install
npm run build
npm linkOption A: guided wizard (recommended)
cd /path/to/your-app
license-advisorConfigure shipping intent, run a scan, then inspect anything flagged.
Option B: two commands
cd /path/to/your-app
license-advisor init --name my-app
license-advisor scanDemo without your own app
From this repository:
npm run dev -- scan \
--path fixtures/saas-agpl/project-context.yaml \
--lockfile fixtures/saas-agpl/package-lock.jsonExpected signal:
[red_flag] agpl-lib@2.1.0
rule: AGPL_NETWORK_001
path: fixture-saas-agpl → plugin-x → agpl-lib
why: closed-source + network-accessible SaaS contextThat means: under those assumptions, this dependency deserves review. It does not mean "this is illegal."
Step-by-step: docs/quickstart.md
Use it with your AI coding agent
Same MCP server everywhere. Node.js 20+ required. No need to clone the repo for everyday use.
Shared launch command:
npx -y --package=github:license-advisor/license-advisor license-advisor-mcpCursor
Or put this in .cursor/mcp.json / Cursor MCP settings:
{
"mcpServers": {
"license-advisor": {
"command": "npx",
"args": [
"-y",
"--package=github:license-advisor/license-advisor",
"license-advisor-mcp"
]
}
}
}Claude Desktop
Edit claude_desktop_config.json (Settings → Developer → Edit Config), then fully quit and reopen Claude:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"license-advisor": {
"command": "npx",
"args": [
"-y",
"--package=github:license-advisor/license-advisor",
"license-advisor-mcp"
]
}
}
}If Claude cannot find npx, set command to the absolute path from which npx / where npx.
Claude Code
claude mcp add --transport stdio license-advisor -- \
npx -y --package=github:license-advisor/license-advisor license-advisor-mcpThen check with /mcp. Docs: code.claude.com/docs/en/mcp
OpenAI Codex
CLI:
codex mcp add license-advisor -- \
npx -y --package=github:license-advisor/license-advisor license-advisor-mcpOr in ~/.codex/config.toml (or project .codex/config.toml):
[mcp_servers.license-advisor]
command = "npx"
args = [
"-y",
"--package=github:license-advisor/license-advisor",
"license-advisor-mcp"
]Docs: Model Context Protocol in Codex
Example asks (any client)
I'm shipping a paid closed-source SaaS. Scan this project for licensing red flags.Explain the highest-priority finding and show the dependency path.Why is package X in my tree, and what license did we conclude?Update my shipping intent for hosted SaaS (commercial, closed source, no customer distribution, network on), then rescan.The agent should call License Advisor tools (scan_project, explain_finding, and related). It should not invent a license table on its own.
Full MCP setup (local link, checkout, troubleshooting): docs/mcp-setup.md
Later: npm publish + official Cursor Marketplace plugin. Community listings can also go on cursor.directory.
How to read the results
Outcome | Meaning in practice |
| No material issue found under your stated plan |
| Manageable obligation (often attribution / NOTICE) |
| Real tension with that plan; review before shipping |
| Automation is not enough; human judgment needed |
| Hard clash with what you declared |
Wrong intent produces wrong alerts. If your product model changes, update project-context.yaml and scan again.
More on tone and outcomes: docs/outcomes.md
Go deeper
Topic | Document |
First successful scan | |
MCP / Cursor setup | |
CLI, ecosystems, repo map, contributing | |
Rule pack | |
Limits | |
Legal framing |
License
This server cannot be deployed
Maintenance
Related MCP Connectors
Open-source licence risk checks for AI coding agents and dependency trees.
- mcpOAuthco.policyforge
Generate, audit, and maintain legal policies that match what your code actually does.
Check if a dependency's license obligates you, based on how you ship. npm, PyPI, Go.
Generate SBOMs, scan vulnerabilities, and analyze dependencies from local projects or Git repos.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables scanning of project dependencies across multiple package managers (npm, pip, cargo, etc.) and generates comprehensive markdown license reports. Supports automatic license detection from package registries with caching for improved performance.-

gridwork-licenseofficial
AlicenseAqualityDmaintenanceScans project dependencies for license compliance, classifying 60+ licenses and detecting conflicts and copyleft risks.418 npm1MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to scan code for security and quality issues and receive machine-readable reports with suggested fixes and verification criteria.63 npm2MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP-compatible AI agents to scan code for leaked secrets, copyleft licenses, unprotected routes, missing privacy policies, and risky card handling before committing or shipping.23 npmMIT