Skip to main content
Glama

mcp-blog

ブログ管理API用のMCPサーバー。Claude Codeからstdioトランスポート経由でブログ記事のプレビュー、公開、一覧表示、削除を行うためのツールを提供します。

ツール

ツール

説明

blog_preview_post

AIによるフロントマターの補完と本文構造の修正。修正後のMarkdown、差分、Unsplash画像提案を返します。

blog_publish_post

修正されたMarkdownをS3に保存し、GitHub Actionsの再ビルドをトリガーします。

blog_list_posts

publishedフィルターとlimitを指定して記事一覧を取得します。

blog_delete_post

スラッグを指定して記事を削除し、再ビルドをトリガーします。

Related MCP server: substack-mcp

セットアップ

ローカルパス (開発用)

// ~/.claude/settings.json
{
  "mcpServers": {
    "blog": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-blog/dist/index.js"],
      "env": {
        "BLOG_API_ENDPOINT": "https://dxbqlfvrescw1.cloudfront.net/api",
        "BLOG_API_KEY": "<your-api-key>"
      }
    }
  }
}

GitHub (将来的な配布)

// ~/.claude/settings.json
{
  "mcpServers": {
    "blog": {
      "command": "npx",
      "args": ["-y", "github:sano/mcp-blog"],
      "env": {
        "BLOG_API_ENDPOINT": "https://dxbqlfvrescw1.cloudfront.net/api",
        "BLOG_API_KEY": "<your-api-key>"
      }
    }
  }
}

環境変数

変数

必須

説明

BLOG_API_ENDPOINT

はい

ブログAPIのベースURL (例: https://dxbqlfvrescw1.cloudfront.net/api)

BLOG_API_KEY

はい

HMAC認証用のAPIキー

ビルド

npm install
npm run build

Available Tools

5 tools
blog_delete_postA

指定したスラグの記事を S3 から削除し、GitHub Actions ビルドを発火させる。

Inputs: slug (required).

blog_get_postA

指定したスラグの記事を S3 から読み出し、Markdown 本体と frontmatter を返す。編集ワークフロー (取得→修正→blog_publish_post で上書き) で使う。

Inputs: slug (required).

blog_list_postsB

ブログ記事の一覧を取得する。published フィルタと件数上限を指定可能。

Inputs: published, limit.

blog_preview_postA

AI によるフロントマター補完・本文構造補正を実行してプレビュー結果を返す。publish 前に必ず呼ぶこと。

Inputs: markdown (required), slug, imageMeta.

blog_publish_postB

AI 補正済みの markdown と frontmatter を S3 に保存し、GitHub Actions ビルドを発火させて公開する。

Inputs: slug (required), markdown (required), frontmatter (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct action: delete, get, list, preview, and publish. No overlaps in purpose.

    Naming Consistency5/5

    All tools follow the consistent blog_verb_noun pattern with snake_case (e.g., blog_delete_post, blog_list_posts).

    Tool Count5/5

    Five tools are appropriately scoped for a blog server, covering essential operations without being too few or too many.

    Completeness5/5

    The set covers the full lifecycle: list, get, preview, publish, and delete. No obvious missing operations for a simple blog workflow.

    Related MCP Connectors

    Related MCP Servers