
moussaabbadla/code-screenshot-mcp
Browser automationЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
moussaabbadla/code-screenshot-mcp - кандидат на сервер MCP, импортированный из https://github.com/moussaabbadla/code-screenshot-mcp.
Обзор
moussaabbadla/code-screenshot-mcp - кандидат на сервер MCP, импортированный из https://github.com/moussaabbadla/code-screenshot-mcp.
Обзор (машинный перевод)
MCP-сервер для создания красивых скриншотов кода непосредственно от Claude
Обзор
Сервер Model Context Protocol (MCP), который позволяет Claude генерировать скриншоты кода, выделенные синтаксисом, с профессиональными темами. Поддерживает прямое чтение файлов, выбор строк, визуализацию git diff и пакетную обработку.
Особенности
5 профессиональных тем: Дракула, Норд, Монокай, GitHub Light, GitHub Dark ** Интеграция файлов**: Код скриншота непосредственно из файловых путей с выбором диапазона строк Git Diff Support: Визуализируйте постановочные или нестационарные изменения Батчная обработка: Обработка нескольких файлов одновременно Auto Language Detection: поддерживает более 20 языков программирования ** Интеграция с клодом**: Работает с Claude Desktop и Claude Code
##Установка
Предпосылки
Конфигурация
Быстрая настройка (Код Клода)
** Ручная настройка (Claude Desktop)**
Добавьте файл конфигурации Claude в ~/Library/Application Support/Claude/claude_desktop_config.json:
Перезагрузите Claude Desktop после настройки.
Настройка
Быстрый старт
###Фундаментальный скриншот
###Из файла
Конкретные линии
###Гит Дифф
Обработка пакетов
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Code Screenshot Generator MCP
MCP server for generating beautiful code screenshots directly from Claude
Overview
A Model Context Protocol (MCP) server that enables Claude to generate syntax-highlighted code screenshots with professional themes. Supports direct file reading, line selection, git diff visualization, and batch processing.
Features
- 5 Professional Themes: Dracula, Nord, Monokai, GitHub Light, GitHub Dark
- File Integration: Screenshot code directly from file paths with line range selection
- Git Diff Support: Visualize staged or unstaged changes
- Batch Processing: Process multiple files simultaneously
- Auto Language Detection: Supports 20+ programming languages
- Native Claude Integration: Works with Claude Desktop and Claude Code
Installation
Prerequisites
npm install -g code-screenshot-mcp
Configuration
Quick Setup (Claude Code):
claude mcp add code-screenshot-mcp
Manual Setup (Claude Desktop):
Add to your Claude configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"code-screenshot": {
"command": "code-screenshot-mcp"
}
}
}
Restart Claude Desktop after configuration.
Development Setup
git clone https://github.com/MoussaabBadla/code-screenshot-mcp.git
cd code-screenshot-mcp
npm install
npm run build
Quick Start
Basic Screenshot
"Generate a code screenshot of this TypeScript function with Nord theme:
function fibonacci(n: number): number {
if (n <= 1) return n;
return fibonacci(n-1) + fibonacci(n-2);
}
"
From File
"Screenshot src/index.ts with Dracula theme"
Specific Lines
"Screenshot lines 20-45 of src/generator.ts with Monokai theme"
Git Diff
"Screenshot my git diff with GitHub Dark theme"
Batch Processing
"Screenshot src/index.ts, src/generator.ts, and src/templates.ts"
Available Themes
dracula- Dark purple theme (default)nord- Arctic blue-tinted thememonokai- Classic dark themegithub-light- Clean light themegithub-dark- GitHub’s dark theme
API Reference
Установка
This server does not publish a one-line install command.
Open the repository installation guide Новичок в MCP? Начните с руководства на mcpskill.org →Конфигурация
{
"mcpServers": {
"code-screenshot": {
"command": "code-screenshot-mcp"
}
}
}