Logo de Deckbuilder

Deckbuilder

Comunidade
teknologika

MCP Server for building powerpoint presentations

Publicado porteknologika
RepositórioDeckbuilder
IdiomaPython
Forks
1
Estrelas
7
Ferramentas disponíveis
0
Tipo de transportestdio
Categorias
LicençaApache-2.0
Links
  • Conecte ferramentas a fluxos de trabalho de IA

    Deckbuilder disponibiliza recursos MCP que podem ser usados por clientes e agentes de IA compatíveis.

  • 0 ferramentas disponíveis

    Confira abaixo as ações que podem ser chamadas, incluindo nomes e descrições quando fornecidos pelo servidor.

  • Configuração pronta para copiar

    Use os exemplos de instalação para configurar este servidor no seu cliente MCP preferido.

  • Indicadores da comunidade de código aberto

    7 estrelas e 1 forks no repositório vinculado.

[!IMPORTANT]
Deckbuilder is currently under active development and should NOT be considered production ready.

🎯 Deckbuilder

PyPI version Test Suite Python 3.11+

Create professional PowerPoint presentations from Markdown or JSON

Deckbuilder is a Python library, Command Line tool, and MCP server that generates PowerPoint presentations from structured content. Focus on your content - Deckbuilder handles the formatting and layout.

✨ Key Features

🚀 One-Shot Presentation Generation

Create complete PowerPoint presentations from JSON or Markdown with YAML frontmatter in a single command.

🎨 Rich Content Support

  • Advanced Formatting: **bold**, *italic*, ___underline___, ***bold italic***
  • Language & Font updating: The ability to update the fonts and language of all slide objects using the command line tools using the CLI.
  • Professional Tables: Custom styling with themes, colors, and precise dimension controls (column widths, row heights, table sizing).
  • Supported Layouts: Progressive library of templates being added.

🧠 Smart Template System

  • Intelligent Layout Selection: Automatic layout recommendations based on content type
  • Pattern-Based Architecture: Customize any layout with your own templates
  • Rich Content Support: Tables, images, multi-column layouts with professional styling

🖼️ Smart Image Processing

  • Automatic Image Fallbacks: Missing images? Deckbuilder generates professional placeholders automatically
  • Smart Cropping: Face detection and intelligent composition for perfect image sizing
  • Professional Filters: Business-appropriate styling with grayscale and other effects

⚡ Enhanced CLI Experience

  • Professional Hierarchical Interface: Clean command structure (deckbuilder <command> <subcommand>)
  • One-Command Setup: deckbuilder init creates templates and configuration
  • Context-Aware Paths: CLI args > env vars > current directory precedence
  • Always Local Output: CLI outputs to current directory for predictable local development
  • Global Arguments: -t/--template-folder, -l/--language, -f/--font for complete customisation
  • Comprehensive Command Structure:
    • deckbuilder template → analyze, validate, document, enhance, list
    • deckbuilder config → show, languages, completion
    • deckbuilder image → generate, crop
    • deckbuilder remap → update existing PowerPoint files with language/font changes
  • Template Management: Analyze, validate, and enhance PowerPoint templates with detailed validation

🚀 Quick Start

Installation

bash
pip install deckbuilder

CLI Usage (Standalone)

bash
# Initialize templates (one-time setup) This will create the default template and mapping JSON.
deckbuilder init

# Create presentation from markdown (outputs to current directory)
deckbuilder create presentation.md

# Use custom template folder (CLI arg overrides env vars)
deckbuilder --template-folder /custom/templates create presentation.md

# Create with custom language and font (supports both formats)
deckbuilder create presentation.md --language "es-ES" --font "Arial"
deckbuilder create presentation.md --language "Spanish (Spain)" --font "Times New Roman"

# View supported languages
deckbuilder config languages

# Template management & intelligence
deckbuilder template analyze default --verbose
deckbuilder template validate default
deckbuilder template list

# Smart template recommendations available through MCP tools

# Image generation with crop-first approach
deckbuilder image generate 800 600 --filter grayscale
deckbuilder image crop image.jpg 800 600

# Language and font remapping for existing PowerPoint files
deckbuilder remap existing.pptx --language en-US --font Arial

# View current configuration (shows path sources)
deckbuilder config show

# Get help
deckbuilder --help

MCP Server (Claude Desktop)

Add to your Claude Desktop configuration:

Option 1: Direct installation (recommended)

json
{
  "mcpServers": {
    "deckbuilder": {
      "command": "deckbuilder-server",
      "env": {
        "DECK_TEMPLATE_FOLDER": "/Users/username/Documents/Deckbuilder/Templates",
        "DECK_TEMPLATE_NAME": "default",
        "DECK_OUTPUT_FOLDER": "/Users/username/Documents/Deckbuilder",
        "DECK_PROOFING_LANGUAGE": "en-AU",
        "DECK_DEFAULT_FONT": "Calibri"
      }
    }
  }
}

New Environment Variables:

  • DECK_PROOFING_LANGUAGE: Set proofing language for spell-check and grammar (accepts both "en-AU" and "English (Australia)" formats)
  • DECK_DEFAULT_FONT: Set default font family for all presentations
  • Default Language: Australian English (en-AU) if not specified

📝 Usage Examples

Markdown with Frontmatter (Recommended)

markdown
---
layout: Title Slide
---
# **Deckbuilder** Presentation
## Creating presentations with *content-first* intelligence

---
layout: Four Columns
title: Feature Comparison
columns:
  - title: Performance
    content: "**Fast** processing with optimized algorithms"
  - title: Security
    content: "***Enterprise-grade*** encryption and compliance"
  - title: Usability
    content: "*Intuitive* interface with minimal learning curve"
  - title: Cost
    content: "___Transparent___ pricing with proven ROI"
---

---
layout: Picture with Caption
title: Market Analysis
media:
  image_path: "charts/revenue_growth.png"  # Auto-fallback to PlaceKitten if missing
  alt_text: "Revenue growth chart"
  caption: "**Q4 Revenue Growth** - 23% increase"
---

---
layout: Title and Content
title: "**Table Dimensions:** Custom Column Widths"
style: dark_blue_white_text
row_style: alternating_light_gray
border_style: thin_gray
column_widths: [8, 6, 4, 5]
row_height: 0.9
content: |
  Sales Performance Report with individual column width control:

  | **Product Category** | **Q1 Sales** | **Q2** | **Growth %** |
  | Enterprise Software | $125,000 | $142,000 | +13.6% |
  | SaaS Solutions | $89,500 | $98,200 | +9.7% |
  | Cloud Services | $156,000 | $178,000 | +14.1% |
  | Mobile Apps | $67,300 | $73,800 | +9.7% |
---

---
layout: Title and Content
title: "**Table Dimensions:** Equal Column Distribution"
style: light_blue_dark_text
row_style: alternating_light_gray
border_style: thin_gray
table_width: 22
row_height: 0.9
content: |
  Team Performance Dashboard with equal column distribution:

  | **Team Member** | **Projects** | **Completed** | **Success Rate** |
  | Alice Johnson | 25 | 24 | 96% |
  | Bob Smith | 18 | 17 | 94% |
  | Carol Davis | 32 | 31 | 97% |
  | David Wilson | 21 | 20 | 95% |

JSON Format (Programmatic)

json
{
  "presentation": {
    "slides": [
      {
        "type": "Title Slide",
        "title": "**Deckbuilder** Presentation",
        "subtitle": "Content-first presentation generation"
      },
      {
        "type": "Title and Content",
        "title": "Key Benefits",
        "content": [
          "**Intelligent** content analysis",
          "*Semantic* layout recommendations",
          "***Professional*** template system"
        ]
      },
      {
        "type": "Title and Content",
        "title": "Team Performance Dashboard",
        "table": {
          "column_widths": [6, 4, 5, 3],
          "row_height": 1.8,
          "data": [
            ["**Team Member**", "**Projects**", "**Completed**", "**Rate**"],
            ["Alice Johnson", "25", "24", "96%"],
            ["Bob Smith", "18", "17", "94%"],
            ["Carol Davis", "32", "31", "97%"]
          ],
          "header_style": "dark_blue_white_text",
          "row_style": "alternating_light_gray",
          "border_style": "thin_gray"
        }
      }
    ]
  }
}

Python API

python
from deckbuilder import Deckbuilder

# Initialize engine
db = Deckbuilder()

# Create from markdown
result = db.create_presentation_from_markdown(
    markdown_content=open("presentation.md").read(),
    fileName="My_Presentation"
)

# Create from JSON
result = db.create_presentation(
    json_data={"presentation": {"slides": [...]}},
    fileName="JSON_Presentation"
)

print(f"✅ Created: {result}")

🌍 Language & Font Support

Supported Languages (20)

Deckbuilder supports 20 proofing languages for spell-check and grammar. You can use either locale codes (en-AU) or full names (English (Australia)):

bash
# View all supported languages (shows both formats)
deckbuilder config languages

Available Languages:

  • English (United States, United Kingdom, Canada, Australia)
  • Spanish (Spain, Mexico, Latin America)
  • French (France, Canada)
  • German (Germany, Austria, Switzerland)
  • Italian, Portuguese (Brazil, Portugal)
  • Chinese (Simplified, Traditional), Japanese, Korean
  • Dutch, Russian, Arabic

Font Customization

bash
# Set language and font globally (supports both formats)
export DECK_PROOFING_LANGUAGE="en-AU"           # Locale code format
export DECK_PROOFING_LANGUAGE="English (Australia)"  # Full name format
export DECK_DEFAULT_FONT="Arial"

# Or use CLI arguments (both formats work)
deckbuilder create presentation.md --language "fr-CA" --font "Times New Roman"
deckbuilder create presentation.md --language "French (Canada)" --font "Arial"

# Check current settings (shows locale codes and descriptions)
deckbuilder config show

🖼️ PlaceKitten Image Processing

Smart Image Fallback System - When images are missing or invalid, PlaceKitten automatically generates professional placeholders:

python
from placekitten import PlaceKitten

pk = PlaceKitten()
placeholder = (pk.generate(1920, 1080, image_id=1)
                .smart_crop(1920, 1080)
                .apply_filter("grayscale")
                .save("professional_placeholder.jpg"))

Features:

  • ✅ File Validation: Checks image existence, format, and accessibility
  • ✅ Professional Styling: Automatic grayscale filtering for business context
  • ✅ Smart Cropping: Computer vision-based cropping with face detection
  • ✅ Performance Optimized: Intelligent caching prevents duplicate processing
  • ✅ Seamless Integration: Zero user intervention required

🚀 What's New in v1.2.0

Smart Template Recommendations

  • Content Analysis: Automatically analyzes your content to suggest the best layouts
  • MCP Integration: Available through Claude Desktop with intelligent recommendations

Enhanced Image Processing

  • Better Image Sizing: Smart cropping ensures images fit perfectly without distortion
  • Automatic Fallbacks: Professional placeholder images when your images are missing

Improved Pattern System

  • User Customization: Create custom layout patterns in {template_folder}/patterns/
  • Dynamic Loading: All layouts now use flexible pattern files instead of hard-coded templates

🏗️ Architecture

    Your Content (Markdown/JSON)
              ↓
    ┌─────────────────────┐
    │   Content Analysis  │  ← Analyzes your content type and audience
    └─────────┬───────────┘
              ↓
    ┌─────────────────────┐
    │ Template Selection  │  ← Recommends best layouts for your content
    └─────────┬───────────┘
              ↓
    ┌─────────────────────┐
    │  PowerPoint Engine  │  ← Generates professional presentations
    └─────────┬───────────┘
              ↓
    Your Professional Presentation

🎨 Supported Markdown Layouts

✅ Currently Implemented

  • Title Slide - Opening slide with title and subtitle
  • Title and Content - Rich text with headings, paragraphs, bullets
  • Four Columns - Quad content areas with structured frontmatter
  • Two Content - Side-by-side content areas
  • Comparison - Left vs right comparison layout
  • Table - Data tables with professional styling
  • Section Header - Divider slides between topics
  • Picture with Caption - Image-focused slides with smart fallbacks

🚧 Progressive Implementation (50+ Planned)

  • Big Number displays, SWOT Analysis, Feature Matrix
  • Timeline, Process Flow, Organizational Chart
  • Dashboard, Metrics, Financial layouts
  • And 40+ more business presentation layouts

See Feature Documentation for detailed specifications.

🛠️ Development

Prerequisites

  • Python 3.11+
  • Virtual environments are recommended.

Development Install

bash
git clone https://github.com/teknologika/deckbuilder.git
cd deckbuilder
python3 -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -e .[dev]

Code Quality Standards

bash
# Format code (required before commits)
black --line-length 100 src/

# Check linting (required)
flake8 src/ tests/ --max-line-length=100 --ignore=E203,W503,E501

# Run tests (required)
pytest tests/

Contributing

  1. Fork the repository
  2. Create feature branch: git checkout -b feature-name
  3. Follow code quality standards
  4. Add comprehensive tests
  5. Submit pull request with clear description

📚 Documentation

🔧 Technology Stack

  • Python 3.11+ with modern type hints and comprehensive error handling
  • FastMCP for Model Context Protocol server implementation
  • python-pptx for PowerPoint generation and template manipulation
  • PyYAML for structured frontmatter processing
  • OpenCV + Pillow for computer vision and image processing
  • pytest for unit testing
  • Anthropic Claude - for most of the development gruntwork :-)

📋 Troubleshooting

Template not found:

bash
# Create templates folder
deckbuilder init

# Check configuration
deckbuilder config

Permission denied when saving:

  • Verify output folder has write permissions
  • Ensure files aren't open in PowerPoint

MCP connection failures:

  • Verify virtual environment is activated
  • Check Python path in Claude Desktop config
  • Ensure all dependencies are installed

📄 License

Apache License 2.0 - See LICENSE file for details.


Built with ❤️ for intelligent presentation generation - Copyright Bruce McLeod

🚀 Get Started • 📖 Documentation • 🐛 Report Issues

Instalação

TypingMind
Pré-requisitos:

Node.js 18+

{
  "mcpServers": {
    "teknologika-deckbuilder": {
      "command": "",
      "args": []
    }
  }
}

Use o MCP de Deckbuilder com vários modelos de IA

O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho. Assim, após conectar Deckbuilder, é possível usá-lo com diferentes modelos de IA no TypingMind, em vez de configurá-lo separadamente para cada modelo. Este MCP é executado localmente no seu dispositivo por meio do conector MCP do TypingMind.

Guia de configuração para usar o conector local

Use esta opção quando o servidor MCP precisar acessar arquivos locais, aplicativos ou recursos privados no seu computador.

1

Abra as configurações de MCP

No TypingMind, vá até Configurações, Configurações avançadas e depois Model Context Protocol e selecione Configurar conector.

  1. Abra o TypingMind no navegador.
  2. Clique no ícone de Ajustes.
  3. Acesse Configurações avançadas.
  4. Abra a seção Model Context Protocol.
  5. Clique em Configurar conector e selecione Este dispositivo.
Tela de configuração do conector MCP do TypingMind com a opção Este dispositivo selecionada
2

Execute o comando do conector

Selecione Este dispositivo, copie o comando do TypingMind e execute-o no Terminal. Mantenha o processo em execução enquanto usa o MCP.

  1. Copie o comando de configuração exibido pelo TypingMind.
  2. Abra o Terminal no macOS ou o Windows Terminal no Windows.
  3. Cole e execute o comando.
  4. Autorize a instalação do pacote se o Terminal pedir confirmação para continuar.
  5. Mantenha o processo em execução na janela do Terminal enquanto usa as ferramentas MCP.
3

Adicione Deckbuilder como servidor

Quando o status do conector for Pronto, clique em Editar e cole a configuração do servidor MCP.

  1. Aguarde até que o status do conector mostre Pronto.
  2. Clique em Editar.
  3. Cole a configuração do servidor MCP de Deckbuilder.
  4. Salve a lista de servidores.
  5. Atualize para confirmar se o conector ainda está pronto para uso.
Configurações de MCP do TypingMind mostrando um servidor ativo e o botão Editar
{
  "mcpServers": {
    "teknologika-deckbuilder": {
      "command": "npx",
      "args": [
        "-y",
        "deckbuilder"
      ]
    }
  }
}
4

Use a conexão com diferentes modelos

Salve a lista de servidores, abra Plugins, ative as ferramentas MCP de Deckbuilder, selecione qualquer modelo de IA compatível no TypingMind e use as ferramentas no chat ou atribua-as a um agente de IA.

  1. Abra a página Plugins no TypingMind.
  2. Ative as ferramentas MCP de Deckbuilder.
  3. Inicie um chat e escolha o modelo de IA que deseja usar.
  4. Use as ferramentas MCP no chat ou atribua-as a um agente de IA.
  5. Mude para outro modelo de IA sempre que necessário, sem reconectar o MCP.
Chat do TypingMind usando ferramentas MCP ativadas com um modelo de IA selecionado
Pode usar Deckbuilder para me ajudar nesta tarefa?
Deckbuilder
Claro. Já li.
Veja o que encontrei usando Deckbuilder.

Perguntas frequentes

Para que serve o servidor MCP Deckbuilder?

Deckbuilder é um servidor MCP que permite que aplicativos de IA compatíveis se conectem a ferramentas externas e informações de contexto. No TypingMind, basta adicionar esse servidor MCP uma vez para disponibilizar suas ferramentas no seu espaço de trabalho com IA.

Posso usar o MCP Deckbuilder com vários modelos de IA no TypingMind?

Sim. O TypingMind conecta as ferramentas MCP no nível do espaço de trabalho, permitindo usar Deckbuilder com diferentes modelos de IA, como Claude, ChatGPT, Gemini ou outros modelos configurados no TypingMind, sem configurar o servidor MCP separadamente para cada modelo.

Por que usar o MCP Deckbuilder com o TypingMind?

O TypingMind é uma das melhores interfaces de chat com LLMs porque reúne vários modelos de IA, prompts, plugins, agentes de IA, chaves de API e ferramentas MCP em um só espaço de trabalho. Com Deckbuilder conectado, é possível usar suas ferramentas MCP nos seus modelos preferidos e manter seu fluxo de trabalho de chat organizado no TypingMind.

Como conecto o MCP Deckbuilder ao TypingMind?

Deckbuilder funciona por meio do conector MCP local do TypingMind. Essa é a melhor opção quando o servidor MCP precisa acessar arquivos locais, apps de desktop, ferramentas de linha de comando ou recursos privados no seu computador.

Quais ferramentas o MCP Deckbuilder oferece no TypingMind?

Deckbuilder disponibiliza recursos MCP que podem ser ativados na página Plugins do TypingMind e usados no chat ou atribuídos a agentes de IA.

Preciso compartilhar minhas chaves de API com o TypingMind para usar o MCP Deckbuilder?

Não. O TypingMind prioriza o uso local e permite manter seus provedores de modelos, chaves de API, prompts e configuração MCP sob seu controle. Se Deckbuilder exigir autenticação, adicione os cabeçalhos, as configurações OAuth ou a configuração local exigidos por esse servidor MCP ao criar a conexão.

Servidores MCP relacionados

Ver todos

Crie seu próprio espaço de IA agora

Inscreva-se na nossa newsletter para receber novidades sobre recursos e futuros sorteios 👇