Skip to main content

CleanLibrary MCP server — exposes verdict-aware supply-chain risk assessment as Model Context Protocol tools for AI agent workflows

Project description

cleanlib-mcp-server

CleanLibrary MCP (Model Context Protocol) server — expose verdict-aware supply-chain risk assessment as MCP tools, so MCP-capable clients (Claude Code, Claude Desktop, Cursor, GitHub Copilot, and other agents) can fetch package verdicts directly inside the developer's workflow.

Ask your AI assistant "is cors@2.8.4 safe to install?" and it queries CleanLibrary for an ALLOW / DENY / WARN verdict with reasoning and confidence — without leaving the editor.

Tools

Tool Description
cleanlib_fetch_verdict(ecosystem, package, version) Fetch a verdict (ALLOW / DENY / WARN) with reasoning and confidence for a package version
cleanlib_health_check() Report server status + whether a live CleanLibrary backend is configured

Install

pip install cleanlib-mcp-server

Run

cleanlib-mcp-server   # stdio transport (per MCP spec)

Backend modes

  • Connected — when CLEANLIB_ENDPOINT + CLEANLIB_API_KEY are set, the server queries your CleanLibrary deployment for live verdicts.
  • Local fixtures — when no endpoint is configured (or the configured endpoint is unreachable), the server returns bundled demo fixtures so MCP clients always receive useful output.

MCP client integration

The server speaks standard MCP over stdio, so it works with any MCP-capable client. Example configuration (Claude Desktop — ~/Library/Application Support/Claude/claude_desktop_config.json; other clients use the same mcpServers shape):

{
  "mcpServers": {
    "cleanlibrary": {
      "command": "cleanlib-mcp-server"
    }
  }
}

To connect a live CleanLibrary backend, add the endpoint + API key:

{
  "mcpServers": {
    "cleanlibrary": {
      "command": "cleanlib-mcp-server",
      "env": {
        "CLEANLIB_ENDPOINT": "https://cleanapp.clnstrt.dev",
        "CLEANLIB_API_KEY": "clk_..."
      }
    }
  }
}

The same command + env pattern applies to Cursor, GitHub Copilot, and other MCP clients — consult your client's MCP server configuration docs for the exact file location.

Development

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
ruff check src tests
pytest -v

License

Proprietary. See LICENSE for terms. © 2026 CleanStart Inc.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cleanlib_mcp_server-0.4.2.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cleanlib_mcp_server-0.4.2-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

Details for the file cleanlib_mcp_server-0.4.2.tar.gz.

File metadata

  • Download URL: cleanlib_mcp_server-0.4.2.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.7

File hashes

Hashes for cleanlib_mcp_server-0.4.2.tar.gz
Algorithm Hash digest
SHA256 2b08f6a810ecbaa3c6aad40049baa57916a695469f5e719602d6672e41316f91
MD5 1e6d261aef102c1844c9cbf930e1082d
BLAKE2b-256 d831f749bf1050c970e1bb411235f22e67651ff6e0ce8730a376194110de797d

See more details on using hashes here.

File details

Details for the file cleanlib_mcp_server-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for cleanlib_mcp_server-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f42776d3eb95959729b01b6a70133c498f31cd53d057fcb06e9460037aef8c26
MD5 8bb09edd659e7457c36de1582c9a8080
BLAKE2b-256 ae384f5ca0e06e246384bc5ec5e6218667ba2100ee6fefbddc611eedda54da92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page