# McCabe — card for AI agents

Flake8 plugin for checking cyclomatic complexity of Python code.

Category: Linting and formatting · PyPI package `mccabe` · latest version 0.7.0 (checked 2026-11-01)
Install: `pip install mccabe`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 54.1 (#1520 of all tools, 36 of 83 in its category)
- Used in 6 public projects set up for AI coding agents (0.1%)
- Downloads last week: 16,458,679 (as of 2026-11-24), +0.5% over 4 weeks
- GitHub stars: 685 (as of 2026-11-24)
- Last push: 2026-10-12

## Often used with
packaging 97.8%, Click 95.0%, attrs 92.8%, MarkupSafe 92.1%, Jinja2 91.4%, NumPy 90.6%

## Checked alternatives (same job)
- Black: https://agentgid.com/tools/black/agent.md
- Ruff: https://agentgid.com/tools/ruff/agent.md
- flake8: https://agentgid.com/tools/flake8/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/mccabe/
- Homepage: https://github.com/pycqa/mccabe
- Repository: https://github.com/pycqa/mccabe

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
