#141141st of 227 in MCP servers for developers

code2prompt

Rust CLI that packs a codebase into one formatted LLM prompt

Stars
7.8k
License
MIT
Last commit
Nov 2026
Last release
Dec 2025
Language
Rust
Stars, last 35 weeks+661
24 Mar 2026: 7,113 stars31 Mar 2026: 7,134 stars7 Apr 2026: 7,151 stars14 Apr 2026: 7,174 stars21 Apr 2026: 7,187 stars28 Apr 2026: 7,211 stars5 May 2026: 7,227 stars12 May 2026: 7,245 stars19 May 2026: 7,261 stars26 May 2026: 7,279 stars2 Jun 2026: 7,298 stars9 Jun 2026: 7,316 stars16 Jun 2026: 7,340 stars23 Jun 2026: 7,356 stars30 Jun 2026: 7,374 stars7 Jul 2026: 7,397 stars14 Jul 2026: 7,410 stars21 Jul 2026: 7,426 stars28 Jul 2026: 7,446 stars4 Aug 2026: 7,453 stars11 Aug 2026: 7,540 stars18 Aug 2026: 7,550 stars25 Aug 2026: 7,568 stars1 Sept 2026: 7,575 stars8 Sept 2026: 7,596 stars15 Sept 2026: 7,618 stars22 Sept 2026: 7,660 stars29 Sept 2026: 7,681 stars6 Oct 2026: 7,694 stars13 Oct 2026: 7,702 stars20 Oct 2026: 7,713 stars27 Oct 2026: 7,727 stars3 Nov 2026: 7,738 stars10 Nov 2026: 7,756 stars17 Nov 2026: 7,768 stars24 Nov 2026: 7,774 stars

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

Reported, then fixed by a linked change

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
Also in MCP servers for developers
RankProjectScore
#139ocCLI that renders web pages as compact numbered text for coding agents698 stars+170 (+32%) in 30 daysMIT66 out of 100
#140ghidramcpMCP server and Ghidra plugin for LLM-driven reverse engineering12.1k starsApache-2.065 out of 100
#142magic-mcpMCP proxy that gives coding agents 21st.dev UI component search and generation6.7k starsISC65 out of 100
#143jadx-ai-mcpJADX plugin and MCP server that lets LLMs inspect decompiled Android APKs3k starsApache-2.065 out of 100
#144figma-mcp-bridgeFigma plugin and MCP server that reads and edits live Figma files locally Live demo ↗ (opens in a new tab)969 stars+120 (+14%) in 30 daysMIT65 out of 100