geogebra-mcp
This MCP server lets an AI draw, inspect, verify, edit, and export plane-geometry figures live on GeoGebra Calculator.
Run GeoGebra commands in order, with per-command results, warnings, failures, and hints; assigning an existing name redefines it.
Read the current figure: objects, types, definitions, values, coordinates, visibility, dependencies, and dependents.
Take screenshots of the drawing area or full GeoGebra window for visual checking.
Evaluate expressions without adding objects, e.g. angles, distances, collinearity, parallelism, radius, area.
Change object style: color, visibility, label, caption, thickness, line style, point size, fill, fixed.
Delete objects and their dependents, or clear the whole figure.
Undo changes made through the server.
Save, restore, and list named figure snapshots during the server run.
Fit the view to visible points/circles, and toggle axes or grid.
Export the figure as a
.ggbGeoGebra file or.pngimage.
geogebra-mcp
An MCP server that lets an AI (Claude Desktop, Claude Code, Cursor, …) draw and edit plane-geometry figures directly on GeoGebra® Calculator (https://www.geogebra.org/calculator).
Unlike the copy/paste workflow of the GeoGebra AutoDraw AI extension, the AI here works in a loop: it runs commands, reads errors and the figure state, verifies properties, looks at a screenshot, and fixes the figure itself — and it can edit the figure on request ("H must be the foot from A").

Made with GeoGebra® — https://www.geogebra.org
Unofficial project, not affiliated with or endorsed by GeoGebra GmbH. See License & GeoGebra.
How it works
AI client ──MCP (stdio)──► geogebra-mcp ──Playwright──► Chrome window: geogebra.org/calculator
└─ window.ggbApplet (GeoGebra JS API)On the first tool call the server opens a Chrome (or Edge) window on GeoGebra Calculator. The user watches the figure being drawn and can drag/edit it by hand.
Tools call the GeoGebra JS API (
ggbApplet) inside the page throughpage.evaluate— no simulated clicks.Commands run through
asyncEvalCommandGetLabels, which lazy-loads GeoGebra modules, so prover/scripting commands (AreCollinear,Incircle,TriangleCenter,ClosestPoint(line, point)…) work.GeoGebra reports a failed command only as
null, so the server adds its own diagnostics (unknown names, unknown commands, unbalanced brackets, known pitfalls) and warnings (undefined results, reserved names, two-point intersections without an index).If the window is closed or reloaded, the next tool call reopens it and restores the last known figure.
Undo is managed by the server (XML history), because
ggbApplet.undo()does not revert API commands.
Related MCP server: inkscape_mcp
Tools
Tool | Purpose |
| Run commands in order; per-command result, created/removed objects, warnings, failure hints. Assigning to an existing name redefines it. |
| Objects with type, definition, value, coordinates, visibility, |
| PNG of the drawing area (or the whole window) for visual checking. |
| Evaluate expressions without adding objects ( |
| Color, visibility, label, caption, thickness, line style, point size, fill, fixed. |
| Delete objects (and their dependents). |
| Start a new figure. |
| Revert changes made through the server. |
| Save / restore / list named versions. |
| Fit every visible point and circle in view (1:1 ratio), toggle axes/grid. |
| Save as |
Also: resource geogebra://rules (construction rules), resource geogebra://commands (command catalog), prompt draw_geometry_problem.
Setup
Requirements: Node.js ≥ 20 and Google Chrome or Microsoft Edge (otherwise run npx playwright install chromium).
Claude Code (plugin)
claude plugin marketplace add haison8x/geogebra-mcp
claude plugin install geogebra-mcp@geogebra-toolsThe server then shows up in /mcp as plugin:geogebra-mcp:geogebra. Update later with claude plugin update geogebra-mcp@geogebra-tools.
Claude Code (without the plugin)
claude mcp add geogebra -- npx -y geogebra-mcpClaude Desktop, Cursor and other MCP clients
Edit claude_desktop_config.json (Settings → Developer → Edit Config), or your client's MCP config:
{
"mcpServers": {
"geogebra": {
"command": "npx",
"args": ["-y", "geogebra-mcp"]
}
}
}Then restart the client and ask, for example: "Vẽ tam giác ABC nội tiếp đường tròn (O), đường cao AH, M là trung điểm BC."
From source
git clone https://github.com/haison8x/geogebra-mcp.git
cd geogebra-mcp
npm install
npm run build
claude mcp add geogebra -- node /path/to/geogebra-mcp/dist/index.jsConfiguration (environment variables)
Variable | Default | Meaning |
| try | Browser channel |
|
|
|
|
| Browser profile (keeps the GeoGebra login). One server instance per profile. |
|
| Page to open |
Development
Releasing: bump the version in package.json, .claude-plugin/plugin.json, .claude-plugin/marketplace.json, server.json (both version fields) and the pinned version in .mcp.json. Then push, npm publish, mcp-publisher publish, and create a GitHub release.
npm run build
npm run smoke # end-to-end test through a real MCP client (headless)
npm run smoke -- --headed # same, with a visible windowNotes
Snapshots and undo history live in memory while the server runs.
License & GeoGebra
The code in this repository is MIT-licensed (LICENSE). That license does not cover GeoGebra.
GeoGebra® is a registered trademark of GeoGebra GmbH. This project is independent and contains no GeoGebra software; it drives your own browser on geogebra.org, so your use of GeoGebra falls under the GeoGebra license.
GeoGebra is free for non-commercial use. Commercial use (paid materials, training, services…) needs a license from GeoGebra (office@geogebra.org).
When you share figures, images or
.ggbfiles made with this tool, keep the attribution "Made with GeoGebra®" with a link to https://www.geogebra.org.
See NOTICE for details.
Available Tools
11 toolsggb_clearClear the figureADestructive
Remove every object to start a new figure (can be reverted with ggb_undo).
Inputs: no named parameters.
ggb_deleteDelete objectsADestructive
Delete objects. WARNING: everything that depends on them is deleted too (see usedBy in ggb_get_state). To change an object, redefine it with ggb_run_commands instead.
Inputs: names (required).
ggb_evaluateEvaluate expressionsARead-only
Evaluate GeoGebra expressions against the current figure WITHOUT adding objects, to verify the construction. Examples: "Angle(B, A, C)", "Distance(B, M) == Distance(M, C)", "AreCollinear(A, H, O)", "AreParallel(Line(A, D), Line(B, C))", "Radius(omega)", "Area(poly1)".
Inputs: expressions (required).
ggb_exportExport the figureB
Save the figure to a local file: "ggb" (GeoGebra file, can be opened again in GeoGebra) or "png" (image).
Inputs: path (required), format (required).
ggb_fit_viewFit the viewA
Zoom/pan so every visible point and circle fits in the drawing area (1:1 axis ratio). Optionally show/hide axes and grid.
Inputs: padding, show_axes, show_grid.
ggb_get_stateRead the figureARead-only
List the objects currently in the figure: name, type, definition, value, point coordinates, visibility, dependsOn (parents) and usedBy (objects that would change or be deleted with it). Always call this before fixing a figure: the user may have edited it by hand.
Inputs: names, include_hidden.
ggb_run_commandsRun GeoGebra commandsA
Run GeoGebra commands on the live figure, in order (English command names, e.g. "A = (-1, 6)", "M = Midpoint(B, C)", "ShowLabel(a, false)", "SetVisibleInView(h, 1, false)", "Delete(P)"). Assigning to an existing name REDEFINES that object and its dependents update. Returns, per command: ok, created/removed objects, warnings (undefined objects, names not created) and, for failures, hints about the likely cause.
Inputs: commands (required), stop_on_error.
ggb_screenshotScreenshot the figureARead-only
Return a PNG image of the drawing area so you can check the figure visually (overlapping labels, figure off-screen, wrong shape). Set full_window to capture the whole GeoGebra window including the algebra panel.
Inputs: full_window.
ggb_set_styleStyle objectsC
Change how objects look: color, visibility, label, caption (text shown instead of the name), thickness, line style, point size, fill, fixed.
Inputs: names (required), color, fixed, caption, +6 more.
ggb_snapshotSave / restore a versionB
Save the current figure under a name, restore a saved one, or list saved names. Snapshots live while the server runs.
Inputs: action (required), name.
ggb_undoUndoA
Revert the last change(s) made through this server (run_commands, set_style, delete, clear, snapshot restore).
Inputs: steps.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Each tool has a clearly distinct purpose: ggb_run_commands mutates the figure while ggb_evaluate only reads, ggb_delete removes specific objects while ggb_clear wipes all, and ggb_snapshot (in-memory) is clearly separated from ggb_export (file). Overlaps are explicitly called out and resolved in the descriptions.
All tools use the ggb_ prefix with snake_case, mostly verb_noun (ggb_run_commands, ggb_get_state, ggb_set_style, ggb_fit_view). The few single-verb names (ggb_delete, ggb_undo, ggb_clear) are natural and consistent with the convention.
11 tools is well within the ideal 3-15 range and each tool earns its place by covering a distinct facet of figure manipulation. Nothing feels redundant or padded.
The surface covers execution, inspection, visual check, evaluation, styling, deletion, undo, snapshots, view fitting, export, and clearing—a strong lifecycle. Minor gaps exist (no import/load of an existing .ggb file, though snapshot restore partially covers this), but core workflows are complete.
Maintenance
Related MCP Connectors
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Hosted YouTube MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Official MCP server for Agentwork — delegate tasks to AI agents with human-in-the-loop
Hosted Screenshots MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseBqualityDmaintenanceAn MCP server that enables AI models to generate precise geometric images by providing Asymptote code, supporting both SVG and PNG output formats.16ISC
- AlicenseBqualityBmaintenanceMCP server that lets AI agents drive Inkscape — interactively alongside the GUI or headlessly from the CLI8102MIT
- FlicenseNot gradedqualityCmaintenanceAn MCP server that bridges Claude with AutoCAD, enabling to generate architectural floor plans, draw geometry, and export DXF files just by describing what you need in natural language.-
- AlicenseAqualityDmaintenanceMCP server that generates 3Blue1Brown-style math videos with Manim and AI voiceover directly inside Claude Desktop.4224 npmMIT