Asymptote Geometry Renderer▌

by luorivergoddess
Asymptote Geometry Renderer converts math code to precise SVG or PNG diagrams using Asymptote vector graphics for techni
Renders precise geometric images using Asymptote vector graphics language, converting mathematical code into SVG or PNG formats for technical diagrams and visualizations.
best for
- / Mathematics educators creating visual aids
- / Technical documentation requiring precise diagrams
- / Academic papers with geometric illustrations
- / Engineering documentation
capabilities
- / Render geometric diagrams from Asymptote code
- / Generate mathematical visualizations
- / Convert vector graphics to SVG format
- / Convert vector graphics to PNG format
- / Create technical diagrams with precise measurements
what it does
Generates precise geometric diagrams and mathematical visualizations by converting Asymptote vector graphics code into SVG or PNG images.
about
Asymptote Geometry Renderer is a community-built MCP server published by luorivergoddess that provides AI assistants with tools and capabilities via the Model Context Protocol. Asymptote Geometry Renderer converts math code to precise SVG or PNG diagrams using Asymptote vector graphics for techni It is categorized under developer tools. This server exposes 1 tool that AI clients can invoke during conversations and coding sessions.
how to install
You can install Asymptote Geometry Renderer in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Asymptote Geometry Renderer is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
@luorivergoddess/mcp-geo
An MCP (Model Context Protocol) server for generating precise geometric images using Asymptote. This server allows AI models compatible with MCP to request image generation by providing Asymptote code.
Prerequisites
Before using this server, please ensure you have the following installed:
- Node.js: Version 16.x or higher is recommended. You can download it from nodejs.org.
- Asymptote: This is a critical dependency. The
asycommand-line tool must be installed and accessible in your system's PATH.- Visit the Asymptote official website for download and detailed installation instructions.
- Common installation methods:
- macOS (via Homebrew):
brew install asymptote - Debian/Ubuntu Linux:
sudo apt-get install asymptote - Windows: Often installed as part of TeX distributions like MiKTeX or TeX Live. Ensure the Asymptote
bindirectory is added to your PATH.
- macOS (via Homebrew):
- The server will attempt to check for
asy -versionon startup and print an error if it's not found.
Installation
To install this package globally (if you intend to run connect command directly) or as a dependency in another project:
npm install @luorivergoddess/mcp-geo
If you've cloned the repository and want to run it locally for development:
- Clone the repository.
- Install dependencies:
npm install - Build the project:
npm run build
Usage
Starting the Server
Once the package is installed (e.g., globally or linked locally), you can start the MCP server using the connect command provided by this package. This command is intended to be invoked by an MCP client.
npx @luorivergoddess/mcp-geo connect
Or, if you have cloned the repository and built it:
node dist/cli.js
The server will start and listen for JSON-RPC messages on stdin/stdout, using the @modelcontextprotocol/sdk.
MCP Client Integration
Configure your MCP-compatible client (e.g., VS Code with Copilot Agent Mode, Claude Desktop) to use this server. This usually involves telling the client how to start the server, which would be the npx @luorivergoddess/mcp-geo connect command.
Available Tool: renderGeometricImage
The server exposes one primary tool:
- Name:
renderGeometricImage - Description: Renders an image from Asymptote code.
- Input Schema:
{ "type": "object", "properties": { "asyCode": { "type": "string", "description": "A string containing complete and valid Asymptote code to be compiled. The server executes this code directly. Ensure necessary `import` statements (e.g., `import graph;`) and settings (e.g., `unitsize(1cm);`) are included within this code block if needed." }, "outputParams": { "type": "object", "description": "Optional parameters to control the output image.", "properties": { "format": { "type": "string", "enum": ["svg", "png"], "description": "The desired output image format. "svg" for scalable vector graphics (recommended for diagrams and plots), "png" for raster graphics. Defaults to "svg" if not specified." }, "renderLevel": { "type": "number", "description": "For PNG output only. Specifies the rendering quality (supersampling level for antialiasing). Higher values (e.g., 4 or 8) produce smoother images but take longer to render and result in larger files. Asymptote default is 2. This server defaults to 4 if not specified and format is "png". Ignored for SVG output." } } } }, "required": ["asyCode"] } - Output:
The tool returns a
CallToolResultcontaining an array of content parts.- If successful, it includes an
ImageContentpart with:type: "image"mimeType: "image/svg+xml"or"image/png"data: "<base64_encoded_image_data>"
- It may also include a
TextContentpart with logs from Asymptote. - If an error occurs, it throws an
McpError.
- If successful, it includes an
Example renderGeometricImage call (JSON for arguments field):
{
"asyCode": "draw(unitsquare); fill(unitsquare, lightblue);",
"outputParams": {
"format": "png",
"renderLevel": 4
}
}
Client Compatibility Notes:
- Some MCP clients may have limitations on supported image MIME types.
- For instance, if you are using this server with a client that does not support
image/svg+xml(e.g., certain versions or configurations of "Cherry Studio" as reported), please ensure you request thepngformat by including"outputParams": { "format": "png" }in your tool call arguments. The server defaults tosvgif no format is specified.
Author
luorivergoddess
License
ISC
FAQ
- What is the Asymptote Geometry Renderer MCP server?
- Asymptote Geometry Renderer is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Asymptote Geometry Renderer?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
Asymptote Geometry Renderer is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated Asymptote Geometry Renderer against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: Asymptote Geometry Renderer is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
Asymptote Geometry Renderer reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend Asymptote Geometry Renderer for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: Asymptote Geometry Renderer surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
Asymptote Geometry Renderer has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, Asymptote Geometry Renderer benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired Asymptote Geometry Renderer into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
Asymptote Geometry Renderer is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.