HTML Slide Studio

HTML Slide Studio

HTML Slide Studio MCP server enables agents to create, read, update, validate, and export Marp Markdown presentation decks, including asset management and secure offline HTML export with path traversal and symlink protections.

Category
Visit Server

README

HTML Slide Studio

HTML Slide Studio is a Markdown-first presentation workspace built with React, Marp, and CodeMirror. It combines live slide preview, browser presentation mode, Mermaid diagrams, reusable style presets, offline HTML export, and a local MCP server for agent authoring.

Features

  • Edit Marp Markdown with a live 16:9 preview
  • Navigate with thumbnails, keyboard controls, or fullscreen presentation mode
  • Render editable Mermaid fences and export them as embedded SVG data
  • Choose from seven style presets or add deck-specific CSS
  • Apply the optional Narrative Infographic design profile and diagnostics
  • Open and save deck.md + assets/ folders through the browser
  • Export a self-contained HTML presentation with a restrictive offline CSP
  • Create, validate, and export decks through a constrained stdio MCP server

Quick Start

Requirements:

  • Node.js 22 or newer
  • npm
  • Microsoft Edge or another Chromium browser for local authoring
npm ci
npm run dev

Open the URL printed by Vite, normally http://127.0.0.1:5173/.

The repository includes one generic example-deck. User-created decks are ignored by Git by default so presentation content is not accidentally published.

Authoring Decks

The canonical structure is:

decks/<deck-id>/
├── deck.md
└── assets/
    ├── diagram.svg
    └── screenshot.png

Use Open folder to grant read/write access to an existing deck folder. Markdown changes update the preview immediately. Use the save icon or Ctrl+S to write back to deck.md.

Bundled decks opened with ?deck=<deck-id> can be saved only while the local Vite development or preview server is running. The save endpoint accepts existing deck IDs only and is not included in production builds.

To intentionally version additional decks, update the deck rules in .gitignore first.

Mermaid

Add an editable Mermaid fence:

```mermaid
flowchart LR
  Source --> Preview --> Export
```

The editor renders it in the browser. Offline export replaces the fence with Base64-encoded SVG image data; Mermaid source and runtime code are not included in the exported HTML.

MCP Server

The included VS Code configuration starts the MCP server with:

npm run mcp

For another MCP client, configure a stdio server with command npm, arguments run mcp, and this repository as the working directory.

Available tools:

  • htmlslide_list_decks
  • htmlslide_get_deck
  • htmlslide_create_deck
  • htmlslide_update_deck
  • htmlslide_put_asset
  • htmlslide_validate_deck
  • htmlslide_export_html

The MCP server confines access to the configured deck root, rejects path traversal and symlink escapes, validates passive assets, and blocks remote dependencies during offline export.

Scripts

Command Purpose
npm run dev Start the Vite development server
npm run build Type-check and build the application
npm test Run unit and MCP tests
npm run test:e2e Build and run Playwright browser tests
npm run lint Run oxlint
npm run typecheck Type-check app and Vite configuration
npm run typecheck:mcp Type-check the MCP server
npm run mcp Start the stdio MCP server
npm run mcp:inspect Open the MCP Inspector

Architecture

  • src/App.tsx — editor, preview, presentation, save, and export workflows
  • src/render/ — Marp rendering and slide source ranges
  • src/mermaid/ — secure Mermaid expansion and SVG validation
  • src/export/ — offline single-file HTML generation
  • src/design/ — design profiles, diagnostics, and shared themes
  • mcp/ — constrained deck repository and MCP server
  • design-profiles/ — reusable authoring guidance
  • decks/example-deck/ — public, non-customer example

Security and Privacy

  • Keep confidential decks outside this repository or rely on the default ignored decks/* paths.
  • Do not expose the Vite development server to an untrusted network when local deck saving is enabled.
  • Export requires local assets and rejects external runtime dependencies.
  • See SECURITY.md for vulnerability reporting.

License

MIT. See LICENSE.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
Kagi MCP Server

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.

Official
Featured
Python
graphlit-mcp-server

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.

Official
Featured
TypeScript
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured