{"id":50789693,"url":"https://github.com/thecodedaniel/notion_canvas","last_synced_at":"2026-06-12T10:02:43.334Z","repository":{"id":347602013,"uuid":"1194601830","full_name":"TheCodeDaniel/notion_canvas","owner":"TheCodeDaniel","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-28T17:35:58.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-28T17:55:08.036Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheCodeDaniel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-28T15:23:08.000Z","updated_at":"2026-03-28T17:36:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/TheCodeDaniel/notion_canvas","commit_stats":null,"previous_names":["thecodedaniel/notion_canvas"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/TheCodeDaniel/notion_canvas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fnotion_canvas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fnotion_canvas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fnotion_canvas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fnotion_canvas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheCodeDaniel","download_url":"https://codeload.github.com/TheCodeDaniel/notion_canvas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheCodeDaniel%2Fnotion_canvas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34238715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-12T10:02:42.108Z","updated_at":"2026-06-12T10:02:43.321Z","avatar_url":"https://github.com/TheCodeDaniel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NotionCanvas MCP\n\n**Notion → Claude AI → Figma** — Read a Notion page, interpret it with Claude, draw UI screens in Figma.\n\n## How it works\n\n```\nClaude Desktop/Code\n       │  stdio\n       ▼\nnotioncanvas-mcp (Node.js)\n  ├─ Notion API  →  reads page content\n  ├─ Claude API  →  generates DesignIR JSON\n  └─ WebSocket   →  sends commands to Figma plugin\n                           │\n                    Figma Desktop\n               (NotionCanvas Bridge Plugin)\n                   draws frames on canvas\n```\n\n## One-time setup (~5 minutes)\n\n### 1. Clone, install \u0026 build\n\n```bash\ngit clone https://github.com/TheCodeDaniel/notion_canvas\ncd notion_canvas\nnpm install\nnpm run build\n```\n\n### 2. Fill in `.env` and run setup\n\n```bash\ncp .env.example .env\n```\n\nEdit `.env` with your credentials:\n\n| Variable | Where to get it |\n|----------|----------------|\n| `NOTION_TOKEN` | notion.com → Settings → Connections → Develop integrations → New integration (Internal) |\n| `ANTHROPIC_API_KEY` | console.anthropic.com → API Keys |\n| `FIGMA_ACCESS_TOKEN` | figma.com → Settings → Security → Personal access tokens (scopes: `file_content:read`, `file_metadata:read`) |\n| `FIGMA_PAT_EXPIRES` | ISO expiry date of your PAT, e.g. `2026-09-25` |\n\nThen run:\n\n```bash\nnpm run setup\n```\n\nThat's it. The command reads your `.env` and:\n- **Auto-detects** the Claude Desktop config path for your OS (macOS / Windows)\n- **Creates** the config file + directory if they don't exist\n- **Merges** the `notioncanvas` entry without touching other MCP servers you may have\n- **Auto-resolves** the absolute path to `dist/index.js` — nothing to edit manually\n\n### 3. Share Notion pages with your integration\n\nFor each Notion page you want to use:\n1. Open the page in Notion\n2. Click **•••** (top right) → **Connections** → find your integration → connect\n\nIf a page is not shared, the API returns 404.\n\n### 6. Install the Figma Bridge Plugin\n\n1. Open Figma Desktop\n2. **Plugins → Development → Import plugin from manifest**\n3. Select `plugin/manifest.json` from this repo\n4. Click **Run** to start the bridge\n\n## Per-session usage\n\n1. Open Figma Desktop with your target file open\n2. Run the **NotionCanvas Bridge** plugin (Plugins → Development → NotionCanvas Bridge)\n3. Open Claude Desktop — `notioncanvas` should appear as a connected tool\n4. Prompt Claude:\n\n```\nGenerate a mobile UI design from my Notion page https://notion.so/...\ninto Figma file abc123xyz (use a blue theme)\n```\n\n## Available MCP tools\n\n| Tool | Description |\n|------|-------------|\n| `generate_ui_design` | Full pipeline: Notion page → Claude → Figma screens |\n| `generate_screen` | Single screen from a plain-text description (no Notion) |\n| `notion_read_page` | Read and return structured content of a Notion page |\n| `notion_read_db` | Query a Notion database and return all entries |\n| `list_figma_frames` | List all frames in a Figma file |\n| `get_design_status` | Check if the Figma Bridge Plugin is connected |\n\n## Development\n\n```bash\nnpm run dev     # Run with tsx watch (no build needed)\nnpm run build   # Compile TypeScript to dist/\nnpm test        # Run vitest\n```\n\n## Known limitations\n\n- Figma Desktop must be open and the plugin must be running (not headless)\n- Figma PAT expires every 90 days — server warns 14 days before expiry\n- Claude-generated layouts may need minor manual adjustment in Figma\n- Inter font must be available in Figma Desktop (install from Google Fonts if missing)\n\n## Cost\n\nEach `generate_ui_design` call uses ~1,500–4,000 tokens. At Claude Sonnet pricing (~$3/$15 per M tokens), each design generation costs ~$0.01–$0.06.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodedaniel%2Fnotion_canvas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthecodedaniel%2Fnotion_canvas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthecodedaniel%2Fnotion_canvas/lists"}