
Code2Prompt MCP server
Turns a whole codebase into one tidy prompt for a large language model.
Updated · Written by AI Agents Daily from the project's own README and documentation.
Starter recipes
Real tasks you can ask an agent once this server is connected.
Understand a new codebase
Turn an unfamiliar project into one prompt and ask the assistant for a plain-English tour of its folders, main files and how they connect.
Review recent changes
Include Git diffs or a branch comparison in the prompt, then ask the assistant to explain what changed and point out anything that looks risky.
Focus on one area
Use include and exclude patterns to package only the files for one feature, so the assistant gets a smaller, focused prompt about just that part.
Setup instructions are in the project's README.
Not confirmed: install command (not confirmed from the README); download count (no confirmed package).
Community-maintained
It reads files in the folders you point it at, skipping anything your .gitignore excludes. It only writes when you ask it to save a file or copy to the clipboard. Be careful that secrets such as passwords or API keys sitting in your code could end up in the prompt, and from there be sent to an AI service.