# Code2Prompt

Converts a codebase into a single LLM prompt with a source tree, prompt templating and token counting. Available as a CLI, a Python SDK and an MCP server.

Converts a codebase into a single LLM prompt with a source tree, prompt templating and token counting. Available as a CLI, a Python SDK and an MCP server. Category: Code search and context. Developer: code2prompt. Its GitHub repository has 7,774 stars.

Price: free. Site: https://code2prompt.dev.

Also on the [web page](https://aicodingtools.fyi/apps/code2prompt).
