Open-source 3D architecture software for AECO, scan-to-BIM. Agent-friendly, browser-first, MCP, CLI.
Create and edit 3D building models in your browser, run Pascal locally with its CLI, or connect AI agents through the Model Context Protocol (MCP).
Pascal Editor is a local-first, MIT-licensed building editor for architecture, engineering, construction, and operations (AECO) work. Model sites, buildings, levels, walls, slabs, roofs, openings, rooms, and furniture; bring 3D scans in as reference layers for scan-to-BIM workflows and model editable building elements over them; and let an agent read, edit, validate, and save the same scenes. Built with React Three Fiber and WebGPU.
https://github.com/user-attachments/assets/063c0891-9ae5-4173-bd08-a101d9c3352b
npx @pascal-app/cli editor. See Run the editor locally.MCP is an open protocol that lets AI assistants call tools in other applications; Pascal's MCP server gives an agent tools to inspect, edit, validate, and save building scenes.
Choose where the projects live:
pascal mcp connect, projects stay in ~/.pascal/data/pascal.db, and nothing is uploaded.
No Pascal account or API key is needed.https://editor.pascal.app/api/mcp works in your Pascal account or
organization and needs that account's authorization. How a client authenticates depends on the
client: the Cursor plugin uses browser sign-in, while Claude Code, Codex, and other clients send
an API key created in Pascal Settings. Some hosted
operations, such as Architect runs, consume Pascal credits.The local commands below need the pascal command on your PATH (Node.js 22.23.4+ on 22.x,
24.22.1+ on 24.x, or 26.12.1+):
npm install --global @pascal-app/cli
[!IMPORTANT] Use one active agent client per local CLI service. The standalone local HTTP runtime shares active scene state between clients; use separate
PASCAL_HOMEdirectories and service processes when independent concurrent work is required. The hosted endpoint uses a separate session-isolated bridge.
Register the local server (this runs claude mcp add --scope user pascal -- pascal mcp connect):
pascal mcp setup claude
Or install the plugin, which bundles the skills, the local pascal server, and a hosted
pascal-hosted server that signs in through Pascal's browser OAuth flow from /mcp, with no
API key (leave it unauthenticated to stay local-only):
/plugin marketplace add pascalorg/editor
/plugin install pascal-agent-skills@pascal
Use one or the other. Claude Code 2.1.258 loads both the user-scoped pascal server created by
pascal mcp setup claude and the plugin-provided server. Remove the manual entry
before reloading or restarting Claude Code so only the plugin owns the connection lifecycle:
claude mcp remove --scope user pascal
Use /mcp to remove or disable any project- or local-scoped Pascal connection too. Leaving both
connections active violates the one-active-agent-client-per-local-service requirement.
Install Pascal from the Cursor marketplace. It adds the
skills, a local pascal server launched through npx (no global install needed), and a hosted
pascal-hosted server. For hosted work, open Customize → MCPs and choose Authenticate
beside pascal-hosted; Pascal opens in your browser to sign in and choose a workspace. No API
key is needed. Leave pascal-hosted disconnected for local-only work.
Without the plugin, add the servers you want to .cursor/mcp.json:
{
"mcpServers": {
"pascal": {
"type": "stdio",
"command": "npx",
"args": ["--yes", "--package=@pascal-app/cli", "pascal", "mcp", "connect"]
},
"pascal-hosted": {
"type": "http",
"url": "https://editor.pascal.app/api/mcp",
"auth": {
"CLIENT_ID": "pascal-cursor",
"scopes": ["openid", "profile", "offline_access", "scene:read", "scene:write", "architect:run"]
}
}
}
}
The plugin's own configuration is .cursor-plugin/mcp.json.
Register the local server (this runs codex mcp add pascal -- pascal mcp connect):
pascal mcp setup codex
Or install the plugin, which adds the skills and the same local server. Pascal's hosted OAuth sign-in does not accept the Codex client, so the plugin does not add the hosted server:
codex plugin marketplace add pascalorg/editor
codex plugin add pascal-agent-skills@pascal
For a hosted workspace, register the endpoint with an API key held in an environment v
Your MCP server got a classical Chinese name: 照游窗 / 你的工具领到一个中文名
https://github.com/pascalorg/editor/issues/1351
Labels: None
Thanks for your interest in contributing! We welcome all kinds of contributions — bug fixes, new features, documentation, and ideas.
git clone https://github.com/pascalorg/editor.git
cd editor
bun install
bun dev
The editor will be running at http://localhost:3002. That's it!
Copy .env.example to .env and add a Google Maps API key if you want address search functionality. The editor works fully without it.
We use Biome for linting and formatting. Before submitting a PR:
bun check # Check for issues
bun check:fix # Auto-fix issues
bun run ci # Everything the CI quality job runs: lint, skills, types, tests, build
bun install points git at .githooks/: the pre-commit hook runs Biome on staged files (and fixes what it can), and the pre-push hook lints and runs check-types and tests for the packages your branch changes. Skip once with --no-verify.
Run the whole suite from the repo root:
bun run test # every package, via Turborepo
Run one package while you work on it:
bun --cwd packages/core run test
Use bun run test, not bare bun test. test is one of Bun's own
subcommands, so bun test never reaches the package script — it runs Bun's
collector over every file it can find, including compiled copies under dist/,
and reports inflated counts. bun run test goes through Turborepo, which
builds workspace dependencies first (several packages import theirs from
dist/) and runs each package's own scoped test script.
Every string a person reads in the editor (labels, tooltips, aria-label,
title, placeholders, menus, dialogs, errors) goes through the i18n catalog:
const i18n = usePascalI18n()
<button title={i18n._({ id: 'app.editorNavbar.share', message: 'Share' })} />
bun run i18n:check (part of bun run ci) fails when a file gains a
hardcoded user-visible literal. Run bun run i18n:extract after changing copy.
Scene data, MCP/agent text and developer errors stay English. See
i18n/README.md for catalogs, translation review, the
migration codemod and the pseudo-locale screenshot audit.
| Package | What it does |
|---|---|
packages/core | Scene schema, state management, systems — no UI |
packages/viewer | 3D rendering with React Three Fiber |
apps/editor | The full editor app (Next.js) |
A key rule: packages/viewer must never import from apps/editor. The viewer is a standalone component; editor-specific behavior is injected via props/children.
New node kinds and sidebar panels can ship as a plugin instead of editing the built-ins. Read Create a plugin for the contract, and clone pascalorg/plugin-trees as a worked example.
mainbun devbun run ci to make sure linting, types, tests and the build passMaintainers release every @pascal-app/* package together from the Release workflow; contributors never bump versions in a PR. Two things a PR can change need a maintainer before the next release:
A new package. Add it to PACKAGES in .github/workflows/release.yml, then a maintainer publishes it to npm once by hand and adds its trusted publisher. Until then the workflow fails at its first step, before anything is published:
cd packages/<pkg> && bun run build && npm publish --access public --tag latest --ignore-scripts
The release push. The release commit and tags go to main with the RELEASE_DEPLOY_KEY deploy key, the one identity besides admins that the main ruleset lets through. Keep it in the ruleset's bypass list when the ruleset changes.
Releasing to npm has the trusted-publisher settings, key rotation and recovery steps.
Use the Bug Report template. Include steps to reproduce — this helps us fix things faster.
Use the Feature Request template, or start a Discussion if you want to brainstorm first.
Head to Discussions — we're happy to help!