Skip to main content
Glama
vjik

My Prompts MCP

by vjik

My Prompts MCP

GitHub Release

Markdownファイルで定義されたユーザープロンプトを、引数付きで提供する軽量なMCPサーバーです。

プロンプトの .md ファイルをリポジトリ(専用のgitリポジトリ、または既存リポジトリ内のフォルダ)で管理し、このMCPサーバーを介してAIクライアントに接続します。これにより、プロンプトのバージョン管理が可能になり、共有やマシン間・チームメンバー間での更新が容易になります。

Cherry Studio での My Prompts MCP 使用例:

https://github.com/user-attachments/assets/32dfa36d-657f-4b9b-8086-c7a00ffe3185

IMPORTANT

このプロジェクトはSergei Predvoditelev によって開発・保守されています。 コミュニティからのサポートが、プロジェクトの活発な開発と適切な保守を支えています。 以下のサービスからプロジェクトを支援できます:

ご支援ありがとうございます ❤️

一般的な使用方法

インストール

GitHub Releases から、お使いのプラットフォーム用のバイナリをダウンロードしてください。

プロンプトの作成

プロンプトディレクトリに .md ファイルを作成します。例として greet.md を作成します:

---
description: Greet a person by name
arguments:
  - name: name
    description: The person's name
    required: true
---
Please greet {{name}} in a friendly and professional way.

MCPクライアントへの接続

MCPクライアントの設定(stdioトランスポート)に以下を追加します:

{
  "mcpServers": {
    "my-prompts-mcp": {
      "command": "/path/to/my-prompts-mcp",
      "args": ["--path=/path/to/prompts"]
    }
  }
}

claude_desktop_config.json ファイルを編集します:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

上記のコードスニペットをファイルに追加し、Claude Desktopを再起動してください。

設定 → MCPサーバー を開き、追加をクリックして、上記スニペットのサーバーコマンドと引数を入力します。

ドキュメント

プロンプトファイルの形式

設定されたディレクトリ内の各 .md ファイルは、プロンプトとして公開されます。デフォルトでは、.md 拡張子を除いたファイル名がプロンプト名として使用されます。

フロントマターフィールド

ファイル上部のオプションのYAMLフロントマターで、プロンプトがクライアントにどのように表示されるかを制御します。

フィールド

必須

説明

name

string

いいえ

プロンプト名。デフォルトは拡張子なしのファイル名。

title

string

いいえ

人間が読みやすいタイトル。

description

string

いいえ

AIクライアントに表示される短い説明。

arguments

list

いいえ

引数のリスト(下記参照)。

引数

引数は2つの形式で定義できます:

シンプル(名前のみ):

arguments:
  - arg_name

フルオブジェクト

arguments:
  - name: arg_name
    description: What this argument means
    required: true

各引数のフィールド:

フィールド

必須

説明

name

string

はい

引数名。

description

string

いいえ

引数の説明。

required

boolean

いいえ

引数が必須かどうか。デフォルトは false

IMPORTANT

引数なし、または引数が1つのプロンプトは、ほぼすべてのMCPクライアントでサポートされています。2つ以上の引数を持つプロンプトは、普遍的にはサポートされていません。複数の引数をサポートしていることが確認されているクライアント:

プレースホルダー

プロンプト本文内で {{arg_name}} を使用します。プレースホルダーは、リクエスト時に提供された引数値に置き換えられます。

プロンプトファイルの例

---
name: name-generator
title: Name Generator
description: Generate a name for a product, project, or company
arguments:
  - name: description
    description: What needs to be named (product, project, company, etc.)
    required: true
  - name: style
    description: Naming style (e.g. minimalist, creative, technical, playful)
    required: false
---
Generate 10 name ideas for: {{description}}.

{{style}}

Requirements for the names:
- Easy to remember and pronounce
- Suitable for use as a domain name
- Unique and distinctive

For each name provide a one-line explanation of why it works.

ライセンス

「My Prompts MCP」はフリーソフトウェアです。BSDライセンスの条項に基づいてリリースされています。 詳細については LICENSE を参照してください。

A
license - permissive license
-
quality - not tested
D
maintenance

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

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

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/vjik/my-prompts-mcp'

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