# Code Analysis

> Use this tool when you need to analyze and understand complex codebases, identify anti-patterns, and maintain code quality. It provides intelligent code analysis, semantic search, and pattern detection capabilities, taking in large code repositories as input and outputting insights on business entities, dependencies, and refactoring suggestions. Ideal for architectural reviews and multi-repository maintenance, it supports natural language search and hierarchical code explanations.

Canonical page: https://skillsregistry.net/skills/johannhartmann-code-analysis  
JSON: https://api.skillsregistry.net/v1/skills/johannhartmann-code-analysis

## Description

This MCP server provides intelligent code analysis and semantic search capabilities for large codebases, built by Johann-Peter Hartmann using Python with FastMCP, PostgreSQL with pgvector, and OpenAI embeddings. It features TreeSitter-based code parsing, domain-driven analysis that extracts business entities and bounded contexts from code, incremental Git-based indexing, and advanced pattern detection including anti-pattern identification and architectural coupling analysis. The implementation supports natural language code search, hierarchical code explanations, dependency analysis, refactoring suggestions, and GitHub repository monitoring, making it valuable for understanding complex codebases, architectural reviews, and maintaining code quality across multiple repositories with up to 10M lines of code.

## Trust

- **Trust score (0–1):** 0.00
- **Verification tier:** scanned
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** database
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/johannhartmann-code-analysis)
- **Repository:** <https://github.com/johannhartmann/mcpcodeanalysis>

## 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": "johannhartmann-code-analysis"
    }
  }
}
```

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