MCP server for generating code snippet images

MCP server for generating code snippet images

code-snippet-image-mcp•bysuhaibkhan

An MCP server that converts code into styled snippet images with syntax highlighting, selectable themes, and configurable dimensions for sharing on social media.

License: MIT•Runtime: Awaiting documentation review•Category: media design

WHAT IT DOES

  • •Provides a create_code_image tool that turns code into an image.
  • •Supports multiple color themes including Dracula, Monokai, GitHub, and Solarized Dark/Light.
  • •Uses highlight.js for syntax highlighting across many programming languages.
  • •Output images are saved to a specified directory with timestamps, defaulting to ./output.

BEST FOR

  • •Creating shareable code snippet images for social media posts.
  • •Producing styled code visuals with custom themes, dimensions, titles, and line numbers.

ABOUT CODE-SNIPPET-IMAGE-MCP

MCP server for generating code snippet images is cataloged as an MCP server attributed to suhaibkhan. An MCP server that converts code into styled snippet images with syntax highlighting, selectable themes, and configurable dimensions for sharing on social media. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for generating code snippet images are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which themes are available for the generated images?

Dracula (the default), Monokai, GitHub, and Solarized Dark and Light.

Where are generated images saved?

They are saved in the specified output directory, or ./output by default, with timestamps.

Upstream README

View this exact version on GitHub

README.md · 0791a888fe99 · Fetched 2026-11-13 11:15:29 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Code snippet image MCP server

An MCP (Model Context Protocol) server that generates beautiful code snippet images to post to social media.

Demo

Demo Screenshot

📹 Watch Demo Video

Watch the MCP server generate beautiful code snippet images in real-time

Features

  • Beautiful Code Images: Generate beautiful code snippet images with syntax highlighting
  • Multiple Themes: Support for Dracula, Monokai, GitHub, Solarized Dark/Light themes
  • Syntax Highlighting: Support for multiple programming languages
  • Customizable: Configurable dimensions, themes, and styling options

Installation

npm install
npm run build

Configuration

Add to your MCP configuration file:

{
  "mcpServers": {
    "code-snippet-image-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "code-snippet-image-mcp-server",
        "/custom/output/directory"
      ]
    }
  }
}

The server accepts an optional output directory as the first command line argument. If not provided, it defaults to ./output in the current working directory.

Usage

The MCP server provides one main tool:

create_code_image

Generate a beautiful code snippet image:

Parameters:

  • code (string, required): The code to convert to image
  • language (string, optional): Programming language for syntax highlighting (default: "javascript")
  • theme (string, optional): Color theme (default: "dracula")
  • title (string, optional): Title for the code snippet
  • width (number, optional): Image width in pixels (default: 800)
  • height (number, optional): Image height in pixels (auto if not specified)
  • padding (number, optional): Padding around the code window in pixels (default: 52)
  • backgroundColor (string, optional): Custom background color (overrides theme background)
  • showLineNumbers (boolean, optional): Show or hide line numbers (default: true)

Example:

{
  "code": "const hello = () => console.log('Hello, World!');",
  "language": "javascript",
  "theme": "dracula",
  "title": "Hello World Function",
  "width": 800,
  "height": 600,
  "padding": 52,
  "showLineNumbers": true
}

Supported Themes

Dracula (Default)

Dracula Theme

Monokai

Monokai Theme

GitHub

GitHub Theme

Solarized Dark

Solarized Dark Theme

Solarized Light

Solarized Light Theme

Supported Languages

The server uses highlight.js for syntax highlighting and supports all languages that highlight.js supports, including:

  • JavaScript/TypeScript
  • Python
  • Java
  • C/C++
  • Go
  • Rust
  • PHP
  • Ruby
  • And many more...

Output

Generated images are saved in the specified output directory (or ./output by default) with timestamps.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for generating code snippet images from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/code-snippet-image-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related media design MCP Servers

Alternative and complementary servers in the same category

View all in media design →

A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

8K
Media & Design
Liquid Composer
liquid-composer•frontedu

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

69
Media & Design

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.

1
Media & Design