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.5.0.tar.gz (40.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.5.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cleanlib_mcp_server-0.5.0.tar.gz
Algorithm Hash digest
SHA256 b42b23e34a2777fdeeb27a628479e58493b4231d0074566fc0e7009a246060b1
MD5 b30259e2075eb1e3541bce4bd501f430
BLAKE2b-256 57dbb5eb3dd35c544fa493e13236f5147c883922bca3e1df7a70d521e1d204c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cleanlib_mcp_server-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 630d778b7e9c00bef994c3744bea23c0658779d0a08b303ed6e2a1423c593e4e
MD5 77008a1b13112ddbf51c2e1748d18127
BLAKE2b-256 d86ef6d6c2ff7fd2dff9631be455efbac8c46f11a2cfd70cccdff4544f065d38

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