
shahidhustles/tldraw-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
이 프로젝트는 모델 Context Protocol (MCP)을 사용하여 Claude AI로 Tldraw을 통합합니다. 자연적인 언어 지시에 근거를 둔 Claude를 창조하고 조작하기 위하여 허용합니다.
개요
이 프로젝트는 모델 Context Protocol (MCP)을 사용하여 Claude AI로 Tldraw을 통합합니다. 자연적인 언어 지시에 근거를 둔 Claude를 창조하고 조작하기 위하여 허용합니다. - Node.js 18+ 설치 - Claude 데스크톱 설치 - Visual Studio Code (추천) %AppData%\Claude\claude desktop config.json에서 Claude 데스크탑 구성 파일을 만들거나 편집합니다. 컴파일된 서버 파일에 절대 경로로 경로를 바꾸십시오. 당신은 뒤에 오는 순서에 있는 3개의 성분을 시작할 필요가 있습니다: - 시작 Claude 데스크탑 - 오픈 설정 (그레이드 아이콘) - "Advanced"탭으로 이동 - "MCP Servers"에서 "tldrawserver" 활성화 - "Apply"을 클릭하십시오 1. 브라우저를 http://localhost:3000로 엽니다. 2. 당신은 tldraw 화포 3.를 보아야 합니다 Claude Desktop에서 같은 명령을 시도하십시오. 완전히 통합을 테스트하려면 다음 Claude 명령을 시도하십시오
개요(AI 번역)
이 프로젝트는 모델 Context Protocol (MCP)을 사용하여 Claude AI로 Tldraw을 통합합니다. 자연적인 언어 지시에 근거를 둔 Claude를 창조하고 조작하기 위하여 허용합니다.
시작하기
# 필수품
- Node.js 18+ 설치
- Claude 데스크톱 설치
- Visual Studio Code (추천)
설치 및 설치
-
** 복제 및 의존성 설치 : **
-
** 서버 코드 구축:**
-
** Claude 데스크톱 구성: **
%AppData%\Claude\claude_desktop_config.json]에서 Claude 데스크탑 구성 파일을 만들거나 편집합니다:
컴파일된 서버 파일에 절대 경로로 경로를 바꾸십시오.
신청 시작
당신은 뒤에 오는 순서에 있는 3개의 성분을 시작할 필요가 있습니다:
-
HTTP 서버 시작:
-
Next.js 프론트엔드 시작:
-
** 시작 Claude 데스크탑 및 MCP 서버 활성화:**
- Claude 데스크톱 출시
- 설정 열기 (gear icon)
- "Advanced"탭으로 이동
- "MCP Servers"에서 "tldrawserver"를 활성화
- "Apply"을 클릭하십시오
설정 확인
- 브라우저를
http://localhost:3000로 엽니다. - 당신은 tldraw 화포를 보아야 합니다
- Claude Desktop에서 같은 명령을 시도하십시오.
시스템 테스트
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Tldraw MCP Server
This project integrates tldraw with Claude AI using the Model Context Protocol (MCP). It allows Claude to create and manipulate diagrams based on natural language instructions.
Getting Started
Prerequisites
- Node.js 18+ installed
- Claude Desktop installed
- Visual Studio Code (recommended)
Installation and Setup
-
Clone and install dependencies:
cd tldraw-mcp npm install cd server npm install -
Build the server code:
cd server npm run build -
Configure Claude Desktop:
Create or edit the Claude Desktop configuration file at
%AppData%\Claude\claude_desktop_config.json:{ "mcpServers": { "tldrawserver": { "command": "node", "args": ["D:\\tldraw-mcp\\server\\dist\\index.js"] } } }Replace the path with the absolute path to the compiled server file.
Starting the Application
You need to start three components in the following order:
-
Start the HTTP Server:
# In the server directory npm run start:http -
Start the Next.js Frontend:
# In the root directory npm run dev -
Start Claude Desktop and enable the MCP Server:
- Launch Claude Desktop
- Open settings (gear icon)
- Go to the “Advanced” tab
- Under “MCP Servers”, enable “tldrawserver”
- Click “Apply”
Verifying the Setup
- Open your browser to
http://localhost:3000 - You should see the tldraw canvas
- In Claude Desktop, try a command like:
Create a flowchart with two steps: "Start" and "Process Data"
Testing the System
To fully test the integration, try the following Claude commands:
-
Create a simple diagram:
Create a rectangle labeled "Database" at position (200, 300) with width 150 and height 100 -
Create and connect shapes:
Create an ellipse labeled "User" at position (100, 100) with width 120 and height 80, and a rectangle labeled "API" at position (300, 100) with width 150 and height 80. Then connect the "User" shape to the "API" shape. -
Create a flowchart:
Create a flowchart with the following steps: 1. "Start Process" 2. "Collect Data" 3. "Analyze Results" 4. "Generate Report" -
Add standalone text:
Add text "CONFIDENTIAL" at position (400, 50) with font size 24 -
Get a snapshot of the current diagram:
Take a snapshot of the current diagram
Verifying Event Flow
To verify that events are flowing correctly through the system:
- Open your browser’s developer tools (F12 or Ctrl+Shift+I)
- Go to the Console tab
- Look for log messages with prefixes:
[EventBus]- Events being broadcast internally[HTTP Server]- Messages from the HTTP server
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"tldrawserver": {
"command": "node",
"args": ["D:\\tldraw-mcp\\server\\dist\\index.js"]
}
}
}