Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

pyscn

local MCP server

pyscn 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

ServerStarsTypeAPI keyRuntime
pyscn1,083LocalYespypi
google-health-mcp63LocalYesnpm
Repowise7,071LocalNopypi
sem3,364LocalNonpm
MATLAB MCP Server1,587LocalNomcpb

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
  1. google-health-mcpio.github.davidmosiah/google-health-mcp63
  2. Repowisedev.repowise/repowise7,071
  3. semio.github.Ataraxy-Labs/sem3,364
  4. MATLAB MCP Serverio.github.matlab/matlab-mcp-server1,587
  5. CrowdStrike Falcon MCP Serverio.github.CrowdStrike/falcon-mcp258
  6. google-analytics-mcpio.github.surendranb/google-analytics-mcp242
  7. gographio.github.ozgurcd/gograph226
  8. pare-pythonio.github.Dave-London/pare-python138