MCP Hub
Back to servers

GitHub Style Markdown Preview MCP App

Enables the previewing of GitHub Flavored Markdown (GFM) as an MCP application. It provides a tool to render and visualize Markdown content using authentic GitHub styling and CSS.

Updated
Jan 29, 2026

GitHub Style Markdown Preview MCP App

GitHub Flavored Markdown (GFM) preview as an MCP App.

Docs: https://modelcontextprotocol.io/docs/extensions/apps

Usage

npm run build    # Build UI and server
npm run serve    # Start server on http://localhost:3001/mcp
npm run dev      # Build & serve with watch mode

Connect to Claude

  1. Start the tunnel:

    npx cloudflared tunnel --url http://localhost:3001
    
  2. Copy the generated URL (e.g., https://random-name.trycloudflare.com)

  3. In Claude web, go to Settings > Connectors > Add custom connector

  4. Enter the URL with /mcp path:

    https://<your-url>.trycloudflare.com/mcp
    

Packages

Dependencies

PackageDescription
@modelcontextprotocol/ext-appsMCP Apps SDK (server + client)
@modelcontextprotocol/sdkMCP SDK core
react, react-domReact UI framework
react-markdownMarkdown renderer for React
remark-gfmGitHub Flavored Markdown plugin
github-markdown-cssGitHub style CSS
express, corsHTTP server
zodSchema validation

Dev Dependencies

PackageDescription
viteBuild tool
vite-plugin-singlefileBundle into single HTML
@vitejs/plugin-reactVite React plugin
esbuildServer bundler
concurrentlyRun multiple commands
cross-envCross-platform env vars
tsxTypeScript execution
typescriptTypeScript compiler

Files

FileDescription
main.tsEntry point (HTTP/stdio transport)
server.tsMCP server with preview-markdown tool
mcp-app.htmlUI entry point
src/mcp-app.tsxReact app using useApp hook
src/markdown.tsxMarkdown component with GFM support
src/global.cssGitHub markdown styling
vite.config.tsVite bundler config
tsconfig.jsonTypeScript config
tsconfig.server.jsonServer build config

Reviews

No reviews yet

Sign in to write a review