Skip to main content
Glama
KrishBnsl

PromptVault MCP Server

by KrishBnsl

PromptVault

オープンソースのプロンプトバージョン管理、評価、管理をMCPサーバーとして提供します。

Python 3.11+ License: MIT Docs

PromptVaultとは?

PromptVaultは、AIエンジニアやプロンプトエンジニア向けのセルフホスト型ツールで、以下のことが可能です:

  • プロンプトをコードのようにバージョン管理(不変のバージョンとロールバック対応)

  • LLMプロバイダー(OpenAI、Anthropic、Ollama)を使用してデータセットに対してプロンプトを評価

  • MCPサーバー、CLI、REST APIを通じてすべてにアクセス

Related MCP server: PromptingBox 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-summaries

MCP(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ツール

ツール

説明

prompt_create

初期バージョンで新しいプロンプトを作成

prompt_get

プロンプトのバージョンを取得

prompt_list

すべてのプロンプトを一覧表示

prompt_versions

プロンプトのすべてのバージョンを一覧表示

prompt_diff

2つのプロンプトバージョンの差分を表示

prompt_rollback

以前のバージョンにロールバック

dataset_create

データセットを作成

dataset_list

データセットを一覧表示

dataset_get

アイテムを含むデータセットを取得

evaluation_run

評価を実行

evaluation_status

評価ステータスを確認

evaluation_report

評価レポートを取得

evaluation_compare

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 を参照してください。

A
license - permissive license
Not graded
quality - not tested
A
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

View all related MCP servers

Related MCP Connectors

  • Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.

  • Free OpenAI-compatible inference with signed provenance receipts and 3 focused MCP tools.

  • MCP server providing access to the Scorecard API to evaluate and optimize LLM systems.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/KrishBnsl/promptVault'

If you have feedback or need assistance with the MCP directory API, please join our Discord server