🚀 亡灵MCPサーバー
このサーバーは、Ghost管理コンソールAPIと統合されたモデルコンテキストプロトコル(MCP)サーバーです。Ghost CMSの機能に対するプログラムによるアクセスを可能にし、記事管理、ページ管理、メンバー管理などをサポートします。
✨ 主な機能
- 記事管理(作成、読み取り、更新、削除、検索)
- ページ管理(作成、読み取り、更新、削除)
- タグ管理
- 著者管理
- メンバー管理(作成、読み取り、更新、削除、検索)
- 画像アップロードのサポート
📦 インストール
前提条件
- Node.js(v18以上を推奨)
- Ghost CMSインスタンス
- Ghost管理コンソールAPIキー
インストール手順
npmを使用してパッケージをインストールします。
npm install @mtane0412/ghost-mcp-server
📚 ドキュメント
設定
- Ghost管理コンソールのダッシュボードで、「設定」>「統合」から新しいカスタム統合を作成します。
- 以下の環境変数を設定します。
export GHOST_URL="https://your-ghost-blog.com"
export GHOST_ADMIN_API_KEY="your_admin_api_key"
$env:GHOST_URL="https://your-ghost-blog.com"
$env:GHOST_ADMIN_API_KEY="your_admin_api_key"
または、.env
ファイルを作成します。
GHOST_URL=https://your-ghost-blog.com
GHOST_ADMIN_API_KEY=your_admin_api_key
使用方法
インストールが完了したら、サーバーを起動します。
npx @mtane0412/ghost-mcp-server
利用可能なツール
基本的な使用法
以下に、各ツールの使用方法を示します。
get_posts
記事のリストを取得します。
{
"limit": "number",
"page": "number"
}
get_post
IDを指定して特定の記事を取得します。
{
"id": "string"
}
search_posts
記事を検索します。
{
"query": "string",
"limit": "number"
}
get_pages
ページのリストを取得します。
{
"limit": "number",
"page": "number"
}
get_page
IDを指定して特定のページを取得します。
{
"id": "string"
}
search_pages
ページを検索します。
{
"query": "string",
"limit": "number"
}
create_post
新しい記事を作成します。
{
"title": "string",
"content": "string",
"status": "string",
"template": "string"
}
update_post
既存の記事を更新します。
{
"id": "string",
"title": "string",
"content": "string",
"status": "string"
}
delete_post
記事を削除します。
{
"id": "string"
}
create_page
新しいページを作成します。
{
"title": "string",
"content": "string",
"status": "string",
"template": "string"
}
update_page
既存のページを更新します。
{
"id": "string",
"title": "string",
"content": "string",
"status": "string"
}
delete_page
ページを削除します。
{
"id": "string"
}
create_tag
新しいタグを作成します。
{
"name": "string"
}
update_tag
既存のタグを更新します。
{
"id": "string",
"name": "string"
}
delete_tag
タグを削除します。
{
"id": "string"
}
create_author
新しい著者を作成します。
{
"username": "string",
"email": "string",
"password": "string"
}
update_author
既存の著者を更新します。
{
"id": "string",
"username": "string",
"email": "string",
"password": "string"
}
delete_author
著者を削除します。
{
"id": "string"
}
create_member
新しいメンバーを作成します。
{
"username": "string",
"email": "string",
"password": "string"
}
update_member
既存のメンバーを更新します。
{
"id": "string",
"username": "string",
"email": "string",
"password": "string"
}
delete_member
メンバーを削除します。
{
"id": "string"
}
create_comment
新しいコメントを作成します。
{
"content": "string",
"author_id": "string",
"post_id": "string"
}
update_comment
既存のコメントを更新します。
{
"id": "string",
"content": "string",
"status": "string"
}
delete_comment
コメントを削除します。
{
"id": "string"
}
search_comments
コメントを検索します。
{
"query": "string",
"status": "string",
"limit": "number"
}
upload_file
ファイルをアップロードします。
{
"file": "binary"
}
create_template
新しいテンプレートを作成します。
{
"name": "string",
"content": "string"
}
update_template
既存のテンプレートを更新します。
{
"id": "string",
"name": "string",
"content": "string"
}
delete_template
テンプレートを削除します。
{
"id": "string"
}
generate_thumbnail
サムネイルを生成します。
{
"url": "string",
"width": "number",
"height": "number"
}
resize_image
画像のサイズを変更します。
{
"url": "string",
"width": "number",
"height": "number"
}
add_to_cart
商品をカートに追加します。
{
"product_id": "string",
"quantity": "number"
}
update_cart
カート内の商品を更新します。
{
"cart_id": "string",
"product_id": "string",
"quantity": "number"
}
delete_from_cart
カートから商品を削除します。
{
"cart_id": "string",
"product_id": "string"
}
place_order
注文を送信します。
{
"cart_id": "string",
"payment_method": "string",
"shipping_address": "string"
}
search_products
商品を検索します。
{
"query": "string",
"category": "string",
"price_min": "number",
"price_max": "number"
}
create_category
新しいカテゴリーを作成します。
{
"name": "string",
"description": "string"
}
update_category
既存のカテゴリーを更新します。
{
"id": "string",
"name": "string",
"description": "string"
}
delete_category
カテゴリーを削除します。
{
"id": "string"
}
create_order
新しい注文を作成します。
{
"customer_id": "string",
"order_date": "date",
"total_amount": "number"
}
update_order
既存の注文を更新します。
{
"order_id": "string",
"status": "string",
"shipping_address": "string"
}
delete_order
注文を削除します。
{
"order_id": "string"
}
search_orders
注文を検索します。
{
"query": "string",
"status": "string",
"date_range": "object"
}
create_customer
新しい顧客を作成します。
{
"name": "string",
"email": "string",
"phone": "string"
}
update_customer
既存の顧客を更新します。
{
"customer_id": "string",
"name": "string",
"email": "string",
"phone": "string"
}
delete_customer
顧客を削除します。
{
"customer_id": "string"
}
search_customers
顧客を検索します。
{
"query": "string",
"status": "string"
}
create_blog_post
新しいブログ記事を作成します。
{
"title": "string",
"content": "string",
"author_id": "string"
}
update_blog_post
既存のブログ記事を更新します。
{
"post_id": "string",
"title": "string",
"content": "string",
"status": "string"
}
delete_blog_post
ブログ記事を削除します。
{
"post_id": "string"
}
search_blog_posts
ブログ記事を検索します。
{
"query": "string",
"author": "string",
"status": "string"
}
create_event
新しいイベントを作成します。
{
"title": "string",
"date": "date",
"description": "string"
}
update_event
既存のイベントを更新します。
{
"id": "string",
"title": "string",
"date": "date",
"description": "string"
}
delete_event
イベントを削除します。
{
"id": "string"
}