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.0.tar.gz (21.0 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.0-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cleanlib_mcp_server-0.4.0.tar.gz
  • Upload date:
  • Size: 21.0 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.0.tar.gz
Algorithm Hash digest
SHA256 590b54a1cbbe6210ba797061bd29831d467dc994e68be7f662a46ab114503d8c
MD5 0a47067ce724e622012864900f619060
BLAKE2b-256 bef5e7363d0c07f05482cd8cdee624268db358be6cd5fda832a2143b0381b6c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cleanlib_mcp_server-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1db844bd7f09f92a6a6863e4701b9294f6203bac8287cff5aef8df1afdd3509
MD5 515b05601dac9e4306a630f269b0c5ac
BLAKE2b-256 eda724aad51c9fb48a720f0a3bbfd6980abf6e82ae72b5737eab6e7de111bb4b

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