# code2prompt-mcp

> Use this tool when you need to analyze codebases and generate contextual prompts for AI assistants, making it easier to understand and work with code repositories. It solves problems of code comprehension and AI integration by providing relevant prompts as output, taking in codebases as input. Ideal for use cases where AI assistants require context to provide accurate code-related support.

Canonical page: https://skillsregistry.net/skills/odancona-code2prompt-mcp  
JSON: https://api.skillsregistry.net/v1/skills/odancona-code2prompt-mcp

## Description

An MCP server that analyzes codebases and generates contextual prompts, making it easier for AI assistants to understand and work with code repositories.

## Trust

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

## Facts

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

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/vs5187u9up)
- **Repository:** <https://github.com/ODAncona/code2prompt-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": "odancona-code2prompt-mcp"
    }
  }
}
```

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