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.4.tar.gz (27.9 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.4-py3-none-any.whl (29.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cleanlib_mcp_server-0.4.4.tar.gz
  • Upload date:
  • Size: 27.9 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.4.tar.gz
Algorithm Hash digest
SHA256 6eae73c67c2d0aa994c7dbc81f7d86aca05d3cf275d26689fe2738d306c8edca
MD5 74660eb59902feefb5b13dbccef8e379
BLAKE2b-256 70b504c2b25d76c89c9036f364d435438e21c31c17bb087ae27dba667480028d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cleanlib_mcp_server-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 40dd4adc6b6941088ff38701da4f70d27d7860aa94c29127cad9438ff63947ac
MD5 88f50b51a3a5900ef937bbac277cf398
BLAKE2b-256 887019898f5b00ccc2da8aae977f0531439eeb38ee1d0cb4fe9b1d5bc2e4bb46

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