BM

bsmnyk/mdslides-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

6 stars 6 forks Качество 53 Тренд 14

MCP (Model Context Protocol) server for generating HTML slides from Markdown content

Обзор

An MCP (Model Context Protocol) server for generating HTML slides from Markdown content using the mkslides library. This server provides a simple interface to the mkslides command-line tool, allowing you to generate presentation slides directly from Markdown input via the Model Context Protocol. This enables integration with tools like Claude in VSCode to easily create and manage presentations. * Generate HTML slides from Markdown. * Support for various mkslides configuration options (themes, highlight themes, Reveal.js options). * Clean handling of temporary files. * Containerized deployment option using Docker. * Python 3.12 or higher * mkslides installed and available in your PATH. * Model Context Protocol (MCP) client (e.g., Claude in VSCode). * Docker (if using the Docker installation method). 1. Clone the repository: 2. Install using pip and uv (recommended): Or using pip: 1. Ensure Docker is installed and running. 2.

README

Показан фрагмент оригинального README. Открыть оригинал.

mdslides-mcp-server

An MCP (Model Context Protocol) server for generating HTML slides from Markdown content using the mkslides library.

What it Does

This server provides a simple interface to the mkslides command-line tool, allowing you to generate presentation slides directly from Markdown input via the Model Context Protocol. This enables integration with tools like Claude in VSCode to easily create and manage presentations.

Demo

mcp-demo.webm

Features

  • Generate HTML slides from Markdown.
  • Support for various mkslides configuration options (themes, highlight themes, Reveal.js options).
  • Clean handling of temporary files.
  • Containerized deployment option using Docker.

Installation

Prerequisites

  • Python 3.12 or higher
  • mkslides installed and available in your PATH.
  • Model Context Protocol (MCP) client (e.g., Claude in VSCode).
  • Docker (if using the Docker installation method).

Installation Methods

Using pip

  1. Clone the repository:
    git clone https://github.com/your-repo/mdslides-mcp-server.git
    cd mdslides-mcp-server
    
  2. Install using pip and uv (recommended):
    uv sync
    
    Or using pip:
    pip install .
    

Using Docker

  1. Ensure Docker is installed and running.
  2. From the repository root, run the deployment script:

./deploy_mdslides_docker.sh

This script will build the Docker image (if not already built) and start a container instance named `mdslides-mcp-instance`. The server inside the container will be running and ready to accept connections via MCP. The script also handles creating the necessary output directory (`./mkslides_output`) on the host.

### Configuration in MCP Settings

To use the server with your MCP client (like Claude in VSCode), you need to add it to your MCP settings.

If you installed using pip, you can run the server directly:

```json
{
  "mcpServers": {
    "mdslides-mcp-local": {
      "command": "python",
      "args": ["src/mdslides_mcp_server/server.py"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

If you are using the Docker deployment via the script:

Configure your MCP client to attach to the running container instance:

{
  "mcpServers": {
    "mdslides-mcp-local": {
      "autoApprove": [],
      "disabled": false,
      "timeout": 60,
      "command": "docker",
      "args": [
        "attach",
        "mdslides-mcp-instance"
      ],
      "transportType": "stdio"
    }
  }
}

Usage with Claude/VSCode

Once configured in your MCP settings, you can use the generate_slides tool directly within your Claude chat interface in VSCode.

Available Tool: generate_slides

Открыть полный README на GitHub

Установка

This server does not publish a one-line install command.

Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "mdslides-mcp-local": { "command": "python", "args": ["src/mdslides_mcp_server/server.py"], "disabled": false, "autoApprove": [] } } }