Get the FREE Ultimate OpenClaw Setup Guide →

mcp -jsxgraph

A Model Context Protocol server for generating mathematical visualizations using JSXGraph. This is a TypeScript-based MCP server that provides interactive mathematical chart generation capabilities for functions, geometry, parametric curves, and more.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio dxd214-mcp-server-jsxgraph npx -y mcp-server-jsxgraph

How to use

This MCP server provides interactive JSXGraph-based mathematical visualizations. It exposes a suite of 13 visualization tools (function graphs, parametric curves, geometry, vector fields, linear systems, function transformations, quadratic analysis, exponential/logarithm plots, rational/irrational functions, equation systems, conic sections, polynomial steps, and number line inequalities) that you can invoke through the MCP protocol. You can run the server locally in multiple transports: STDIO for desktop IDEs, SSE for web streaming at http://localhost:1122/sse, or the HTTP streamable transport at http://localhost:1122/mcp. The server will load tools dynamically based on the registered tooling registry and environment, and will process ListTools and CallTool requests to discover and execute specific visualizations.

To get started, run the server with npx as shown in the minimal configuration. Once running, you can verify availability via the SSE self-test (npx -y mcp-server-jsxgraph --transport sse --port 1122) and then access the generated visualizations through the appropriate endpoints. Use the provided tool names (e.g., generate_function_graph, generate_parametric_curve, generate_geometry_diagram, etc.) in your MCP clients to generate JSXGraph visualizations or export data for embedding in educational materials.

How to install

Prerequisites:

  • Node.js (recommended LTS) and npm installed on your system
  • Basic understanding of MCP protocol usage

Installation steps:

  1. Install or run from npx without a global install:

    npm install -g npm@latest

  2. Run the MCP server via npx (no local install required):

    npx -y mcp-server-jsxgraph

  3. Optional: install locally for repeated use (in a project directory):

    mkdir my-mcp-project && cd my-mcp-project npm init -y npm install mcp-server-jsxgraph npx mcp-server-jsxgraph

  4. If you prefer Docker-based runs, use the docker-compose setup described in the README (Docker SSE/Streamable services) and start the containers to expose ports 1123 and 1122 as documented.

Additional notes

Environment and configuration tips:

  • Default transport is STDIO. For web or streaming clients, run with --transport sse (1122) or --transport http (1122 for streamable if configured).
  • The primary port for SSE is 1122; the SSE endpoint is http://localhost:1122/sse. For Streamable HTTP, use http://localhost:1122/mcp.
  • Tool discovery is dynamic; ensure any environment-based filtering (if used in deployment) permits JSXGraph tool registration.
  • The npm package name is mcp-server-jsxgraph, and the canonical command invocation via npx is npx -y mcp-server-jsxgraph.
  • If you encounter port conflicts or transport misconfigurations, adjust the transport flag or run with explicit ports as shown in the Quick Reference section of the README.

Related MCP Servers

Sponsor this space

Reach thousands of developers