Skip to main content

slopspotter

PyPI Python License

Detects AI-hallucinated Python packages before they get installed.

Checks a package against a curated hallucinated packages database and verifies its existence on PyPI in real time, returning a risk assessment with a clear install recommendation.

Installs two tools:

  • slopspotter — CLI for manual package checks
  • slopspotter-mcp — stdio MCP server for AI coding agents

Installation

pip install slopspotter

Usage

slopspotter requests
{
  "package": "requests",
  "exists": true,
  "pypi_unavailable": false,
  "in_slop_db": false,
  "risk_level": "low",
  "safe_to_install": true,
  "recommendation": "PROCEED: 'requests' appears safe to install."
}

Example high risk output:

{
  "package": "cohere-ai-sdk",
  "exists": false,
  "pypi_unavailable": false,
  "in_slop_db": true,
  "risk_level": "high",
  "safe_to_install": false,
  "recommendation": "BLOCK: 'cohere-ai-sdk' does not exist on PyPI and is flagged as a hallucinated package."
}

Exit codes: 0 = low risk, 1 = medium, 2 = high, 3 = critical.

Risk Levels

Level Meaning
low Exists on PyPI, not flagged
medium Flagged with low historical risk
high Not on PyPI (hallucinated), flagged, or PyPI unreachable
critical Flagged and actively installable on PyPI

How It Works

Each package is checked against a curated database of known AI-hallucinated packages and verified against PyPI in real time. The database is maintained by the project author.

MCP Server

slopspotter ships with a stdio MCP server for use with AI coding agents (Claude Code, Cursor, etc.). Once connected, the agent will automatically call assess_package before any install and block unsafe packages.

Claude Code

claude mcp add slopspotter uvx --from slopspotter slopspotter-mcp

Or add manually to your project's .mcp.json:

{
  "mcpServers": {
    "slopspotter": {
      "type": "stdio",
      "command": "uvx",
      "args": ["--from", "slopspotter", "slopspotter-mcp"]
    }
  }
}

If you already have slopspotter installed via pip:

{
  "mcpServers": {
    "slopspotter": {
      "type": "stdio",
      "command": "slopspotter-mcp"
    }
  }
}

Other agents (Cursor, Windsurf, etc.)

Use the same JSON config — most agents support the mcpServers format.

Usage

Once connected, your agent will automatically assess packages before installing. You can also ask directly:

"Is requests safe to install?"

Metadata

Release files for slopspotter 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slopspotter 0.1.1
File Size Uploaded
slopspotter-0.1.1.tar.gz 23.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slopspotter 0.1.1
File Interpreter ABI Platform
slopspotter-0.1.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details

Total release size: 5.9 MB

Release files / slopspotter-0.1.1.tar.gz

Download URL slopspotter-0.1.1.tar.gz
Size 23.1 kB
Tags Source
SHA-256 checksum
How to use checksums
41e3d86e63e3fcf17be19b7f15b63147b57ccb549c7c805eab0194a49f31f409
BLAKE2b-256 checksum
How to use checksums
f6931c51f029be57c20ba1e4f347c65340fce8d1439ddecc053a42bc417e3b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release files / slopspotter-0.1.1-py3-none-macosx_11_0_arm64.whl

Download URL slopspotter-0.1.1-py3-none-macosx_11_0_arm64.whl
Size 5.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
117c9eb76acac500bec6207e012d8b53633191f1307184f8c550fe8d8993ad8c
BLAKE2b-256 checksum
How to use checksums
46a605bd0bc2ec543b47a0dd5ea5fe680811f299100aa6d2add40625c7d911a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.13.1

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page