blender-2d-mcp
Blender 2D MCP
Model Context Protocol을 통해 Blender 5.x에서 AI 기반 2D 드로잉 및 애니메이션을 지원합니다. MCP 클라이언트(Claude Desktop, Cursor, VS Code Copilot agent mode 등)가 실행 중인 Blender 인스턴스에서 직접 Grease Pencil 드로잉, 키프레임, 머티리얼, 렌더링을 생성할 수 있습니다.
Blender의 GPv3 API(bpy.ops.grease_pencil.*, GreasePencilDrawing)를 기반으로 하며, ahujasid/blender-mcp를 모델로 삼았습니다.
flowchart LR
A[MCP Client<br/>Claude / Cursor / VS Code] <-->|stdio / JSON-RPC| B[blender-2d-mcp<br/>FastMCP server]
B <-->|TCP JSON<br/>localhost:9876| C[addon.py<br/>socket server in Blender]
C -->|main thread| D[Grease Pencil API<br/>GPv3]addon.py— TCP JSON 명령 서버를 내장한 Blender 애드온. 명령은 큐에 들어가며bpy.app.timers를 통해 Blender 메인 스레드에서 실행됩니다.src/blender_2d_mcp/server.py— 애드온의 명령을 MCP 도구로 노출하는 FastMCP stdio 서버.
요구 사항
Blender 5.2 LTS만 지원 (애드온은 이전 빌드에서 활성화를 거부합니다. 사용하는 GPv3 API 표면은 5.2 전용입니다)
Python ≥ 3.10 및
mcp[cli](자동 설치됨)
Related MCP server: Blender MCP Bridge
설치
1. Blender에 애드온 설치
Blender에서: Edit > Preferences > Add-ons > Install…
이 저장소에서
addon.py를 선택합니다.Interface: Blender 2D MCP를 활성화합니다.
사이드바(View > Sidebar 또는 N 키)를 열고 → Blender2DMCP 탭으로 이동합니다.
Connect to MCP Client를 클릭합니다(기본 포트
9876). Blender를 계속 실행 상태로 둡니다.
팁:
blender-2d-mcp --install-addon은addon.py를 다운로드 폴더에 복사하고 이 단계를 출력합니다.
2. MCP 클라이언트 연결
서버는 localhost에만 바인딩됩니다. 로컬 사용에는 인증 토큰이 필요 없습니다.
옵션 A — uvx (설치 없이):
uvx --from "g:\My Projects\blender-2d-mcp" blender-2d-mcp옵션 B — 편집 가능한 설치:
cd "g:\My Projects\blender-2d-mcp"
pip install -e .
blender-2d-mcp # runs the stdio MCP serverClaude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"blender-2d-mcp": {
"command": "uvx",
"args": ["--from", "g:\\My Projects\\blender-2d-mcp", "blender-2d-mcp"]
}
}
}Cursor (.cursor/mcp.json) 또는 일반 stdio 클라이언트:
{
"mcpServers": {
"blender-2d-mcp": {
"command": "C:\\Path\\To\\Python\\Scripts\\blender-2d-mcp.exe",
"args": []
}
}
}VS Code / GitHub Copilot Chat (.vscode/mcp.json — 이 저장소에 이미 포함됨):
{
"servers": {
"blender-2d-mcp": {
"type": "stdio",
"command": "uvx",
"args": ["--from", "g:\\My Projects\\blender-2d-mcp", "blender-2d-mcp"],
"env": {}
}
}
}또는
blender_2d_mcp가 일부 환경에 pip 설치되어 있다면 해당 환경의 Python을 사용하세요:"command": "C:\\Path\\To\\Python\\python.exe", "args": ["-m", "blender_2d_mcp.server"].
사용 방법: Copilot Chat을 열고 모드 드롭다운을 Agent로 전환하면 Blender 도구를 사용할 수 있습니다(#blender-2d-mcp). 명령 팔레트에서 MCP: List Servers로 서버를 시작/중지/재시작할 수 있습니다. mcp.json을 편집한 후 VS Code 창을 다시 로드하세요.
2D 캔버스
setup_2d_scene을 사용하면 뷰포트가 정면 직교 뷰로 설정되어 드로잉 평면이 월드 XZ가 됩니다:
보내는 2D 점 | 월드 위치 | 의미 |
|
| x = 화면 오른쪽, y = 화면 위 |
|
| 그대로 사용 |
단위는 미터(Blender 기본값)입니다. 기본 카메라 줌에서 1920×1080 HD 프레임은 가로로 약 ±5 단위에 걸칩니다.
도구 목록
도구 | 용도 |
| GP 객체, 레이어, 키프레임, 스트로크 수 나열 |
| 일반 장면/객체 내부 정보 |
| 애드온/프로토콜/Blender 버전 + 호환성 상태 |
| 흰색 배경, 정면 직교 뷰, HD 해상도 |
| 레이어 + 검은 스트로크 머티리얼이 있는 새 GP 객체 |
| 레이어 관리 |
| 레이어 스택 편집 |
| 불투명도, 블렌드 모드, 숨기기, 잠금 |
| GPv3 레이어 마스킹(컷아웃 효과) |
| 멱등 빈 키프레임 생성 |
| 키프레임 조작( |
| 자유형 스트로크; 테이퍼링을 위한 점별 반지름/불투명도 프로필 |
| 한 번의 호출로 여러 스트로크 일괄 그리기 |
|
|
| 스트로크 검사 및 편집(이동/크기 조절/회전/부드럽게) |
| 스트로크 + 채우기 색상 |
| 두 키프레임 사이의 중간 프레임 생성(이징 제어) |
| 키프레임 객체 위치/회전/크기 조절 |
| 이전/다음 프레임 고스트 표시 |
| GP 모디파이어: Noise wobble, Smooth, Thickness, Time offset… |
| 재생 헤드, fps, 프레임 범위, 렌더 엔진, 필름 투명도 |
| 캔버스에 맞춘 정면 직교 카메라 |
| 트레이싱용 배경 이미지 빈 객체 |
| 비차단 렌더링, mp4 비디오 출력 포함 |
| AI 기반 편집 되돌리기 |
| 뷰포트 캡처를 이미지로 반환 |
| 탈출구: 모든 |
| 최후의 수단으로 임의의 |
일반적인 워크플로
get_gp_scene_info+get_viewport_screenshot— 현재 상태 확인.새로 시작하는 경우
setup_2d_scene→create_gp_object.gp_draw_shape/gp_draw_stroke로 그리기;frame_number를 전달하여 키 포즈에 스트로크 배치(프레임은 자동 생성). 세부 드로잉을 일괄 처리하려면gp_draw_strokes사용.채워진 도형:
fill_alpha > 0인 머티리얼 생성 후fill=True+fill_material사용.'온 투스' 애니메이션(24fps에서 2프레임마다 키 포즈):
gp_copy_frame으로 포즈 복사,gp_transform_stroke로 조정,gp_interpolate로 중간 프레임 생성. 손으로 그린 듯한 떨림을 위해 NOISE 모디파이어 추가.render_animation(use_video=True)로 렌더링하고get_render_status를 폴링.변경 후 항상 스크린샷을 찍어 시각적으로 확인. 실수는
undo로 되돌릴 수 있음.
개발
pip install -e ".[dev]"
python -m pytest tests/ -v테스트 스위트는 가짜 bpy에 대해 서버 클래스를 AST 리프팅하여 Blender 외부에서 애드온의 TCP 전송을 실행합니다. Blender 설치가 필요 없습니다. 실제 Grease Pencil 데이터를 다루는 핸들러 로직은 Blender 내부에서 검증해야 합니다.
문제 해결
Symptom | Fix |
MCP 클라이언트가 연결할 수 없음 | 먼저 Blender의 사이드바 패널에서 서버를 시작하세요. 포트가 일치하는지 확인하세요(기본값 9876) |
포트가 이미 사용 중입니다 | 사이드바 패널에서 포트를 변경하고 MCP 명령에 |
시작 시 방화벽 프롬프트 | 개인 네트워크에서 Blender를 허용하세요(서버는 localhost에만 바인딩됨) |
스크린샷이 검게 나옵니다 | Blender 창을 한 번 클릭하세요(컴포지터 문제), 또는 3D 뷰포트가 보이도록 하세요. 도구는 오프스크린 GPU 캡처에서 창 캡처로 자동으로 대체됩니다. |
| Blender에서 보이는 3D 뷰포트와 양쪽 경계 프레임에 키프레임이 필요합니다. 하나를 여세요. |
모달 연산자(펜, 브러시 스트로크)가 작동하지 않습니다 | MCP를 통해서는 지원되지 않습니다. 대신 |
| 더 이상 사용되지 않습니다. MCP 서버를 다시 시작하고 애드온과 |
렌더가 멈춘 것처럼 보입니다 | 이제 비차단입니다. |
애드온이 활성화되지 않습니다 | 이 프로젝트는 정확히 Blender 5.2 LTS가 필요합니다(GPv3 API 전용). 이전 빌드는 설계상 거부됩니다. |
라이선스
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceTransforms Blender into an MCP server with 50+ tools for AI-driven 3D workflows, enabling complete control over objects, materials, animations, physics simulations, and rendering through natural language commands.45MIT
- AlicenseAqualityCmaintenanceEnables remote control of Blender via the Model Context Protocol, allowing users to execute Python scripts, query scene data, and generate 3D models from images. It provides a bridge for AI clients to interact directly with Blender's internal environment and automate 3D content creation.36MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI clients to control Blender's 3D workflow via an embedded MCP server.25MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural language control of Blender 3D through MCP clients, allowing creation, modification, and manipulation of 3D models, animations, and scenes.299MIT
Related MCP Connectors
MCP server for NanoBanana AI image generation and editing
MCP server for Flux AI image generation
MCP server for Wan AI video generation
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Praveen16-V/blender-2d-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server