Sponsored by Deepsite.site

SCANOSS MCP Server

Created By
matiasdaloia8 months ago
Content

SCANOSS MCP Server

A Model Context Protocol (MCP) server that provides tools for scanning code for open source license compliance using SCANOSS technology.

Overview

The SCANOSS MCP Server integrates SCANOSS's open source scanning capabilities with the Model Context Protocol, allowing Language Models to:

  1. Scan code snippets for undeclared open source content
  2. Check license compliance for combinations of open source licenses
  3. Get actionable insights on open source components in code

By leveraging this server, AI assistants can provide real-time feedback on code they generate or modify, ensuring compliance with open source licenses and reducing legal risks.

Features

  • Code Scanning: Detect open source components in code snippets, including full components, files, and snippets.
  • License Compliance: Analyze combinations of licenses for compatibility issues and compliance requirements.
  • Formatted Results: Receive well-formatted, actionable insights on scan results.
  • Optional API Key: Works with both free (osskb.org) and enterprise SCANOSS instances.

Requirements

  • Python 3.12+
  • uv for Python package management
  • SCANOSS Python SDK
  • MCP Python SDK

Installation

Local Installation

  1. Clone this repository:

    git clone https://github.com/matiasdaloia/scanoss-mcp-server.git
    cd scanoss-mcp-server
    
  2. Install dependencies using uv:

    uv venv
    uv pip install -e .
    
  3. (Optional) Create a .env file in the root directory with your SCANOSS API key:

    SCANOSS_API_KEY=your_api_key_here
    SCANOSS_API_URL=https://your-scanoss-instance.com/api/scan/direct
    

    If no API key is provided, the server will use the free osskb.org service.

Docker Installation

  1. Pull the pre-built Docker image:

    docker pull mcp/scanoss-mcp-server
    

    Or build it yourself:

    docker build -t mcp/scanoss-mcp-server .
    
  2. Run using Docker:

    docker run -i --rm -e SCANOSS_API_KEY=your_key_here -e SCANOSS_API_URL=https://your-scanoss-instance.com/api/scan/direct mcp/scanoss-mcp-server
    

Usage

Running the Server

Locally with uv

Run the MCP server:

uv run scanoss_mcp_server.py

With Docker

docker run -i --rm -e SCANOSS_API_KEY=your_key_here mcp/scanoss-mcp-server

Client Configuration

To use the SCANOSS MCP Server with your AI assistant or MCP client, you'll need to configure it properly:

For Claude Desktop

Add the following to your Claude Desktop configuration file (claude_desktop_config.json):

"scanoss-mcp-server": {
  "command": "uv",
  "args": [
    "run",
    "scanoss_mcp_server.py"
  ],
  "env": {
    "SCANOSS_API_KEY": "your_api_key_here",
    "SCANOSS_API_URL": "https://your-scanoss-instance.com/api/scan/direct"
  }
}

Or if using Docker:

"scanoss-mcp-server": {
  "command": "docker",
  "args": [
    "run",
    "-i",
    "--rm",
    "-e", "SCANOSS_API_KEY",
    "-e", "SCANOSS_API_URL",
    "mcp/scanoss-mcp-server"
  ],
  "env": {
    "SCANOSS_API_KEY": "your_api_key_here",
    "SCANOSS_API_URL": "https://your-scanoss-instance.com/api/scan/direct"
  }
}

Available Tools

The server exposes the following tools to MCP clients:

  1. scan_code_snippet: Scans a code snippet for open source components
    • Parameters:
      • code: The code snippet to scan (required)
      • file_name: Name of the file (required)

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
DeepChatYour AI Partner on Desktop
Playwright McpPlaywright MCP server
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Tavily Mcp
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
ChatWiseThe second fastest AI chatbot™
Amap Maps高德地图官方 MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.