POM MCP Server
Generates PowerPoint presentations from POM format JSON, enabling AI agents to create .pptx files directly from natural language instructions.
README
POM MCP Server
PowerPointプレゼンテーションをPOM (PowerPoint Object Model) 形式のJSONから生成するMCPサーバーです。
AIエージェント(Claude)が自然言語の指示から直接PowerPointファイルを作成できるようになります。
特徴
- 🎨 宣言的なレイアウト: Flexbox風のレイアウトシステム(vstack/hstack)
- 🤖 AI最適化: AIエージェントが自由にスライド構造を設計可能
- 📐 型安全: TypeScriptとZodによるスキーマ検証
- 🎓 組み込みガイド: AIがPOM形式を学習できるプロンプト機能
- 🎯 シンプルなAPI: 2つのツールで完結
セットアップ
必要要件
- Node.js 18以上
- Claude Desktop
インストール手順
1. プロジェクトディレクトリを作成
mkdir mcp-pom-pptx
cd mcp-pom-pptx
2. 依存関係のインストールとビルド
# srcディレクトリがない場合は作成
mkdir -p src
# 依存関係をインストール
npm install
# ビルド
npm run build
ビルドが成功すると dist/index.js が生成されます。
3. Claude Desktopに設定
~/Library/Application Support/Claude/claude_desktop_config.json を編集:
{
"mcpServers": {
"mcp-pom-pptx": {
"command": "node",
"args": [
"/絶対パス/mcp-pom-pptx/dist/index.js"
]
}
}
}
使い方
基本的な使い方
Claude Desktopで以下のように話しかけるだけです:
「営業プレゼン用のPowerPointを作成してください。
1枚目: タイトルスライド(会社名: ABC株式会社、タイトル: 新製品提案)
2枚目: 製品の3つの特徴を箇条書きで
3枚目: 価格表(3プラン)
ファイル名は proposal.pptx で保存してください。」
Claudeが自動的に:
- POM形式のJSONを生成
- スライドレイアウトを設計
- PowerPointファイルを作成
より詳細な指示の例
「技術プレゼンを作成。
- スライドサイズ: 1920x1080
- 全体のテーマカラー: ダークブルー
- 5枚構成
1. タイトル: システムアーキテクチャ
2. 現状の課題(箇条書き3点)
3. 提案ソリューション(2カラム比較)
4. 実装ロードマップ(表形式)
5. まとめ
tech-presentation.pptx として保存」
提供するツール
1. create_powerpoint
POM形式のJSONからPowerPointファイルを生成します。
パラメータ:
slides(必須): POMNode配列(各スライドの定義)outputPath(必須): 出力ファイルパス (.pptx)width(オプション): スライド幅(デフォルト: 1280px)height(オプション): スライド高さ(デフォルト: 720px)
2. validate-pom-slide
POMスライドの構造を検証します。
パラメータ:
slide(必須): 検証するPOMNodeオブジェクト
提供するプロンプト
AIエージェントが自動的に参照する知識ベース:
1. get-pom-guide
POM形式の完全ガイド
- 全ノードタイプの説明
- プロパティの詳細
- レイアウトのコツ
- ベストプラクティス
2. get-slide-example
具体的なスライド作成例
- タイトルスライド
- コンテンツスライド(箇条書き)
- 2カラム比較スライド
- 表付きスライド
POM形式の概要
ノードタイプ
POMでは以下のノードタイプを組み合わせてスライドを構築します:
レイアウトノード(コンテナ):
box- 単一の子要素を持つコンテナvstack- 子要素を縦方向に並べるhstack- 子要素を横方向に並べる
コンテンツノード:
text- テキスト要素image- 画像要素table- 表要素shape- 図形要素(矩形、楕円など)
簡単な例
タイトルスライド:
{
"type": "box",
"padding": 50,
"h": "100%",
"backgroundColor": "0F172A",
"children": {
"type": "vstack",
"justifyContent": "center",
"alignItems": "center",
"gap": 20,
"children": [
{
"type": "text",
"text": "プレゼンテーションタイトル",
"fontPx": 60,
"color": "FFFFFF",
"bold": true
},
{
"type": "text",
"text": "サブタイトル",
"fontPx": 30,
"color": "E2E8F0"
}
]
}
}
詳細な仕様は、Claudeが get-pom-guide プロンプトから自動的に学習します。
ディレクトリ構成
mcp-pom-pptx/
├── src/
│ └── index.ts # メインコード
├── dist/ # ビルド出力(自動生成)
│ └── index.js
├── package.json
├── tsconfig.json
└── README.md
ライセンス
MIT
クレジット
- POM by hirokisakabe
- Model Context Protocol by Anthropic
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.