pxnt
MCP Serverpxntpublic

chart mcp

MCP-Chart-Server is a powerful Node.js service that generates beautiful charts using React and Recharts, with server-side rendering and no browser required. Built on the Model Context Protocol (MCP), it offers seamless integration with AI assistants to create bar and line charts with extensive customization options.

Repository Info

1
Stars
0
Forks
1
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

MCP-Chart-Server is a powerful Node.js service that generates beautiful charts using React and Recharts, with server-side rendering and no browser required. Built on the Model Context Protocol (MCP), it offers seamless integration with AI assistants to create bar and line charts with extensive customization options.

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

MCP Chart Server v2 (Node v20.19.2 Fix)

This is a fixed version of the MCP Chart Server to work with Node.js v20.19.2. The original version had issues with ESM module loading in newer Node.js versions, causing an internal assertion error.

Fixed Issues

The following issues were fixed:

  1. Updated dynamic imports to use file:// URL protocol with absolute paths
  2. Added .js extensions to all imports for proper ESM resolution
  3. Added file path utilities (fileURLToPath, dirname, resolve) for proper module resolution
  4. Removed dynamic import in main index.ts file to avoid ESM loading issues

How to Use

Prerequisites

  • Node.js v20.19.2 (as specified in package.json)

Installation

npm install

Build

npm run build

Run

npm run start

Testing the Server

You can test the server using:

npm run simple-server

Or with the example:

npm run example

If You Still Encounter Issues

If you still encounter ESM module loading issues, you can run the fix script:

chmod +x fix-esm-imports.sh
./fix-esm-imports.sh
npm run build

Using with LibreChat

This fixed version should now work correctly when integrated with LibreChat using Node.js v20.19.2.

Quick Start

1

Clone the repository

git clone https://github.com/pxnt/chart-mcp
2

Install dependencies

cd chart-mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerpxnt
Repochart-mcp
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation