New advertisers: 50% off your first month with code FIRSTMONTHSee slots
cgajs avatar

CityVistion MCP (CityEngine / CGA.js / NL2CGA)

cgajs/cityvistion-mcp

Converts natural language into CGA rules and compiles them into GLB 3D models via cloud services.

tools
5
auth
Secret needed
transport
STDIO, HTTP
env var
1
last updated
Nov 19, 2026
View on GitHub

What it does

  • Generates CGA rule source from plain English with nl2cga_generate_cga, and compiles CGA rules online into GLB models with cgajs_compile_cga
  • Offers inspect_cga, list_demos, and get_demo for parsing CGA and browsing official examples, and these need no API key
  • Requires separate API keys for CGA.js, NL2CGA, and CityEngine, or one shared key, and runs locally via uvx or as a hosted streamable-http endpoint
  • Designed for generating procedural 3D building models from text prompts and for exploring CityEngine CGA examples

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

nl2cga_generate_cga自然语言生成 CGA 规则源码 (NL2CGA: natural language to CGA rule source code).

自然语言生成 CGA 规则源码 (NL2CGA: natural language to CGA rule source code).

No parameter schema in public metadata yet.

cgajs_compile_cgaCGA 规则在线编译为三维模型 GLB (CGA.js: compile CGA rules online into a 3D GLB model).

CGA 规则在线编译为三维模型 GLB (CGA.js: compile CGA rules online into a 3D GLB model).

No parameter schema in public metadata yet.

inspect_cga

No parameter schema in public metadata yet.

list_demos

No parameter schema in public metadata yet.

get_demo

No parameter schema in public metadata yet.

Configuration

CITYVISTION_API_KEY*secret

Unified API key for CityEngine / CGA.js / NL2CGA (get one at https://www.cgajs.com/dashboard.html). Also accepts per-service keys CGAJS_API_KEY / NL2CGA_API_KEY / CITYENGINE_API_KEY.

Readme

cityvistion-mcp

mcp-name: com.cgajs/cityvistion-mcp

一套 MCP server 打通三个云端服务,让任何支持 MCP 的大模型客户端(Claude Code、codex、Gemini CLI、Kimi Code、Qwen Code、GLM Coding、Cherry Studio、Cline、Cursor、MiniMax Agent…)直接完成「一句话 → CGA 规则 → 三维模型」全链路。

  • NL2CGA:自然语言生成 CGA 规则源码(nl2cga_generate_cga)
  • CGA.js:CGA 规则在线编译为三维模型 GLB(cgajs_compile_cga)
  • CityEngine:官方引擎解析、一句话直接出模、官方案例库查询(cityengine_*,其中 inspect_cga / list_demos / get_demo 免 key)

安装

pip install cityvistion-mcp
# 或 uvx cityvistion-mcp(免安装直接跑)

API Key

服务环境变量签发地址
CGA.jsCGAJS_API_KEYhttps://www.cgajs.com 控制台
NL2CGANL2CGA_API_KEYhttps://www.nl2cga.com 「我的 Key」
CityEngineCITYENGINE_API_KEYhttps://www.cityengine.cn 用户中心「插件 Key」
统一 keyCITYVISTION_API_KEY单服务未配专属 key 时回退尝试

客户端配置

Claude Code(.mcp.json 或 claude mcp add):

{
  "mcpServers": {
    "cityvistion": {
      "command": "uvx",
      "args": ["cityvistion-mcp"],
      "env": {
        "CGAJS_API_KEY": "<你的key>",
        "NL2CGA_API_KEY": "<你的key>",
        "CITYENGINE_API_KEY": "<你的key>"
      }
    }
  }
}

codex CLI(~/.codex/config.toml):


View the full README on GitHub

Details

Repository
github.com/cgajs/cityvistion-mcp
Website
www.cgajs.com/ai-access.html
Category
3D, CAD & Modeling
Package
cityvistion-mcp
Transport
STDIO, HTTP
Auth
Required
Registry
MCP registry, active

More from cgajs

All 2

Similar to CityVistion MCP (CityEngine / CGA.js / NL2CGA)

More 3D, CAD & Modeling