fuck-u-code is a code quality analysis tool designed to expose shitty code quality with sharp but humorous feedback. It uses AST parsing via tree-sitter for accurate syntax analysis, supports 14 programming languages, and performs seven quality checks: complexity, size, comments, error handling, naming, duplication, and structure. Provides an overall score from 0 to 100 (higher is better) and a per-file Shit-Gas Index (higher is worse). Supports AI code review with OpenAI-compatible, Anthropic, DeepSeek, Gemini, and Ollama providers, multiple output formats (colored terminal, Markdown, JSON, HTML), and i18n (English, Chinese, Russian). As an MCP server, it can be invoked by AI tools like Claude Code, Cursor, Windsurf, etc. Code analysis runs fully offline, so your code never leaves your machine.
Setup
Install globally: npm install -g eff-u-code. Then configure MCP automatically: fuck-u-code mcp-install (interactive) or specify client: fuck-u-code mcp-install claude / cursor. For manual configuration, add an mcpServers entry to your client config file. For example, in Claude Code's ~/.claude.json or project .mcp.json, add {"mcpServers":{"fuck-u-code":{"command":"fuck-u-code-mcp"}}}. Alternatively, you can use npx: set command to "npx" and args to ["-y", "eff-u-code-mcp"].
{
"mcpServers": {
"fuck-u-code": {
"command": "fuck-u-code-mcp"
}
}
}
Use cases
Quickly assess code quality across a repository to identify files needing improvement.
Integrate into CI to automatically generate code quality reports.
Invoke from IDE or AI tools for on-the-fly code review.
Use AI models to perform in-depth review of worst-scoring files and get improvement suggestions.