PromptVault MCP Server
PromptVault
オープンソースのプロンプトバージョン管理、評価、管理をMCPサーバーとして提供します。
PromptVaultとは?
PromptVaultは、AIエンジニアやプロンプトエンジニア向けのセルフホスト型ツールで、以下のことが可能です:
プロンプトをコードのようにバージョン管理(不変のバージョンとロールバック対応)
LLMプロバイダー(OpenAI、Anthropic、Ollama)を使用してデータセットに対してプロンプトを評価
MCPサーバー、CLI、REST APIを通じてすべてにアクセス
Related MCP server: Langfuse Prompt Management MCP Server
クイックスタート
インストール(クローン不要)
pip install pvltまたはuv/pipxを使用:
uvx --from git+https://github.com/KrishBnsl/promptVault.git promptctl --helpまたはDockerを使用:
docker run -p 8000:8000 -e GEMINI_API_KEY=your-key ghcr.io/krishbnsl/pvltソースから
git clone https://github.com/KrishBnsl/promptVault.git
cd promptVault
uv sync
cp .env.example .env
# Edit .env with your API keys最初のプロンプトを作成
promptctl prompt create summarize \
--content "Summarize the following article in {tone} style:\n\n{article}" \
--description "Summarizes an article" \
--variables '{"tone": "concise", "article": "string"}' \
--model-config '{"provider": "openai", "model": "gpt-4o-mini", "temperature": 0.2}' \
--tags "summarization,content"データセットを作成
echo '{"input": {"article": "AI is transforming..."}, "expected_output": "AI transforms..."}' > dataset.jsonl
promptctl dataset create article-summaries --file dataset.jsonl評価を実行
promptctl eval run summarize --dataset article-summariesMCP(Claude Desktop)で使用
Claude Desktopの設定に追加:
{
"mcpServers": {
"pvlt": {
"command": "promptctl",
"args": ["serve"]
}
}
}CLIリファレンス
promptctl prompt create <name> --content <text> [options]
promptctl prompt list [--tags TAGS] [--limit N]
promptctl prompt show <name> [--version N]
promptctl prompt versions <name>
promptctl prompt diff <name> <version-a> <version-b>
promptctl prompt rollback <name> --version N
promptctl dataset create <name> --file <jsonl-or-json>
promptctl dataset list
promptctl eval run <prompt-name> --dataset <dataset-name>
promptctl eval report <evaluation-id>
promptctl serve [--stdio|--http] [--port 8000]
promptctl web [--port 8080]MCPツール
ツール | 説明 |
| 初期バージョンで新しいプロンプトを作成 |
| プロンプトのバージョンを取得 |
| すべてのプロンプトを一覧表示 |
| プロンプトのすべてのバージョンを一覧表示 |
| 2つのプロンプトバージョンの差分を表示 |
| 以前のバージョンにロールバック |
| データセットを作成 |
| データセットを一覧表示 |
| アイテムを含むデータセットを取得 |
| 評価を実行 |
| 評価ステータスを確認 |
| 評価レポートを取得 |
| 2つの評価を比較 |
REST API
ベースURL: http://localhost:8000/api
# Create a prompt
curl -X POST http://localhost:8000/api/prompts \
-H "Content-Type: application/json" \
-d '{"name": "test", "content": "Hello {name}"}'
# List prompts
curl http://localhost:8000/api/prompts
# Get a prompt
curl http://localhost:8000/api/prompts/test設定
.env.example を .env にコピーして設定:
PROMPTVAULT_DB_PATH=./promptvault.db
PROMPTVAULT_DEFAULT_PROVIDER=openai
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GEMINI_API_KEY=...
OLLAMA_BASE_URL=http://localhost:11434アーキテクチャ
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ MCP Client │ │ CLI │ │ REST Client │
│ (Claude etc) │ │ (promptctl) │ │ (curl, apps) │
└──────┬──────┘ └──────┬──────┘ └──────┬──────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────┐
│ PromptVault Core │
│ ┌─────────────┐ ┌──────────────┐ ┌──────────┐ │
│ │ Versioning │ │ Evaluation │ │ Storage │ │
│ │ Engine │ │ Engine │ │ Layer │ │
│ └─────────────┘ └──────────────┘ └──────────┘ │
│ ┌──────────────────────────────────────────┐ │
│ │ SQLite Database (local) │ │
│ └──────────────────────────────────────────┘ │
└─────────────────────────────────────────────────┘ドキュメント
📖 完全なドキュメント: https://krishbnsl.github.io/promptVault/
ライセンス
MITライセンス - 詳細は LICENSE を参照してください。
Available Tools
14 toolsdataset_createC
Create a new dataset from items
Inputs: name (required), items (required), description. Returns: result
dataset_getC
Get a dataset with items
Inputs: name (required). Returns: result
dataset_listC
List datasets
Inputs: limit, offset. Returns: result
evaluation_compareC
Compare two evaluation runs
Inputs: evaluation_id_a (required), evaluation_id_b (required). Returns: result
evaluation_reportC
Get full evaluation report with results and metrics
Inputs: evaluation_id (required). Returns: result
evaluation_runC
Run evaluation of a prompt version against a dataset
Inputs: prompt_name (required), dataset_name (required), version, model_config. Returns: result
evaluation_statusC
Check status of an evaluation run
Inputs: evaluation_id (required). Returns: result
prompt_createC
Create a new prompt with initial version
Inputs: name (required), content (required), tags, variables, +3 more. Returns: result
prompt_diffC
Show diff between two prompt versions
Inputs: name (required), version_a (required), version_b (required). Returns: result
prompt_getC
Retrieve a specific version of a prompt
Inputs: name (required), version. Returns: result
prompt_listC
List all prompts
Inputs: tags, limit, offset. Returns: result
prompt_rollbackC
Rollback to a previous prompt version
Inputs: name (required), version (required), commit_message. Returns: result
prompt_updateC
Create the next immutable version of a prompt
Inputs: name (required), content (required), variables, model_config, +1 more. Returns: result
prompt_versionsC
List all versions of a prompt
Inputs: name (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct resource+action combination, and the group prefixes (evaluation_/prompt_/dataset_) make boundaries clear. The only mild overlaps are evaluation_status vs evaluation_report (lightweight check vs full payload) and prompt_get vs prompt_versions, but descriptions distinguish them adequately.
All 14 tools follow a strict noun_action snake_case pattern with consistent resource prefixes (evaluation_, prompt_, dataset_). The verbs are predictable (create, get, list, run, compare, diff, rollback), so an agent can guess names reliably.
14 tools is well within the sweet spot and each one maps to a concrete operation in the prompt-versioning lifecycle. Nothing feels padded: the 4 evaluation tools, 7 prompt tools, and 3 dataset tools each earn their place.
Prompt versioning is well covered (create, update, get, list, versions, diff, rollback) and evaluation has run/status/report/compare. However, the dataset surface stops at create/list/get with no update or delete, and there is no prompt delete/archive operation, leaving lifecycle dead ends.
Maintenance
Related MCP Connectors
Team prompt library with version control and reviews. Save, search and reuse prompts via MCP.
Manage, version, and publish LLM prompts with blocks, variables, and evaluations.
Your prompt library in any MCP client: list, fetch, save and version prompt templates.
Generate contextual prompts and reusable agent skills, evaluate prompts with the 16-dimension Prompt Score, and manage saved work in PromptDrive. Twelve MCP tools also provide authorized access to private Memory for source-grounded answers. Connect over Streamable HTTP using OAuth 2.1 and PKCE. Generation consumes account quota and automatically saves successful results; Memory access follows account permissions and plan limits.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables storage, versioning, and retrieval of prompts with rich metadata via MCP tools, supporting stdio and SSE transports.33ISC
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to list, retrieve, compile, create, and update prompts, including managing versions, labels, tags, configuration, and production promotion.MIT
- FlicenseNot gradedqualityAmaintenanceEnables users to list and retrieve Langfuse prompts, compile them with supplied variables, and expose prompt management capabilities to MCP clients.-
- FlicenseNot gradedqualityAmaintenanceEnables users to list, retrieve, and compile stored prompt templates with supplied variables through MCP prompts and equivalent tools.-