MCP Hub
Back to servers

cesium-mcp-dev

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

Registry
Updated
Mar 14, 2026

Quick Install

npx -y cesium-mcp-dev
Cesium MCP

Cesium MCP

AI-Powered 3D Globe Control via Model Context Protocol

Connect any MCP-compatible AI agent to CesiumJS — camera, layers, entities, spatial analysis, all through natural language.

Website · 中文 · Getting Started · API Reference

License: MIT CI npm bridge npm runtime npm dev


Demo

https://github.com/user-attachments/assets/8a40565a-fcdd-47bf-ae67-bc870611c908

Packages

PackageDescriptionnpm
cesium-mcp-bridgeBrowser SDK — embeds in your CesiumJS app, receives commands via WebSocketnpm
cesium-mcp-runtimeMCP Server (stdio) — exposes 19 tools + 2 resources to any MCP clientnpm
cesium-mcp-devIDE MCP Server — CesiumJS API helper for coding assistantsnpm

Architecture

┌──────────────┐   stdio    ┌──────────────────┐  WebSocket  ┌──────────────────┐
│  AI Agent    │ ◄────────► │  cesium-mcp-     │ ◄─────────► │  cesium-mcp-     │
│  (Claude,    │   MCP      │  runtime         │   JSON-RPC  │  bridge          │
│   Cursor…)   │            │  (Node.js)       │             │  (Browser)       │
└──────────────┘            └──────────────────┘             └──────────────────┘
                                                                     │
                                                              ┌──────▼──────┐
                                                              │  CesiumJS   │
                                                              │  Viewer     │
                                                              └─────────────┘

Quick Start

1. Install the bridge in your CesiumJS app

npm install cesium-mcp-bridge
import { CesiumMcpBridge } from 'cesium-mcp-bridge';

const bridge = new CesiumMcpBridge(viewer, { port: 9100 });
bridge.connect();

2. Start the MCP runtime

npx cesium-mcp-runtime

3. Connect your AI agent

Add to your MCP client config (e.g. Claude Desktop):

{
  "mcpServers": {
    "cesium": {
      "command": "npx",
      "args": ["-y", "cesium-mcp-runtime"]
    }
  }
}

Now ask your AI: "Fly to the Eiffel Tower and add a red marker"

19 Available Tools

CategoryTools
Camerafly_to, get_camera
Layersadd_geojson, add_tileset, add_terrain, add_imagery, remove_layer, get_layers
Markersadd_marker
Drawingdraw_shape
Measurementmeasure
Heatmapadd_heatmap
Interactionhighlight, screenshot
Sceneset_scene_style, get_scene_info
Querycoord_pick, feature_query, spatial_query
Analysisviewshed_analysis

Examples

See examples/minimal/ for a complete working demo with all 19 commands.

Development

git clone https://github.com/gaopengbin/cesium-mcp.git
cd cesium-mcp
npm install
npm run build

Version Policy

The major.minor version tracks CesiumJS (e.g. 1.139.x targets Cesium ~1.139.0). Patch versions are independent for MCP feature iterations.

License

MIT

Reviews

No reviews yet

Sign in to write a review