geogebra-mcp is a server based on MCP (Model Context Protocol), whose purpose is to let AI assistants work in GeoGebra Calculator (https://www.geogebra.org/calculator)中实时绘制和编辑平面几何图形。与复制粘贴式的工作流不同,这里的 The AI works in a loop: execute commands, read errors and figure state, verify geometric properties, view screenshots, and correct the figure itself; it can also modify figures according to user requests (for example, "H must be the foot of the perpendicular from A to some side").
Main capabilities:
- On the first tool call, the server opens a Chrome or Edge window and loads GeoGebra Calculator, so the user can watch the drawing process in real time and can also manually drag or edit the figure.
- The tools call the GeoGebra JS API (ggbApplet) inside the page via page.evaluate, without simulating mouse clicks.
- Commands are executed via asyncEvalCommandGetLabels, which loads GeoGebra modules on demand, so proof/script-type commands (such as AreCollinear, Incircle, TriangleCenter, ClosestPoint(line, point), etc.) work correctly.
- Since GeoGebra only returns null for failed commands, the server additionally provides diagnostic information (unknown names, unknown commands, mismatched parentheses, known pitfalls) and warnings (undefined results, reserved names, intersection of two points without a specified index).
- If the window is closed or refreshed, the next tool call reopens the window and restores the most recent figure.
- Undo is managed by the server via XML history, because ggbApplet.undo() cannot roll back API commands.
- It also provides the resources geogebra://rules (construction rules), geogebra://commands (command catalog), and the prompt draw_geometry_problem.
Usage:
- Requirements: Node.js ≥ 20, and Google Chrome or Microsoft Edge (otherwise you can run npx playwright install chromium).
- Supports installation as a Claude Code plugin (after installation, plugin:geogebra-mcp:geogebra can be seen in /mcp, and it can later be updated with claude plugin update geogebra-mcp@geogebra-tools), and also supports Claude Code configuration without using the plugin.
- For other MCP clients such as Claude Desktop and Cursor, you need to edit claude_desktop_config.json (Settings → Developer → Edit Config) or the client's corresponding MCP configuration, then restart the client.
- Configuration is done through environment variables.
- Example question (Vietnamese): "Vẽ tam giác ABC nội tiếp đường tròn (O), đường cao AH, M là trung điểm BC."
Use cases: AI-assisted drawing, verification, and correction of plane geometry constructions, suitable for teaching demonstrations, geometry problem exploration, and other occasions requiring real-time visualization and iterative correction.
Limitations and notes:
- Snapshots and undo history are kept in memory while the server is running.
- The code is under the MIT license, but that license does not cover GeoGebra itself. GeoGebra® is a registered trademark of GeoGebra GmbH; this project is independently developed and does not include GeoGebra software, but instead drives the user's own browser to access geogebra.org, so use of GeoGebra is subject to the GeoGebra license.
- GeoGebra is free for non-commercial use; commercial use (paid materials, training, services, etc.) requires a license from GeoGebra (office@geogebra.org).
- When sharing figures, images, or .ggb files made with this tool, the "Made with GeoGebra®" attribution must be retained and linked to https://www.geogebra.org。
- The release process involves updating version numbers in multiple files, then pushing, npm publish, mcp-publisher publish, and creating a GitHub release.