mcp-blog
MCP server for blog admin API enabling preview, publish, list, and delete blog posts from Claude Code via stdio transport.
README
mcp-blog
Claude Code / Cursor から自然言語でブログ記事を投稿できる MCP サーバーです。
できること
自分のプロジェクトで作業しながら、Claude に話しかけるだけでブログに投稿できます。
「今日のデバッグ作業をブログ記事にして投稿して」
「記事の一覧を見せて」
「slug が xxx の記事を削除して」
仕組み
あなた(Claude Code / Cursor)
↓ 自然言語で指示
MCP サーバー(このパッケージ)
↓ HTTPS
ブログ API(Lambda)
↓
S3 に保存 → GitHub Actions が起動 → サイト自動更新(1〜3分)
セットアップ
必要なもの
- Node.js v20 以上
- ブログ API キー(管理者から発行)
設定ファイルに追加
Claude Code (~/.claude/settings.json) または Cursor (~/.cursor/mcp.json) に追記します。
{
"mcpServers": {
"blog": {
"command": "npx",
"args": ["-y", "github:MasatoshiSano/mcp-blog"],
"env": {
"BLOG_API_ENDPOINT": "https://dxbqlfvrescw1.cloudfront.net/api",
"BLOG_API_KEY": "your-api-key"
}
}
}
}
設定後は Claude Code / Cursor を再起動すると使えるようになります。
ツール一覧
| ツール | 説明 |
|---|---|
blog_preview_post |
markdown を渡すと AI がフロントマターを自動補完・本文を校正してプレビューを返す |
blog_publish_post |
記事を S3 に保存して GitHub Actions のビルドをトリガーする |
blog_list_posts |
記事一覧を取得する(公開済み・下書きでフィルタ可能) |
blog_get_post |
指定 slug の記事 Markdown を取得する |
blog_delete_post |
記事を削除してビルドをトリガーする |
環境変数
| 変数名 | 必須 | 説明 |
|---|---|---|
BLOG_API_ENDPOINT |
✅ | ブログ API のベース URL(例: https://xxx.cloudfront.net/api) |
BLOG_API_KEY |
✅ | 認証用 API キー |
開発者向け: ローカルビルド
cd mcp-blog
npm install
npm run build
# → dist/index.js が生成される
ローカルビルドを使う場合は npx の代わりに直接 node で指定します:
{
"mcpServers": {
"blog": {
"command": "node",
"args": ["/absolute/path/to/mcp-blog/dist/index.js"],
"env": { ... }
}
}
}
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.