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,096 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
SafeDep Vet MCP
safedep/vet
Protect your AI agents and IDEs from malicious open-source packages.
Active · last commit Oct 24, 2026
OfficialDeveloper toolsGoHOL Guard
hashgraph-online/hol-guard
Local-first AI agent security evidence and approval workflows through HOL Guard's stdio MCP server.
Active · last commit Oct 26, 2026
OfficialDeveloper toolsPythonLLM Sandbox
vndee/llm-sandbox
Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends.
Active · last commit Oct 26, 2026
Developer toolsPythonOctocode MCP - AI Context Platform
bgauryy/octocode
AI code research platform. Search, analyze, and extract insights from any GitHub repository.
Maintained · last commit Aug 25, 2026
Developer toolsTypeScriptCPU Performance Engineering
usamahz/cpu-performance-engineering
A CPU performance engineering brain: a vetted reading list, benchmarks and cited source passages.
Too new to judge · created Sep 17, 2026
Developer toolsPythonInspo
Nutlope/inspo
Real production websites for coding agents: palettes, fonts, fold autopsies and reference JSX.
Maintained · last commit Oct 1, 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 Oct 26, 2026. The latest release is v1.33.0, published Oct 24, 2026. appsgit only lists MCP servers with a commit in the last six months.