#141141st of 227 in MCP servers for developers
code2prompt
Rust CLI that packs a codebase into one formatted LLM prompt
Watch puts code2prompt on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.code2prompt is on your watch list. Its new releases and problems show there.
- Stars
- 7.8k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Dec 2025
- Language
- Rust
7,113 on 24 Mar 20267,774 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
code2prompt walks a directory, filters files with glob patterns and .gitignore rules, and renders them through Handlebars templates into a single prompt. Output goes to stdout, a file, or the clipboard, with per-file token estimates and optional Git diffs and logs. It ships as a Rust core library, a CLI with a TUI, a Python SDK (code2prompt-rs) and an MCP server, plus an agent skill.
Who it is for: Developers who paste repository context into LLMs or feed it to agents
Strengths
- Handlebars templates let you customize the prompt layout per use case
- Respects .gitignore and supports include/exclude glob patterns
- Includes Git diffs, logs and branch comparisons in the prompt
- Available as CLI, TUI, Python SDK on PyPI, and MCP server
Weaknesses
- Token count is an estimate; the full rendered prompt is not re-tokenized
- Agent skill needs the CLI installed separately
- Entity map for the skill requires an optional build feature
- Wayland clipboard support needs a feature flag at build time
What it needs
- no GPU
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Known problems
Open now, reported in the last 90 days
- No tag 4.3.0 ↗ (opens in a new tab)1 reactions
Reported, then fixed by a linked change
- Software cannot read files with Chinese characters normally ↗ (opens in a new tab)0 reactions · closed 25 Dec 2025Fixed by Code2prompt should have a SDK with uniform API ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in MCP servers for developers
See all 227| Rank | Project | Score |
|---|---|---|
| #139 | ocCLI that renders web pages as compact numbered text for coding agents | 66 out of 100 |
| #140 | ghidramcpMCP server and Ghidra plugin for LLM-driven reverse engineering | 65 out of 100 |
| #142 | magic-mcpMCP proxy that gives coding agents 21st.dev UI component search and generation | 65 out of 100 |
| #143 | jadx-ai-mcpJADX plugin and MCP server that lets LLMs inspect decompiled Android APKs | 65 out of 100 |
| #144 | figma-mcp-bridgeFigma plugin and MCP server that reads and edits live Figma files locally | 65 out of 100 |