Skip to main content
Glama

deslop-mcp

An MCP (Model Context Protocol) server that detects and removes AI-generated code slop patterns.

Works with Cursor, Claude Desktop, Claude Code, and any MCP-compatible client.

What is "Slop"?

AI-generated code often includes patterns that hurt maintainability:

  • Comment slop: Comments that restate what code does ("This function gets the user")

  • Verbose logging: Entry/exit logs, debug statements left in production

  • Unnecessary error handling: Try-catch that only logs and re-throws

  • Defensive overkill: Redundant null checks in TypeScript

  • Async misuse: async functions with no await

  • Unused imports: Dead code from refactoring

Related MCP server: CodeBase Optimizer

Installation

Option 1: Clone from GitHub

git clone https://github.com/YOUR_USERNAME/deslop-mcp.git
cd deslop-mcp
npm install
npm run build

Option 2: npm (if published)

npm install -g deslop-mcp

Configuration

For Cursor

Add to your Cursor MCP settings (~/.cursor/mcp.json or via Settings > MCP):

{
  "mcpServers": {
    "deslop": {
      "command": "node",
      "args": ["/path/to/deslop-mcp/dist/index.js"]
    }
  }
}

For Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "deslop": {
      "command": "node",
      "args": ["/path/to/deslop-mcp/dist/index.js"]
    }
  }
}

For Claude Code

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "deslop": {
      "command": "node",
      "args": ["/path/to/deslop-mcp/dist/index.js"]
    }
  }
}

Tools

deslop_analyze

Analyze code files for slop patterns.

deslop_analyze({ path: "./src" })
deslop_analyze({ path: "./src/utils/api.ts" })

Returns a detailed report with:

  • Issues grouped by category

  • Priority levels (high/medium/low)

  • Line numbers for each issue

  • Auto-fixable indicators

deslop_fix

Automatically fix auto-fixable issues.

deslop_fix({ path: "./src" })
deslop_fix({ path: "./src", dryRun: true })  // Preview without changes

deslop_diff

Analyze only changed files from git.

deslop_diff({})                    // Unstaged changes
deslop_diff({ staged: true })      // Staged changes only

Example Output

# Deslop Analysis Report

## Summary
- 🔴 High Priority: 12 issues
- 🟡 Medium Priority: 5 issues
- 🔵 Low Priority: 2 issues
- 🔧 Auto-fixable: 10 issues

## src/services/userService.ts

### 🔴 Comment Slop (3)

- **Line 45**: Comment restates what code does instead of why
  `// This function gets the user from the database`
  *(auto-fixable)*

- **Line 78**: Commented-out code should be removed
  `// const oldUser = await getOldUser(id);`
  *(auto-fixable)*

### 🔴 Verbose Logging (2)

- **Line 23**: Debug/trace logging should be removed in production
  `console.log("Entering getUserById");`
  *(auto-fixable)*

Supported Languages

  • TypeScript (.ts, .tsx)

  • JavaScript (.js, .jsx)

  • Python (.py)

  • Java (.java)

  • Go (.go)

  • Rust (.rs)

Safety

The tool will never remove:

  • Error logging that captures actual errors

  • Comments explaining business logic or "why"

  • License headers or copyright notices

  • TODO comments with ticket references

License

MIT

Install Server
F
license - not found
A
quality
D
maintenance

Maintenance

–Maintainers
–Response time
–Release cycle
–Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables comprehensive code analysis including quality assessment, security vulnerability detection, refactoring suggestions, complexity calculations, and automatic documentation generation for multiple programming languages.
    Last updated
    5
    5
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Provides comprehensive codebase analysis including project structure evaluation, cross-language duplicate detection, microservices validation, and configuration optimization with AI-powered pattern learning that generates actionable improvement reports.
    Last updated
    MIT
  • F
    license
    A
    quality
    B
    maintenance
    AI-powered code review tool that detects AI-generated code defects invisible to traditional linters — hallucinated packages, deprecated APIs, cross-file contradictions, hidden security anti-patterns, and over-engineering. Works as a standalone CLI, GitHub Action, or MCP server. Supports TypeScript, Python, Java, Go, and Kotlin. Free for individuals, no API key required.
    Last updated
    4
    32
  • A
    license
    -
    quality
    B
    maintenance
    Enables AI assistants and developers to analyze code for language-specific best practices and idiomatic patterns across programming languages, CI automation, and configuration formats.
    Last updated
    2
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/collin-ho/deslop-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server