
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A stdio MCP server exposing a local-first prompt library so AI agents can read, search and report on prompts while humans review and approve suggested variations.
PromptBranch MCP server is cataloged as an MCP server attributed to promptbranch. A stdio MCP server exposing a local-first prompt library so AI agents can read, search and report on prompts while humans review and approve suggested variations. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for PromptBranch MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
No. Sharing is human-only; publish and import exist only in the CLI and desktop app, with intentionally no MCP tool for pulling internet content into the library.
A suggested variation is created as a pending version that stays invisible to search and listings and cannot become current until a human approves it in the Suggestions view.
README.md · fdb21d2e76e2 · 采集于 2026-11-13 10:15:57 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A local-first prompt library and version-control system for AI prompts.
PromptBranch is a simple, local-first place to create, organize, test, and improve your AI prompts. Keep prompts on your own computer, track their changes over time, run them with different AI models, and connect your favorite AI tools. You stay in control of your data and approve changes before they are saved.
[!WARNING] Work in progress. PromptBranch is actively evolving. You may encounter bugs or incomplete behavior, and features may change as development continues. Please report non-security issues. Report security concerns privately through the security policy.
PromptBranch desktop is available for macOS, Windows, and Linux. Download an installer for your operating system from GitHub Releases.
The CLI and MCP server are cross-platform too. See the installation guide for setup, including building from source.
The desktop app, CLI and MCP server all open the same database:
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/PromptBranch/library.db |
| Linux | $XDG_CONFIG_HOME/promptbranch/library.db |
| Windows | %APPDATA%\PromptBranch\library.db |
Set PROMPTBRANCH_DB=/path/to.db to point any entry point at a different
library (for example, a separate personal or test library).
If you used a pre-release build (named PromptBuilder or PromptHub), the
app copies your existing library into the new location on first launch and
leaves the original untouched.
It is safe to run the CLI or MCP server while the desktop app is open — they share the database file. The app picks up new runs, notes, ratings and suggestions when you focus the window.
AI coding agents interact with your library through two thin adapters — the CLI and the MCP server — with the same semantics as the app UI. The rule is agents propose, humans approve: agents can read prompts, report runs and notes, and suggest variations, but a suggested variation is created as a pending version that is invisible to search and listings and cannot become current until a human approves it in the app's Suggestions view (left rail, with a pending-count badge; approve optionally sets it as current, reject keeps it permanently inactive).
Onboarding is copy-paste: open Settings → Agent integration for the resolved DB path and a ready-to-paste MCP client config. The npm package also includes an optional skill file that teaches coding agents the fetch → report → suggest workflow.
@promptbranch/mcp is available from npm. Point any stdio-capable MCP client
at it with this configuration:
{
"mcpServers": {
"promptbranch": {
"command": "npx",
"args": ["-y", "@promptbranch/mcp@latest"]
}
}
}
Tools: get_prompt, search_prompts, list_prompts, report_run,
add_note, suggest_variation. Prompts are referenced by title (exact, then
case-insensitive, then unique substring — ambiguous matches return the close
candidates) or by id. suggest_variation returns a pending suggestion; tell
your human to open the Suggestions view to review it.
The CLI provides the same surface for shell pipelines. Run the public package
without a global install as npx -y @promptbranch/cli@latest, or install it
globally with npm install -g @promptbranch/cli@latest to use the shorter
promptbranch command. All commands accept --json for machine-readable
output:
promptbranch list --tag security
promptbranch get "security-audit" > /tmp/prompt.md
promptbranch search "sql injection"
promptbranch report-run --prompt "security-audit" --tool kimi-cli --model k2 --outcome 4 --summary "found 2 issues"
promptbranch add-note --prompt "security-audit" --body "works well on small diffs"
promptbranch suggest --prompt "security-audit" --file improved.md --rationale "tighter scope"
promptbranch suggestions # pending review queue
promptbranch db-path # prints the resolved database path
Sharing is human-only — publish and import exist only here and in the
desktop app; there is intentionally no MCP tool for pulling internet content
into the library.
PromptBranch can run prompts against real models and use AI to draft or improve prompts. Supported providers: OpenAI, Anthropic, Google, and any OpenAI-compatible endpoint (Ollama, LM Studio, …) via a custom base URL.
Setup is one step: Settings → AI Providers → Connect a provider → paste the
API key. PromptBranch encrypts it using your operating system's secure
credential storage and only decrypts it when needed for a model request. The
connection is tested automatically as part of connecting, and the model catalog
refreshes in the background. If OPENAI_API_KEY, ANTHROPIC_API_KEY or
GOOGLE_GENERATIVE_AI_API_KEY is set in the environment, PromptBranch offers
a one-click Use environment key connect for that provider.
Once connected, every catalog model of the provider is immediately usable — there is no model-selection step in Settings. Models are picked from the searchable model picker next to the Run button (filter as you type, grouped by provider, with context-window/pricing hints and per-prompt recents). Individual models can be hidden from the picker's hover action; everything else just works. OpenAI-compatible endpoints have no catalog, so their model ids are declared inline on the provider's settings row.
The model catalog comes from models.dev and is cached locally. Browsing and editing stay offline; catalog refreshes, model runs, and sharing use the network. A failed catalog refresh keeps serving the stale cache.
Each Run executes the prompt (after {{variable}} substitution) against up to
6 models concurrently and records one entry per model — provider, model,
status, output or error, latency, token usage and estimated USD cost from
catalog pricing — grouped together for the compare view.
Snapshots are immutable and live behind unguessable /p/<id> URLs on the
official portal, https://promptbranch.app.
promptbranch://import?url= deep links or
promptbranch import; the snapshot becomes a new local prompt with its
tags and a provenance note. A shared history remains viewable on the portal;
it is not recreated as a local version chain.promptbranch://import-markdown?url=. The
desktop app fetches only after the user chooses Fetch Markdown, then
previews the content before creating a new local prompt. The source must be
reachable over public HTTPS. The sharing guide
includes an HTML button example that website owners can copy and customize.Sync your library across your own computers, directly, with no server and no account: devices discover each other on the local network via mDNS, authenticate with a one-time pairing code, and exchange incremental record-level changes over mutually-pinned TLS. Enable it in Settings → Sync; a status line in the left-rail footer shows Synced / Syncing / Waiting for devices at a glance.
Browse the full documentation in docs/.
Want to contribute? Read CONTRIBUTING.md.
PromptBranch is released under the MIT License. The third-party software bundled with the app is listed in THIRD_PARTY_NOTICES.md and is also viewable in-app via About → Open Source Licenses.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for PromptBranch MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/promptbranch)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.