Back to Home
TurkNet icon

LicenGuard

Verified Safe

by TurkNet

Overview

The LicenGuard MCP server acts as an AI agent tool to discover open-source library metadata, analyze dependency files, and calculate license risk scores by bridging a FastAPI backend with LLMs.

Installation

Run Command
cd servers/mcp-licenguard && npm install && API_URL=http://localhost:4000 OPENAI_API_KEY=sk-... npm run dev

Environment Variables

  • API_URL
  • OPENAI_API_KEY
  • LOCAL_LLM_API_URL
  • LOCAL_LLM_API_KEY
  • MONGODB_URI
  • MONGODB_DB

Security Notes

The server uses `subprocess.run` to execute `git clone` with user-provided repository URLs. While `git clone` is generally robust, direct execution of external commands with unsanitized user input (even if partially pre-processed) can introduce a risk of command injection or malicious repository URLs exploiting `git` vulnerabilities. Best practice for `subprocess.run` with untrusted input is to use `shlex.quote` or ensure `shell=False` and all arguments are passed as separate list items, which is mostly done here, but without explicit URL sanitization. Additionally, the FastAPI backend has `allow_origins=['*']` configured for CORS, which is a significant security risk in production environments and should be restricted to known origins. XML parsing for dependency files (e.g., `.csproj`, `packages.config`) uses `xml.etree.ElementTree`, which is generally safe against XXE attacks but could be susceptible to DoS with very large or malformed XML inputs.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-08

Tags

License managementOSS complianceAI agentDependency scanningRisk analysis