pyscn
pyscn is an MCP server that adds developer tools to AI assistants such as Claude Desktop, Claude Code and Cursor. Python code analysis for AI agents: complexity, dead code, clones, coupling, and a health score. It has 1,109 GitHub stars, is released under the MIT license and runs locally with uvx pyscn-mcp.
github.com/ludo-technologies/pyscn (opens in a new tab)
Data as of from the GitHub API and the official MCP registry; description from the project's repository. Report an error
Install pyscn
Generated from the server's MCP registry entry. Replace your-value with your own values.
Claude Desktop
{
"mcpServers": {
"pyscn": {
"command": "uvx",
"args": [
"pyscn-mcp"
],
"env": {
"PYSCN_CONFIG": "your-value"
}
}
}
}Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.
Claude Code
claude mcp add --env PYSCN_CONFIG=your-value --transport stdio pyscn -- uvx pyscn-mcpCursor
{
"mcpServers": {
"pyscn": {
"type": "stdio",
"command": "uvx",
"args": [
"pyscn-mcp"
],
"env": {
"PYSCN_CONFIG": "your-value"
}
}
}
}Project file; use ~/.cursor/mcp.json to enable it in every project.
VS Code
{
"servers": {
"pyscn": {
"type": "stdio",
"command": "uvx",
"args": [
"pyscn-mcp"
],
"env": {
"PYSCN_CONFIG": "your-value"
}
}
}
}Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).
Environment variables
Variables the server reads at startup.
| Name | Required | Description |
|---|---|---|
PYSCN_CONFIG | No | Path to a .pyscn.toml configuration file. Defaults to the usual config discovery (.pyscn.toml, then pyproject.toml) starting from the analyzed directory. |
About pyscn
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.
- architecture-analysis
- clone-detection
- code-complexity
- dependency-analysis
- python
- static-analysis
- dead-code-detection
Similar MCP servers
More developer tools MCP servers
HOL Guard
hashgraph-online/hol-guard
Local-first AI agent security evidence and approval workflows through HOL Guard's stdio MCP server.
Active · last commit Nov 16, 2026
OfficialDeveloper toolsRustBuggregator MCP Server
buggregator/server
One local debugging server, one binary: catches errors, dumps, emails, logs, profiles and HTTP from your app in development.
Active · last commit Nov 11, 2026
OfficialDeveloper toolsGoSafeDep Vet MCP
safedep/vet
Protect your AI agents and IDEs from malicious open-source packages.
Active · last commit Nov 16, 2026
OfficialDeveloper toolsGoInspo
Nutlope/inspo
Real production websites for coding agents: palettes, fonts, fold autopsies and reference JSX.
Maintained · last commit Oct 28, 2026
Developer toolsTypeScriptOpen Design
feimacode/open-design-agent-kit
Make posters, social posts, slides and landing pages with 198 design systems, checks and exports.
Too new to judge · created Sep 19, 2026
Developer toolsHTMLOpenflowkit MCP
openflowkit/openflowkit
Architecture diagrams for your agent: draw on the live OpenFlowKit canvas or edit diagram files.
Active · last commit Nov 7, 2026
Developer toolsTypeScript
How do I install the pyscn MCP server?
Add the command uvx pyscn-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.
Is pyscn free?
The server is open source under the MIT license, so running it is free. It does not declare any required API key.
Is pyscn actively maintained?
The most recent commit was on Nov 14, 2026. The latest release is v1.33.2, published Nov 8, 2026. appsgit only lists MCP servers with a commit in the last six months.