Cesium MCP Server

1

Add it to Claude Code

Run this in a terminal.

Run in terminal
claude mcp add cesium-mcp -- npx -y cesium-mcp-runtime
README.md

AI-Powered 3D Globe Control via Model Context Protocol

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

Demo

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

Packages

Package Description npm
cesium-mcp-bridge Browser SDK — embeds in your CesiumJS app, receives commands via WebSocket
cesium-mcp-runtime MCP Server (stdio) — 58 tools (12 toolsets) + 2 resources, dynamic discovery
cesium-mcp-dev IDE MCP Server — CesiumJS API helper for coding assistants

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"

49 Available Tools

Tools are organized into 12 toolsets. Default mode enables 4 core toolsets (~31 tools). Set CESIUM_TOOLSETS=all for everything, or let the AI discover and activate toolsets dynamically at runtime.

i18n: Tool descriptions default to English. Set CESIUM_LOCALE=zh-CN for Chinese.

Toolset Tools
view (default) flyTo, setView, getView, zoomToExtent, saveViewpoint, loadViewpoint, listViewpoints, exportScene
entity (default) addMarker, addLabel, addModel, addPolygon, addPolyline, updateEntity, removeEntity, batchAddEntities, queryEntities, getEntityProperties
layer (default) addGeoJsonLayer, listLayers, removeLayer,

Tools (3)

flyToFly the camera to a specific location or entity.
addMarkerAdd a marker to the 3D globe.
addGeoJsonLayerAdd a GeoJSON data layer to the scene.

Environment Variables

CESIUM_TOOLSETSControls which toolsets are enabled (e.g., 'all').
CESIUM_LOCALESets the language for tool descriptions (e.g., 'zh-CN').

Configuration

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

Try it

Fly to the Eiffel Tower and add a red marker.
List all currently active layers on the globe.
Add a GeoJSON layer from this URL: [insert-url].
Save the current viewpoint as 'my-favorite-view'.
Query all entities within the current view extent.

Frequently Asked Questions

What are the key features of Cesium MCP?

Natural language control of CesiumJS 3D globes. Dynamic discovery of 58 tools across 12 toolsets. Supports camera navigation, entity management, and layer control. WebSocket-based bridge for browser-to-AI communication. Configurable locale and toolset activation.

What can I use Cesium MCP for?

Rapidly navigating to specific geographic coordinates via AI chat. Automating the visualization of geospatial datasets on a 3D globe. Building interactive 3D map applications controlled by LLMs. Assisting developers in coding CesiumJS applications with an IDE-integrated helper.

How do I install Cesium MCP?

Install Cesium MCP by running: npx cesium-mcp-runtime

What MCP clients work with Cesium MCP?

Cesium MCP works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Cesium MCP docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare