Code Snippet Image Mcp Server
@suhaibkhan
关于 Code Snippet Image Mcp Server
An MCP (Model Context Protocol) server that generates beautiful code snippet images to post to social media.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"code-snippet-image-mcp-server": {
"command": "npx",
"args": [
"-y",
"code-snippet-image-mcp-server",
"/custom/output/directory"
]
}
}
}工具
1Generate a beautiful code snippet image with syntax highlighting and styling
概览
What is Code Snippet Image MCP Server?
It is an MCP server that converts code snippets into beautiful images. It integrates with any MCP-compatible client and is intended for developers who want to share or present code in a visually appealing format.
How to use Code Snippet Image MCP Server?
Add the server to your MCP configuration file using the npx -y code-snippet-image-mcp-server command, optionally specifying a custom output directory. The server provides the create_code_image tool with parameters for code, language, theme, title, dimensions, padding, background color, and line numbers.
Key features of Code Snippet Image MCP Server
- Generate beautiful code snippet images
- Syntax highlighting with multiple programming languages
- Customizable color themes (default: dracula)
- Adjustable image width, height, and padding
- Toggle line number visibility
Use cases of Code Snippet Image MCP Server
—
FAQ from Code Snippet Image MCP Server
What programming languages are supported for syntax highlighting?
The language parameter accepts any language identifier supported by the underlying highlighter; the default is "javascript".
What themes are available?
The theme parameter allows any valid theme name; the default is "dracula".
Where are the generated images saved?
The images are saved to the custom output directory specified as the command-line argument when starting the server.
Does the server require Node.js?
Yes, because it is run via npx, Node.js must be installed on the system.
How can I change the output directory?
Pass the desired directory path as the first argument in the args array of the MCP configuration (e.g., "/custom/output/directory").
开发工具 分类下的更多 MCP 服务器
test
cloudwegoThe ultimate LLM/AI application development framework in Go.
nuxt-mcp / vite-plugin-mcp
antfuMCP server helping models to understand your Vite/Nuxt app better.
Stakpak Agent CLI
stakpakShip your code, on autopilot. An open source agent that lives on your machines 24/7 and keeps your apps running. 🦀
Code Index MCP
johnhuang316A Model Context Protocol (MCP) server that helps large language models index, search, and analyze code repositories with minimal setup
MCP Unity Editor (Game Engine)
CoderGamesterModel Context Protocol (MCP) plugin to connect with Unity Editor — designed for Cursor, Claude Code, Codex, Windsurf and other IDEs
评论