LicenGuard
Verified Safeby 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
cd servers/mcp-licenguard && npm install && API_URL=http://localhost:4000 OPENAI_API_KEY=sk-... npm run devEnvironment 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
core
An extensible IDE framework for building web-based, desktop (Electron), and AI-native development environments, providing core UI components like message notifications and modal dialogues.
chunkhound
Provides local-first codebase intelligence, extracting architecture, patterns, and institutional knowledge for AI assistants.
dependency-management-mcp-server
Connects AI assistants to Sonatype's dependency management and security intelligence platform for real-time insights into open source security, license compliance, and dependency health within the development workflow.
package-registry-mcp
Enables AI assistants and agents to search various package registries (NPM, Cargo, NuGet, PyPI, Go) and retrieve up-to-date package information.