mcp-markdown-to-confluence
Converts Markdown files to Atlassian Document Format and publishes them to Confluence pages, with support for creating, updating, and previewing pages.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-markdown-to-confluenceConvert the file ./docs/guide.md to Confluence page in space ENG"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-markdown-to-confluence
An MCP (Model Context Protocol) server that converts Markdown files to Atlassian Document Format (ADF) and publishes them to Confluence. Mermaid diagrams are rendered to PNG images and uploaded as page attachments.
Features
Convert Markdown → Confluence ADF with full formatting support (tables, code blocks, callouts, TOC)
Render Mermaid diagrams to PNG via headless Chromium and attach them to pages
Preview content before publishing
Create new pages or update existing ones
Publish from inline Markdown or directly from a
.mdfile using frontmatter
Related MCP server: MCP Confluence Server
Installation
npm
npm install @neverprepared/mcp-markdown-to-confluenceFrom source
git clone https://github.com/neverprepared/mcp-markdown-to-confluence.git
cd mcp-markdown-to-confluence
npm install
npm run buildConfiguration
Set the following environment variables:
Variable | Description |
| Your Confluence base URL, e.g. |
| Your Atlassian account email |
| Your Atlassian API token (create one here) |
Claude Code Setup
Add to your Claude Code MCP config (.claude/.claude.json):
{
"mcpServers": {
"markdown-to-confluence": {
"command": "node",
"args": ["/path/to/mcp-markdown-to-confluence/dist/index.js"],
"env": {
"CONFLUENCE_BASE_URL": "https://your-org.atlassian.net",
"CONFLUENCE_USERNAME": "you@example.com",
"CONFLUENCE_API_TOKEN": "your-api-token"
}
}
}
}Tools
markdown_preview
Convert Markdown to ADF and return a text preview — no Confluence calls made.
Parameter | Type | Required | Description |
| string | yes | Markdown content to preview |
| string | yes | Page title |
markdown_publish
Publish Markdown to a Confluence page. By default shows a preview first.
Parameter | Type | Required | Description |
| string | yes | Markdown content |
| string | yes | Confluence page title |
| string | yes | Confluence space key (e.g. |
| string | no | Existing page ID to update; omit to create a new page |
| string | no | Parent page ID for new pages |
| boolean | no | Set |
markdown_publish_file
Read a .md file from disk and publish it. Page metadata is read from frontmatter.
Parameter | Type | Required | Description |
| string | yes | Absolute path to the Markdown file |
| boolean | no | Set |
Supported frontmatter keys:
---
connie-title: My Page Title
connie-space-key: ENG
connie-page-id: "123456" # omit to create a new page
title: Fallback title # used if connie-title is absent
---Preview Flow
By default, markdown_publish and markdown_publish_file return a rendered preview and prompt you to confirm before publishing. To publish in one step, pass skip_preview: true.
# Step 1 — review
markdown_publish(markdown: "...", title: "My Page", spaceKey: "ENG")
→ returns preview text
# Step 2 — publish
markdown_publish(markdown: "...", title: "My Page", spaceKey: "ENG", skip_preview: true)
→ returns page URLMermaid Diagrams
Mermaid code blocks are automatically detected, rendered to PNG via headless Chromium (bundled with Puppeteer), and uploaded as Confluence page attachments. The first run will download Chromium (~170 MB).
```mermaid
flowchart TD
A[Write Markdown] --> B[Preview]
B --> C{Looks good?}
C -- Yes --> D[Publish]
C -- No --> A
```License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Render, verify, describe, and safely edit Mermaid diagrams through MCP.
Generate PDF, Word (.docx) and PowerPoint (.pptx) documents from Markdown over MCP.
Publish markdown documents as public share links with mermaid diagram support. Built by AutEng.ai
Publish markdown documents as public share links with mermaid diagrams. Built by AutEng.ai
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Confluence by converting Markdown documents to professionally styled Confluence pages with Mermaid diagram support.6 npm1-
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Confluence to manage spaces, pages, and comments with support for Markdown conversion and CQL-based search. It includes advanced features for exporting Confluence content to structured Markdown files and provides optimized tools for page and comment administration.4-
- FlicenseNot gradedqualityDmaintenanceConverts Markdown files and standalone Mermaid diagrams into high-quality PDF or PNG documents using Puppeteer and SVG rendering. It supports custom CSS styling and provides tools for professional document generation from markdown-based content.4-
- AlicenseAqualityCmaintenanceUpload Markdown to Confluence with auto-converted Mermaid diagrams, code blocks, images, and tables. Supports creating, updating, and syncing pages.66 npm15MIT