npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@iflow-mcp/fallenangels520-geogebra

v1.0.0

Published

MCP server for GeoGebra computation and drawing capabilities

Downloads

21

Readme

GeoGebra MCP Server

A Model Context Protocol (MCP) server that provides access to GeoGebra's computation and drawing capabilities through a standardized interface.

Features

Computation Tools

  • eval_command: Execute GeoGebra commands
  • eval_command_cas: Computer Algebra System calculations
  • math_calculation: Mathematical expression evaluation
  • geometry_construction: Geometric constructions and property calculations

Drawing & Export Tools

  • export_png: Export constructions as PNG images
  • export_pdf: Export constructions as PDF documents
  • set_xml: Load constructions from XML
  • get_xml: Get current construction as XML
  • refresh_views: Refresh all views

Installation

  1. Install dependencies:
cd mcp-geogebra
npm install
  1. Make the server executable:
chmod +x src/index.js

Configuration

Add to your MCP client configuration (e.g., for Claude Code):

{
  "mcpServers": {
    "geogebra": {
      "command": "node",
      "args": ["/path/to/mcp-geogebra/src/index.js"],
      "env": {
        "GEOGEBRA_BASE_URL": "http://localhost:3000"
      }
    }
  }
}

Usage Examples

Basic Math Calculation

// Calculate integral of x^2 from 0 to 1
{
  "name": "math_calculation",
  "arguments": {
    "expression": "Integral(x^2, 0, 1)"
  }
}

CAS Calculation

// Solve quadratic equation
{
  "name": "eval_command_cas", 
  "arguments": {
    "command": "Solve(x^2 - 4 = 0, x)",
    "rounding": "2"
  }
}

Geometry Construction

// Create triangle and get area
{
  "name": "geometry_construction",
  "arguments": {
    "construction": "A=(0,0); B=(4,0); C=(0,3); poly1=Polygon(A,B,C)",
    "properties": ["area", "perimeter"]
  }
}

Export Image

// Export as high-quality PNG
{
  "name": "export_png",
  "arguments": {
    "exportScale": 2.0,
    "transparent": true,
    "dpi": 600
  }
}

API Reference

eval_command

Execute a GeoGebra command.

Parameters:

  • command (string): GeoGebra command to execute

Example: "f(x)=x^2; Integral(f,0,1)"

eval_command_cas

Execute CAS command with precision control.

Parameters:

  • command (string): CAS command
  • rounding (string): Rounding precision (default: "2")

Example: "Solve(x^3 - 2x + 1 = 0, x)"

export_png

Export construction as PNG image.

Parameters:

  • exportScale (number): Scale factor (default: 1.0)
  • transparent (boolean): Transparent background (default: false)
  • dpi (number): Resolution (default: 300)
  • greyscale (boolean): Greyscale output (default: false)

export_pdf

Export construction as PDF document.

Parameters:

  • scale (number): Scale factor (default: 1.0)
  • filename (string): Output filename
  • dpi (number): Resolution (default: 72)

math_calculation

Evaluate mathematical expressions.

Parameters:

  • expression (string): Math expression
  • variables (object): Variable values

Example:

{
  "expression": "a^2 + b^2",
  "variables": {"a": 3, "b": 4}
}

geometry_construction

Create geometric constructions and get properties.

Parameters:

  • construction (string): Construction commands
  • properties (array): Properties to calculate

Supported properties: area, perimeter, coordinates

Environment Variables

  • GEOGEBRA_BASE_URL: Base URL of GeoGebra server (default: http://localhost:3000)

Development

Project Structure

mcp-geogebra/
├── src/
│   ├── index.js          # Main server entry point
│   ├── tools.js          # Tool definitions
│   └── geogebra-client.js # GeoGebra API client
├── package.json
└── README.md

Adding New Tools

  1. Define tool in src/tools.js
  2. Add handler method in src/index.js
  3. Implement client method in src/geogebra-client.js

Testing

Run the server directly:

npm start

License

MIT License