# py-ast-mcp

> py-ast-mcp — gclluch-py-ast-mcp. Use this tool when you need to analyze Python source code structure and complexity, solving problems such as optimizing code performance, detecting dead code, and identifying potential bugs. It takes Python source code as input and outputs detailed metrics, including function signatures, call graphs, and cyclomatic complexity. Use py-ast-mcp to improve code quality and maintainability in Python development projects.

Canonical page: https://skillsregistry.net/skills/gclluch-py-ast-mcp  
JSON: https://api.skillsregistry.net/v1/skills/gclluch-py-ast-mcp

## Description

Provides deep structural analysis of Python source code via AST, including function signatures, call graphs, cyclomatic complexity, code smells, dead code detection, and protocol conformance.

## Trust

- **Trust score (0–1):** 0.66
- **Verification tier:** scanned
- **Last scanned:** 2026-08-29

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** other
- **Updated:** 2026-08-29

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/eis0ky1zmu)
- **Repository:** <https://github.com/gclluch/py-ast-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "gclluch-py-ast-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/gclluch-py-ast-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/gclluch-py-ast-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
