شعار Pixelorama MCP

Pixelorama MCP

المجتمع
abidoo22

An open-source Model Context Protocol (MCP) server that connects AI models to Pixelorama, enabling automated pixel art generation, layer management, and asset creation from plain text prompts.

الناشرabidoo22
المستودعPixelorama-MCP
اللغةGDScript
التفريعات
8
النجوم
40
الأدوات المتاحة
0
نوع نقل البياناتstdio
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح Pixelorama MCP إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 0

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 40، والنسخ المتفرعة: 8 في المستودع المرتبط.

🎨 Pixelorama-MCP

Let AI draw pixel art directly inside Pixelorama.

For the ones who can imagine it but can't draw it.

License: MIT GitHub stars MCP Server Pixelorama Node.js Tools

"Moonlit Sanctuary", painted live inside Pixelorama by an LLM via the Pixelorama-MCP toolset.


Pixelorama-MCP is an open-source Model Context Protocol (MCP) server that seamlessly bridges AI assistants—including Claude Desktop, Cursor, Google Antigravity, ChatGPT, Gemini, Qwen, and custom autonomous agents—directly to Pixelorama, the free and open-source pixel art editor built on Godot Engine.

You describe your creative vision in natural language. The AI computes geometry, palettes, shading math, dithering, and layers, then draws them live onto your Pixelorama canvas. Everything created is a native Pixelorama project (.pxo) with complete undo history, layer hierarchies, and cel animations that you can continue editing by hand.

Note: This is an independent open-source community project. It is not officially affiliated with or endorsed by Orama Interactive.


📑 Table of Contents


🚀 Key Capabilities

  • 🖌️ Natural Language to Pixel Art: Prompt sprites, UI panels, game assets, textures, and landscapes in plain English.
  • ⚡ Ultra-Fast Drawing Throughput: Features draw_pixels_fast accepting flat coordinate/color arrays ([x,y,col] or [x,y,r,g,b,a]) running at ~0.02 ms/pixel—over 100× faster than per-pixel roundtrips.
  • ⚙️ Direct GDScript Eval Hook (eval_gdscript): Execute dynamic GDScript in-engine with cross-layer sampling (api.get_layer_image), bulk Image / buffer assignment, auto-fallback for := type inference, and pinpoint line-number error reporting.
  • 🧱 Stable Layer Identifiers (layer_id): Layer tools return persistent UUID handles, allowing safe layer targeting by ID, name, or index without index-shift corruption.
  • 🌈 Advanced Shading & Gradients: Non-destructive radial and linear gradients with Bayer dithering, alpha blending (blend: true), elliptical falloff, smoothstep curves, and bloom glow.
  • 📐 Composition & Scene Planning (generate_scene_plan): Generates horizon placement, rule-of-thirds focal points, value silhouettes, depth hierarchies, and layer plans for large scenes.
  • 👁️ Visual Inspection & Magnification: capture_canvas_image supports custom bounding regions, downscaling (< 1.0) to save tokens, and nearest-neighbor magnification (up to 32×) for pixel-level multimodal visual inspection.
  • 🎞️ Animation & Cel Cloning: Create walk cycles, frame tweens, onion skinning, and frame-rate configs with deep-cloning support.
  • 📦 Godot 4 Game Asset Pipeline: Direct export to Godot 4 SpriteFrames (.tres), Godot 4 TileSet, APNG, GIF, and spritesheets.

🎮 Example Gallery

Every asset below was created by an AI agent communicating with Pixelorama through this MCP server:


⚡ Quick Start

Setting up takes under 5 minutes.

Prerequisites

1. Clone & Build the MCP Server

bash
git clone https://github.com/abidoo22/Pixelorama-MCP.git
cd Pixelorama-MCP/mcp-server
npm install
npm run build

2. Install the Bridge Extension in Pixelorama

  1. Open Pixelorama and navigate to Edit → Preferences (Ctrl+,) → Extensions.
  2. Click Add Extension and select pixelorama-plugin/PixMcpBridge.pck (or download it from Releases).
  3. Ensure the extension is Enabled, then restart Pixelorama.
  4. The bridge will listen locally on http://127.0.0.1:7373. You can verify by opening:
    bash
    curl http://127.0.0.1:7373/health
    # Returns: {"status":"ok","server":"pix-mcp-bridge","pixelorama_version":"...","api_version":9}

3. Connect Your MCP Client

Claude Desktop

Add this entry to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{
  "mcpServers": {
    "pixelorama": {
      "command": "node",
      "args": [
        "--max-old-space-size=4096",
        "/absolute/path/to/Pixelorama-MCP/mcp-server/dist/index.js"
      ]
    }
  }
}

Cursor IDE

  1. Open Cursor Settings → Features → MCP Servers.
  2. Click Add New MCP Server.
  3. Set Name to pixelorama, Type to command.
  4. Set Command to: node --max-old-space-size=4096 /absolute/path/to/Pixelorama-MCP/mcp-server/dist/index.js

Now restart your AI client, open Pixelorama, and give it your first drawing prompt!


💬 Prompt Recipes & Ideas

Try pasting any of these prompts into your connected AI:

PurposeExample Prompt
RPG Item Icon"Draw a 64×64 golden dragon amulet with an emerald gemstone core, metallic bevel highlights, and a soft drop shadow."
Character Sprite"Create a 32×32 pixel art necromancer character with purple robes, glowing cyan eyes, and a magical staff."
Animation Loop"Make a 4-frame 32×32 idle breathing animation for a slime monster with smooth squash and stretch."
Landscape / Scene"Paint a 320×180 atmospheric night scene: a pine forest silhouette, distant aurora borealis with radial glow, and a moonlit lake reflection."
Game Tileset"Create a 16×16 top-down dungeon tileset on separate layers: cobble floor, cracked stone wall, wooden chest, and an iron dungeon door."
Procedural Scripting"Use eval_gdscript to generate a 64×64 cellular automata cave map with rocky walls and mossy ground."

💡 Tip: Mentioning light sources ("top-left lighting"), palettes ("PICO-8" or "Game Boy 4-color"), and resolution gives sharper, more cohesive art.


🖼️ Image Importer & Pixelizer

Turn any reference image or AI-generated photo into transparent pixel art:

bash
node docs/examples/import_universal_asset.js

The smart asset importer automatically detects solid or gradient backgrounds, extracts the foreground subject, snaps pixels to grid dimensions, and streams the asset straight into Pixelorama.


🏗️ How It Works

┌─────────────────────────────────────────────────────────┐
│        AI Assistant (Claude / Cursor / Antigravity)      │
└──────────────────────────┬──────────────────────────────┘
                           │  JSON-RPC over stdio (MCP)
                           ▼
┌─────────────────────────────────────────────────────────┐
│             Pixelorama-MCP Server (Node.js)             │
│   • Schema Coercion & Validation (Zod)                  │
│   • Mathematical Color & Geometry Helpers               │
│   • Dynamic GDScript Runtime Wrapper                    │
└──────────────────────────┬──────────────────────────────┘
                           │  HTTP REST (localhost:7373)
                           ▼
┌─────────────────────────────────────────────────────────┐
│        PixMcpBridge Plugin (GDScript / Godot 4)         │
│   • UndoRedo Integration (Full History & Reversible)    │
│   • Engine-Speed Flat Buffer Rasterization (0.02ms/px)  │
│   • ExtensionsApi Integration (Layers, Frames, Cels)    │
└──────────────────────────┬──────────────────────────────┘
                           │
                           ▼
┌─────────────────────────────────────────────────────────┐
│            Pixelorama Pixel Art Editor Canvas           │
└─────────────────────────────────────────────────────────┘

All communication occurs locally via 127.0.0.1:7373. No canvas data is transmitted externally outside your local machine.


🛠️ Toolset Overview

Pixelorama-MCP exposes over 70 tools organized by domain:

1. Canvas & Project Management

  • create_canvas: Initialize new projects with custom width, height, and fill.
  • list_canvases / switch_canvas / close_canvas: Multi-tab project workspace management.
  • crop_to_content: Trim empty borders without clipping cels or losing coordinate alignment.
  • scale_canvas: Upscale/downscale projects with nearest-neighbor scaling.
  • fit_viewport: Center and scale the active viewport onto the canvas.

2. High-Performance Drawing

  • draw_pixels_fast: High-throughput flat array drawer ([x,y,col] or [x,y,r,g,b,a]) executing at 0.02 ms/px.
  • draw_pixels: Batch drawing of pixel arrays in a single atomic undoable action.
  • draw_rect, draw_ellipse, draw_line, draw_polygon, draw_path: Primitive rasterizers with explicit alpha and blend support.
  • fill_area: Flood fill algorithm with 8-direction adjacency and color tolerance.
  • draw_text: Render crisp bitmap typography directly onto pixel cels.

3. Layer System & Organization

  • add_layer / delete_layer: Create and delete layers, returning persistent layer_id handles.
  • get_layers: Inspect layer hierarchy, blend modes, opacity, and IDs.
  • set_layer_opacity / set_layer_blend_mode / set_layer_visibility: Control compositing.
  • duplicate_layer / merge_layers / reorder_layers: Non-destructive layer management.

4. Shading & Procedural FX

  • apply_gradient: Linear and radial gradients with Bayer dithering, elliptical shapes, bloom falloff, and alpha preservation.
  • apply_glow: Neon and magical bloom generation on active layer or dedicated additive glow layer.
  • apply_drop_shadow: Cast silhouette drop shadows with configurable offsets and opacity.
  • eval_gdscript: Execute dynamic GDScript code in-engine on canvas images with full engine API access.

5. Color, Palettes & Diagnostics

  • get_palette_usage: Bounded color frequency histogram (top: N) with total unique count.
  • color_replace / adjust_hsv: Non-destructive hue shifting, saturation adjustment, and recoloring.
  • clean_isolated_pixels: Remove stray single-pixel noise.
  • check_seamless_tile: Validate and auto-stitch repeating tile wrap seams.

6. Animation & Frames

  • add_frame, duplicate_frame, delete_frame, switch_frame: Frame sequencing.
  • copy_cel, clear_cel, tween_cel: Cel operations with reversible undo integration.
  • set_fps / set_frame_duration: Playback configuration.

7. Export & Game Engine Integration

  • export_image (PNG), export_gif, export_apng, export_aseprite_json.
  • export_godot_spriteframes: Ready-to-use Godot 4 SpriteFrames resource (.tres).
  • export_godot_tileset: Ready-to-use Godot 4 TileSet resource.

See the full Tool Reference for argument tables and JSON examples.


🗂️ Documentation


🔧 Troubleshooting & FAQ

The AI client cannot see the tools

  • Ensure you ran npm run build inside mcp-server/.
  • Verify the path in your client configuration is an absolute path to mcp-server/dist/index.js.
  • Fully restart your AI client after editing configuration.

Pixelorama is open, but commands time out

  • Verify that PixMcpBridge.pck is enabled under Edit → Preferences → Extensions.
  • Check that Pixelorama was restarted after enabling the extension.
  • Test curl http://127.0.0.1:7373/health to confirm the local port is reachable.

Which AI models produce the best art?

  • Models with strong spatial reasoning and mathematical capability (such as Claude 3.5 Sonnet, Claude 3.7 Sonnet, GPT-4o, and Gemini 1.5 Pro) produce remarkable shading, dithering, and composition.

🤝 Contributing

Contributions are warmly welcome! Whether you want to add new procedural drawing tools, improve Godot integration, or submit artwork prompts:

  1. Fork the repository and create a feature branch (git checkout -b feature/awesome-tool).
  2. Make your edits and ensure tests pass (node test_all_fixes.js).
  3. Submit a Pull Request with a clear description of the enhancement.

📄 License

Pixelorama-MCP is released under the MIT License.


🙏 Credits & Acknowledgments


استخدم MCP الخاص بـ Pixelorama MCP مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل Pixelorama MCP، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف Pixelorama MCP كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ Pixelorama MCP.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "pixelorama-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ Pixelorama MCP، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ Pixelorama MCP.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام Pixelorama MCP لمساعدتي في هذه المهمة؟
Pixelorama MCP
بالتأكيد. قرأته.
إليك ما وجدته باستخدام Pixelorama MCP.

الأسئلة الشائعة

ما استخدامات خادم MCP Pixelorama MCP؟

Pixelorama MCP هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP Pixelorama MCP مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام Pixelorama MCP مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP Pixelorama MCP مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل Pixelorama MCP، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP Pixelorama MCP بـ TypingMind؟

يعمل Pixelorama MCP عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP Pixelorama MCP في TypingMind؟

يتيح Pixelorama MCP إمكانات MCP يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP Pixelorama MCP؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان Pixelorama MCP يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇