Get the FREE Ultimate OpenClaw Setup Guide →

mcp -chart-offline

MCP server from liukeyu800/mcp-server-chart-offline

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio liukeyu800-mcp-server-chart-offline node /path/to/mcp-server-chart/build/index.js

How to use

This MCP server is a completely offline chart generation service for Model Context Protocol. It ships with 15 chart types (including line, bar, pie, area, histogram, scatter, word-cloud, radar, treemap, dual-axes, mind-map, network-graph, flow-diagram, and fishbone-diagram) and generates SVG charts entirely on-device without any network calls. Run the server in MCP mode using Node.js by executing the built index file, which exposes an API and a demonstration page for testing. You can interact with the server through the supported MCP tools, or use the included REST-like endpoints to generate charts or fetch supported types. The server returns a base64-encoded SVG data URL suitable for embedding in web pages or apps. To use it in your MCP client configuration, point the server name to the local Node.js process running the built server. The documentation inside the project also includes a demo page and a demonstration API to help you explore the capabilities before integrating it into your workflow.

How to install

Prerequisites:

  • Node.js 18+ (no network access required for runtime; online steps are shown for initial setup)
  • npm (for building and packaging during setup)

Installation steps (offline-ready workflow):

  1. In a development environment with network access:
    • git clone <repository>
    • cd mcp-server-chart
    • npm install
    • npm run build
    • Optionally, package the offline bundle: tar -czf mcp-server-chart-offline.tar.gz .
  2. Transfer the packaged bundle to the target offline environment.
  3. On the target offline environment:
    • Extract the bundle: tar -xzf mcp-server-chart-offline.tar.gz
    • Ensure node and npm are available in PATH
    • Run the server in MCP mode: node build/index.js

Optional: You can run a demo server for testing as described in the README, or configure an MCP client to connect to the local server using the provided mcpServers configuration.

Additional notes

Tips and considerations:

  • The server runs in multiple transport modes; by default it uses stdio, but you can enable SSE or streamable modes if your deployment environment supports HTTP access (as described in the README).
  • The MCP client configuration example shows how to register the offline server with the path to the built index.js and a working working directory. Update the path accordingly in your environment.
  • For offline deployment, you can package the entire project and deploy it without internet access; the build artifacts (build/index.js and related assets) are what you need to run the server.
  • If you encounter issues with chart types, ensure you have the latest offline build and that the data format you provide matches the expected schema for the chosen chart type.
  • The server outputs a base64-encoded SVG data URL; you can embed this directly in img tags or use it as a data URL in your applications.

Related MCP Servers

Sponsor this space

Reach thousands of developers