Cesium Mcp Dev

io.github.gaopengbin由 GitHub 账号 gaopengbin 发布v1.139.2更新于 Oct 25, 2026

CesiumJS API docs, code generation and development tools for IDE AI assistants.

已验证STDIO仅桌面位置与生活开发者工具

概览

AI 生成的概览

本地 MCP 服务器,为 IDE 中的 AI 助手提供 CesiumJS API 文档查询、代码片段生成和 Entity 配置构建能力。

可以做什么
  • 按类名、方法或属性查询 Cesium API 文档,覆盖 Viewer、Entity、Camera、Cesium3DTileset 等 12 个类。
  • 根据自然语言描述生成 Cesium 代码,内置飞行定位、添加标记、加载 GeoJSON、绘制折线与多边形、加载 3D Tiles、热力图等 11 个场景。
  • 构建 8 种 Entity 配置(点、广告牌、标签、折线、多边形、模型、椭圆、立方体),包含材质、样式与贴地设置。
适用场景
适合在 VS Code Copilot、Cursor 或 Claude Desktop 等 IDE 助手中编写 CesiumJS 三维地球或地理空间代码时使用,可直接获得 API 参考和可用代码片段,而不必猜测接口。
运行要求
以本地 stdio 进程运行,通常通过 npx 启动,因此需要 Node.js 以及下载软件包所需的网络访问。未声明任何认证、环境变量或请求头。
安装前请注意
默认会收集使用统计;可通过 CESIUM_TELEMETRY_DISABLED=1、DO_NOT_TRACK=1 或 --no-telemetry 参数关闭。README 说明其对应 Cesium ~1.145.0,其他版本下文档可能不准确。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Cesium Mcp Dev,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

cesium-mcp-dev

Usage statistics are on by default, with a startup notice on stderr. Set CESIUM_TELEMETRY_DISABLED=1, DO_NOT_TRACK=1, or pass --no-telemetry to disable. Collected fields and privacy.

English | 中文

MCP Server for IDE AI assistants -- Cesium API documentation, code generation, and Entity builder.

[npm version] [license]

What is this?

cesium-mcp-dev helps AI coding assistants (GitHub Copilot, Cursor, Claude Code, etc.) write better CesiumJS code by providing API documentation lookup, code snippet generation, and Entity configuration building -- all through the MCP protocol.

The stable stdio server uses MCP SDK v2 and negotiates both MCP 2025-11-25 and 2026-07-28 clients.

IDE AI Assistant <--MCP stdio--> cesium-mcp-dev --> API docs, code snippets, Entity configs

Install & Run

bash
npx -y cesium-mcp-dev

IDE Configuration

VS Code (Copilot)

In .vscode/mcp.json:

json
{  "servers": {    "cesium-dev": {      "command": "npx",      "args": ["cesium-mcp-dev"]    }  }}

Cursor

In .cursor/mcp.json:

json
{  "mcpServers": {    "cesium-dev": {      "command": "npx",      "args": ["cesium-mcp-dev"]    }  }}

Claude Desktop

json
{  "mcpServers": {    "cesium-dev": {      "command": "npx",      "args": ["cesium-mcp-dev"]    }  }}

MCP Tools (3)

cesium_api_lookup

Query Cesium API documentation by class name, method, or property.

Input: "Viewer"Output: Constructor signature, properties, methods, and usage examples

Covered classes: Viewer, Entity, Camera, Cartesian3, Color, GeoJsonDataSource, ImageryLayer, Cesium3DTileset, Material, ScreenSpaceEventHandler, flyTo, setView (12 classes)

cesium_code_gen

Generate Cesium code from natural language descriptions.

Input: "Add a red point marker at Tiananmen Square"Output: Complete TypeScript code snippet ready to use

Built-in snippets: fly to location, add marker, load GeoJSON, draw polyline, draw polygon, load 3D Tiles, switch basemap, click handler, screenshot, heatmap, trajectory animation (11 scenarios)

cesium_entity_builder

Build Entity configurations interactively by specifying type and properties.

Input: type: "polygon", position: {lon: 116.4, lat: 39.9}, color: "#ff6600"Output: Complete Entity definition with material, style, and ground clamping

Supported types: point, billboard, label, polyline, polygon, model, ellipse, box (8 types)

Example Interactions

AI assistant asks: "How do I load a 3D Tiles model from Cesium Ion?"

The assistant calls cesium_api_lookup with "Cesium3DTileset", gets the API reference, then calls cesium_code_gen with the user's specific requirements to generate ready-to-use code.

AI assistant asks: "Create an Entity for a semi-transparent blue polygon"

The assistant calls cesium_entity_builder with type: "polygon", color: "#0066ff", opacity: 0.5 and gets complete code output.

Compatibility

cesium-mcp-devCesium
1.145.x~1.145.0

License

MIT

来源:packages/cesium-mcp-dev/README.md,提交 d2483cd

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.139.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分