pyscn
local MCP serverpyscn is a local MCP server: Python code analysis for AI agents: complexity, dead code, clones, coupling, and a health score. Install it from pypi as pyscn-mcp.
Installation
Terminal
claude mcp add pyscn -e PYSCN_CONFIG=... -- uvx pyscn-mcp
Run in your project folder. Add --scope user to use it everywhere.
Claude Desktop, Cursor & other clients
Add to claude_desktop_config.json or .cursor/mcp.json.
{
"mcpServers": {
"pyscn": {
"command": "uvx",
"args": [
"pyscn-mcp"
],
"env": {
"PYSCN_CONFIG": "..."
}
}
}
}Fill in the environment variables with your own credentials.
What you need
- Runtime: Python with uv (runs with uvx).
- MCP client: Claude Code, Codex, Antigravity, Claude Desktop, Cursor or any other client that speaks MCP over stdio.
- Environment variables:
PYSCN_CONFIG
Summary
Python code analysis for AI agents: complexity, dead code, clones, coupling, and a health score.
pyscn vs similar servers
| Server | Stars | Type | API key | Runtime |
|---|---|---|---|---|
| pyscn | 1,083 | Local | Yes | pypi |
| google-health-mcp | 63 | Local | Yes | npm |
| Repowise | 7,071 | Local | No | pypi |
| sem | 3,364 | Local | No | npm |
| MATLAB MCP Server | 1,587 | Local | No | mcpb |
Questions
It reads one environment variable: PYSCN_CONFIG. Set them in your MCP config before starting the server.
Python with uv (runs with uvx), plus an MCP client such as Claude Code, Codex, Claude Desktop or Cursor.
pyscn is a local MCP server distributed as the pypi package pyscn-mcp.
Run: claude mcp add pyscn -e PYSCN_CONFIG=... -- uvx pyscn-mcp
Run: codex mcp add pyscn --env PYSCN_CONFIG=... -- uvx pyscn-mcp
Similar MCP servers
NameStars
- google-health-mcpio.github.davidmosiah/google-health-mcp63
- Repowisedev.repowise/repowise7,071
- semio.github.Ataraxy-Labs/sem3,364
- MATLAB MCP Serverio.github.matlab/matlab-mcp-server1,587
- CrowdStrike Falcon MCP Serverio.github.CrowdStrike/falcon-mcp258
- google-analytics-mcpio.github.surendranb/google-analytics-mcp242
- gographio.github.ozgurcd/gograph226
- pare-pythonio.github.Dave-London/pare-python138