MM

masaki39/marp-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

15 stars 7 forks 质量 78 趋势 35MIT

MCP服务器允许AI代理通过结构化工具来构建并编辑Marp幻灯片甲板.

概览

这个包裹包括克洛德代码技能. 安装后 Claude Code 可以使用内置的 CLI 命令通过 /marp 创建 Marp 演示文稿——不需要 MCP 服务器配置 ! 在AI的协助下创建和编辑 Marp 演示文稿的 MCP 服务器. 这个MCP服务器允许LLMs按照指定的布局来编辑Markdown文件,支持内置的Marp主题(默认,Gaia,Uncover)和丰富的学术和专业展示风格. 使用 -t / -- -- tom and --s / --tyle args来设置全服务器默认值. 从主题中选择:默认, gaia, 发现 。 风格:默认,丰富,最小,黑暗,公司,学术,技术: 默认这些旗帜默认为默认主题和默认样式. 如果在服务器启动时在目录树上方的任何地方找到一个marp-cli配置文件(.marprc.{yml,yaml,json,js,cjs,mjs},marp.config.{js,cj,mjs},或包.json中的一个marp字段),则其主题Set字段下列出的每一个CSS文件都会被注册为MCP风格.

概述(AI 翻译)

[!TIP] (中文(简体) ). 这个包包括克洛德代码技能. 安装后克洛德代码可以通过使用内置的 CLI 命令创建 Marp 演示文稿——不需要MCP 服务器配置! 翻译: ** 自动更新插件安装:** 翻译:

在AI的协助下创建和编辑 Marp 演示文稿的 MCP 服务器. 这个MCP服务器允许LLMs按照指定的布局来编辑Markdown文件,支持内置的Marp主题(默认,Gaia,Uncover)和丰富的学术和专业展示风格.

# # 设置

克劳德密码

** 备选案文1——CLI,用户范围**(建议):

** 备选2——CLI,项目范围**(通过[T1]与团队分享):

** 备选3——手动配置**([[T2]或[T3]):

其他MCP客户端

QQ 设置服务器默认主题/ 类型

使用 [ [T4] / --theme 和 [[T6] / [[T7] 参数设置整个服务器的默认值。 从主题中选择:[[T8],[T9],[T10]]。 样式: [[T11] [T12] [T13] [T14] [T15] [T16] [T17]:

这些旗帜默认为 default 主题和 default 样式 。

通过 marp-cli 配置的外部样式

如果一个marp-cli配置文件('.marprc.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Marp MCP Server

[!TIP] This package includes a Claude Code Skill. After installing, Claude Code can create Marp presentations via the /marp command using the built-in CLI — no MCP server configuration required!

Auto-updating plugin install:

/plugin marketplace add masaki39/marp-mcp
/plugin install marp@marp-mcp

An MCP server for creating and editing Marp presentations with AI assistance. This MCP server allows LLMs to edit Markdown files according to a specified layout, supporting the built-in Marp themes (default, Gaia, Uncover) and a rich set of academic and professional presentation styles.

⚙️ Setup

Claude Code

Option 1 — CLI, user scope (recommended):

claude mcp add marp-mcp -- npx -y @masaki39/marp-mcp@latest

Option 2 — CLI, project scope (shareable with team via .mcp.json):

claude mcp add --scope project marp-mcp -- npx -y @masaki39/marp-mcp@latest

Option 3 — Manual config (~/.claude/settings.json or .mcp.json):

{
  "mcpServers": {
    "marp-mcp": {
      "command": "npx",
      "args": ["-y", "@masaki39/marp-mcp@latest"]
    }
  }
}

Other MCP clients

{
  "mcpServers": {
    "marp-mcp": {
      "command": "npx",
      "args": ["-y", "@masaki39/marp-mcp@latest"]
    }
  }
}

Setting server default theme/style

Use -t / --theme and -s / --style args to set the server-wide default. Choose from themes: default, gaia, uncover. Styles: default, rich, minimal, dark, corporate, academic, tech:

{
  "mcpServers": {
    "marp-mcp": {
      "command": "npx",
      "args": ["-y", "@masaki39/marp-mcp@latest", "-t", "default", "-s", "rich"]
    }
  }
}

Omitting these flags defaults to default theme and default style.

External styles via marp-cli config

If a marp-cli configuration file (.marprc.{yml,yaml,json,js,cjs,mjs}, marp.config.{js,cjs,mjs}, or a marp field in package.json) is found anywhere up the directory tree at server start, every CSS file listed under its themeSet field is registered as an MCP style. The style name is read from the file’s /* @theme NAME */ directive (lowercased). External entries reuse the active theme’s layouts, so all existing tools work unchanged.

# .marprc.yml
themeSet:
  - ./themes/sample.css
/* themes/sample.css */
/* @theme sample */
section { background: #fff; }

sample is then a valid value for -s and shows up in list_themes_and_styles with "external": true and the absolute CSS path under source. Built-in style names are protected; any external collision is logged and skipped.

🛠️ Tools

Tool Description
list_themes_and_styles List all available themes and styles; shows current server defaults
在 GitHub 查看完整 README

安装

npx -y @masaki39/marp-mcp@latest
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "marp-mcp": { "command": "npx", "args": ["-y", "@masaki39/marp-mcp@latest"] } } }