PPT-MCP
# šÆ PPT-MCP
> **Pure Node.js PowerPoint MCP Server** - Create, analyze, and manage PowerPoint presentations with AI assistance
<mcreference link="https://www.npmjs.com/package/pptxgenjs" index="1">1</mcreference> **PPT-MCP** is a Model Context Protocol (MCP) server that provides comprehensive PowerPoint presentation management capabilities using pure JavaScript/TypeScript. Built with **PptxGenJS**, the most popular PowerPoint library for Node.js with 3,500+ GitHub stars.
## ⨠Features
### š **Pure Node.js Stack**
- **Zero Python Dependencies** - 100% JavaScript/TypeScript implementation
- **Cross-Platform** - Works on Windows, macOS, and Linux
- **Modern Architecture** - Built with latest Node.js and TypeScript
- **Lightweight** - Minimal dependencies, fast startup
### š **Core Capabilities**
- **šØ Create Presentations** - Generate professional PowerPoint files with custom templates
- **āļø Edit Existing Files** - Advanced editing capabilities with pptx-automizer for real PowerPoint modification
- **š File Analysis** - Analyze presentation structure and metadata
- **š§ Template Support** - Basic, Professional, and Modern design templates
- **š File Management** - Smart file handling and directory management
### šÆ **AI-Powered Workflow**
- **Claude Integration** - Seamless integration with Claude Desktop
- **Natural Language** - Create presentations using conversational commands
- **Intelligent Templates** - AI-suggested layouts and designs
- **Batch Operations** - Handle multiple presentations efficiently
## š Quick Start
### Prerequisites
- **Node.js** 18+
- **Claude Desktop** (for MCP integration)
### Installation
#### Option 1: NPM Package (Recommended)
```bash
npm install -g ppt-mcp
```
#### Option 2: From Source
```bash
git clone https://github.com/guangxiangdebizi/PPT-MCP.git
cd PPT-MCP
npm install
npm run build
```
### Claude Desktop Configuration
Add to your Claude Desktop config:
#### Stdio Mode (Local Development)
```json
{
"mcpServers": {
"ppt-mcp": {
"command": "node",
"args": ["path/to/PPT-MCP/build/index.js"]
}
}
}
```
#### SSE Mode (Production)
```bash
# Install and run with Supergateway
npm install -g supergateway
npx supergateway --stdio "node build/index.js" --port 3100
```
```json
{
"mcpServers": {
"ppt-mcp": {
"type": "sse",
"url": "http://localhost:3100/sse",
"timeout": 600
}
}
}
```
## š ļø Available Tools
### 1. **create_presentation**
Create new PowerPoint presentations with customizable options.
**Parameters:**
- `title` (required) - Presentation title
- `slides` (optional) - Number of slides (default: 1)
- `output_path` (optional) - Custom save location
- `template` (optional) - Design template: `basic`, `professional`, `modern`
**Example:**
```
Create a presentation titled "Q4 Business Review" with 5 slides using the professional template
```
### 2. **edit_presentation**
Basic editing of existing presentations (Note: Limited by PptxGenJS library capabilities).
**Parameters:**
- `file_path` (required) - Path to existing presentation
- `operation` (required) - Edit type: `add_slide`, `add_text`, `add_image`, `add_table`
- `slide_index` (optional) - Target slide number
- `content` (optional) - Content to add
### 2.5. **edit_presentation_enhanced** š
Enhanced PowerPoint editing with comprehensive guidance and step-by-step instructions for manual editing.
**Parameters:**
- `file_path` (required) - Path to existing presentation
- `operation` (required) - Operation type: `get_guidance`, `add_slide`, `replace_text`, `extract_content`
- `slide_index` (optional) - Target slide number (1-based)
- `content` (optional) - Content specifications
**Features:**
- š Step-by-step editing instructions
- š§ Multiple solution approaches
- š” Best practice recommendations
- šÆ Operation-specific guidance
**Example:**
```
Get guidance for editing "report.pptx" to replace text content
```
### 3. **read_presentation**
Analyze and extract information from PowerPoint files.
**Parameters:**
- `file_path` (required) - Path to presentation file
- `output_format` (optional) - Format: `text`, `json`, `markdown`
- `slide_range` (optional) - Specific slides to read
- `include_notes` (optional) - Include speaker notes
### 4. **analyze_presentation**
Perform comprehensive analysis of presentation structure and content.
**Parameters:**
- `file_path` (required) - Path to presentation file
- `analysis_type` (optional) - Analysis type: `structure`, `content`, `statistics`, `readability`, `comprehensive`
- `detailed` (optional) - Enable detailed analysis
## š Project Structure
```
PPT-MCP/
āāā src/
ā āāā index.ts # MCP server entry point
ā āāā tools/
ā āāā ppt-creator.ts # Creation & editing tools
ā āāā ppt-reader.ts # Reading & analysis tools
āāā build/ # Compiled JavaScript
āāā package.json # Dependencies & scripts
āāā tsconfig.json # TypeScript configuration
āāā README.md # Documentation
āāā LICENSE # Apache 2.0 License
```
## š§ Development
### Build Commands
```bash
npm run build # Compile TypeScript
npm run dev # Watch mode compilation
npm start # Run compiled server
npm run sse # Start with Supergateway SSE
```
### Testing
```bash
# Test server startup
node build/index.js
# Test presentation creation
# (Use Claude Desktop or MCP client)
```
## šØ Template Showcase
### **Basic Template**
- Clean, minimal design
- Black text on white background
- Perfect for academic or simple business presentations
### **Professional Template**
- Corporate color scheme (Dark Slate Gray)
- Sophisticated typography
- Ideal for business meetings and reports
### **Modern Template**
- Vibrant blue and green accents
- Contemporary design elements
- Great for creative and tech presentations
## š Technology Stack
- **Runtime:** Node.js 18+
- **Language:** TypeScript
- **PPT Engine:** <mcreference link="https://www.npmjs.com/package/pptxgenjs" index="1">1</mcreference> PptxGenJS (3,500+ ā)
- **MCP SDK:** @modelcontextprotocol/sdk
- **Build System:** TypeScript Compiler
- **Package Manager:** NPM
## š Migration from Python
This version represents a complete rewrite from Python to pure Node.js:
### **Advantages of Node.js Version:**
- ā
**Faster Startup** - No Python interpreter overhead
- ā
**Simpler Deployment** - Single runtime environment
- ā
**Better Integration** - Native JavaScript ecosystem
- ā
**Modern Tooling** - TypeScript, ESM, and modern Node.js features
- ā
**Cross-Platform** - Consistent behavior across operating systems
### **Current Limitations:**
- ā ļø **Direct File Modification** - PptxGenJS is creation-focused, not editing-focused
- ā ļø **Complex Animations** - Advanced animations not yet supported
- ā ļø **Embedded Media** - Video/audio embedding requires additional implementation
### **Solutions Provided:**
- ā
**Comprehensive Guidance** - `edit_presentation_enhanced` tool provides step-by-step instructions
- ā
**Multiple Approaches** - Manual editing, hybrid workflows, and programmatic creation
- ā
**Best Practices** - Detailed recommendations for different editing scenarios
*The `edit_presentation_enhanced` tool bridges the gap by providing expert guidance for PowerPoint editing workflows.*
## š¤ Contributing
We welcome contributions! Here's how to get started:
1. **Fork** the repository
2. **Create** a feature branch: `git checkout -b feature/amazing-feature`
3. **Commit** your changes: `git commit -m 'Add amazing feature'`
4. **Push** to the branch: `git push origin feature/amazing-feature`
5. **Open** a Pull Request
### Development Guidelines
- Follow TypeScript best practices
- Add tests for new features
- Update documentation
- Ensure cross-platform compatibility
## š License
This project is licensed under the **Apache License 2.0** - see the [LICENSE](LICENSE) file for details.
## šØāš» Author
**Xingyu Chen**
- š **LinkedIn:** [Xingyu Chen](https://www.linkedin.com/in/xingyu-chen-b5b3b0313/)
- š§ **Email:** guangxiangdebizi@gmail.com
- š **GitHub:** [@guangxiangdebizi](https://github.com/guangxiangdebizi/)
- š¦ **NPM:** [@xingyuchen](https://www.npmjs.com/~xingyuchen)
## š Acknowledgments
- **PptxGenJS Team** - For the excellent PowerPoint generation library
- **Anthropic** - For the Model Context Protocol specification
- **TypeScript Team** - For the amazing type system
- **Node.js Community** - For the robust runtime environment
---
<div align="center">
**ā Star this repo if you find it helpful!**
[š Report Bug](https://github.com/guangxiangdebizi/PPT-MCP/issues) ⢠[⨠Request Feature](https://github.com/guangxiangdebizi/PPT-MCP/issues) ⢠[š Documentation](https://github.com/guangxiangdebizi/PPT-MCP)
</div>TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: analyze for insights, create for new presentations, edit for modifications, and read for content extraction. There is no overlap in functionality, making tool selection straightforward for an agent.
All tool names follow a consistent verb_noun pattern (e.g., analyze_presentation, create_presentation), using snake_case throughout. This predictability enhances readability and usability for agents.
With 4 tools, the server is well-scoped for PowerPoint presentation management. Each tool serves a distinct and essential function (create, read, edit, analyze), with no unnecessary or redundant tools, making the count appropriate for the domain.
The toolset covers core CRUD-like operations (create, read, edit) and analysis, providing a solid foundation for presentation workflows. A minor gap exists in deletion or more advanced editing features, but agents can work effectively with the current tools.