Labsco
MCP SERVER

Code Snippet Image

by suhaibkhan

Turn a block of code into a syntax-highlighted image with the theme, background colour, padding, dimensions, line numbers and title all set on the call.

Image GenerationVerified
Summary
The snippet comes back as a file, so what used to be a code block in a chat can go into a slide or an issue as it is.

Every styling decision is a parameter rather than a setting, so the look is fixed when the image is made and a second version means a second call. The tool renders what it is handed: nothing here reads a file from your project, so the image shows exactly the text passed in and nothing that surrounds it.

What it is

A single-tool image renderer for code snippets, writing the result into an output directory on the host.

What you get
  • create_code_image, which renders a passed-in code block in a named language as a syntax-highlighted image.
  • The styling decided on the call: theme, backgroundColor, padding, width, height, showLineNumbers and a title.
Requirements

Nothing to supply — no account, no key. A directory on disk for the server to write the generated images into.

Setup effort

One command — npx -y code-snippet-image-mcp-server /custom/output/directory