# Complexipy MCP Server

> Use this tool when you need to analyze the cognitive complexity of Python code and identify functions that exceed complexity thresholds. It solves problems related to code maintainability, readability, and scalability by scanning files and directories. The tool takes Python code as input and outputs complexity metrics, making it ideal for use in code review and optimization contexts.

Canonical page: https://skillsregistry.net/skills/onenightcarnival-complexipy-mcp  
JSON: https://api.skillsregistry.net/v1/skills/onenightcarnival-complexipy-mcp

## Description

Analyzes cognitive complexity of Python code by scanning files and directories to identify functions exceeding complexity thresholds using the complexipy library.

## Trust

- **Trust score (0–1):** 1.00
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** file-system
- **Updated:** 2026-09-19

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/idk1onpq2e)
- **Repository:** <https://github.com/Onenightcarnival/complexipy-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": "onenightcarnival-complexipy-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/onenightcarnival-complexipy-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/onenightcarnival-complexipy-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
