Python code analysis for AI agents: complexity, dead code, clones, coupling, and a health score.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
English | ๆฅๆฌ่ช | ็ฎไฝไธญๆ | Franรงais
Code quality analysis for Python in the age of AI coding.
Building with Cursor, Claude, or ChatGPT? pyscn keeps AI-generated code maintainable with structural analysis.
Working with other languages? pyscn is part of polyscan โ code quality analyzers for JavaScript/TypeScript and more
One command scores your whole codebase (0-100 with an A-F grade) and generates an HTML report that shows what to fix first.
pyscn looks at your code from five angles:
100,000+ lines/sec โข Built with Go + tree-sitter
pyscn ships Agent Skills that teach AI coding agents when and how to run each analysis: health checks, refactoring, architecture review, and CI-friendly reports.
This installs the Skills into your project. They work with Claude Code, Cursor, Codex, Gemini CLI, and many other agents (add --agent cursor etc. to target one, --global for all projects).
Then just ask your agent:
"Analyze the code quality of the app/ directory"
"Find duplicate code and help me refactor it"
"Show me complex code and help me simplify it"
For tighter integration, the bundled pyscn-mcp server exposes the same analyses as MCP tools to Claude Code, Cursor, ChatGPT, and other MCP clients.
Claude Code plugin (sets up the MCP server and the Skills together):
Manual setup for Claude Code:
Cursor / Claude Desktop: add to your MCP settings (~/.config/claude-desktop/config.json or Cursor settings):
Dive deeper in mcp/README.md for setup walkthroughs and docs/MCP_INTEGRATION.md for architecture details.
macOS Intel (x86_64): PyPI wheels are built for Apple Silicon only (the Intel wheel was dropped in v1.5.1), so
uvx,pipx,uv, andpipcannot install pyscn on Intel Macs. Usebrew install pyscnorgo install github.com/ludo-technologies/pyscn/cmd/pyscn@latestinstead.
pyscn analyzeRun comprehensive analysis with HTML report
pyscn checkFast CI-friendly quality gate
pyscn initCreate configuration file
๐ก Run
pyscn --helporpyscn <command> --helpfor complete options
Create a .pyscn.toml file or add [tool.pyscn] to your pyproject.toml:
โ๏ธ Run
pyscn initto generate a full configuration file with all available options
Install Polyscan on GitHub โ it files a weekly health score as a GitHub Issue. Free for every repository.
๐ pyscn documentation site โ installation, rule catalog, CLI reference, configuration, output specification
For contributors: Development Guide โข Architecture โข Testing
For commercial support, custom integrations, or consulting services, contact us at contact@ludo-tech.org
MIT License โ see LICENSE
Built with โค๏ธ using Go and tree-sitter
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pyscn)<a href="https://allmcps.com/mcp/pyscn"><img src="https://allmcps.com/api/badge/pyscn?style=directory" alt="Pyscn on AllMCPs" /></a>