mcpField
C
cesium-mcp-dev

cesium-mcp-dev

Local
github.com/gaopengbinDeveloper Tools147Updated 6d ago

About cesium-mcp-dev

cesium-mcp-dev is an MCP server for AI coding assistants working with CesiumJS. It provides API documentation lookup, code snippet generation, and Entity configuration building through three focused tools.

Key features

  1. 01Look up Cesium API references
  2. 02Generate Cesium code from descriptions
  3. 03Build Entity configurations by type
  4. 04Return usage examples and signatures

Use cases

  1. 01Check a Cesium class or method while coding
  2. 02Generate a CesiumJS snippet from a task description
  3. 03Construct a styled Entity definition

MCP support

Exposes three Cesium development tools over MCP: API lookup, code generation, and Entity configuration building. IDE AI assistants connect to the server using stdio.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"gaopengbin-cesium-mcp-dev": {
"command": "npx",
"args": [
"-y",
"cesium-mcp-dev"
]
}
}
}
Run commandnpx -y cesium-mcp-dev

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmcesium-mcp-dev1.139.2

Tools

3

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
querystringYesCesium class name or keyword, such as "Viewer", "Entity", "Color", or "flyTo"
categoryenumNoQuery categoryclass | method | property | all

Details

From the project 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

npx -y cesium-mcp-dev

IDE Configuration

VS Code (Copilot)

In .vscode/mcp.json:

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

In .cursor/mcp.json:

{
  "mcpServers": {
    "cesium-dev": {
      "command": "npx",
      "args": ["cesium-mcp-dev"]
    }
  }
}
Claude Desktop
{
  "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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.