ChartMCP

by doramart

297 downloads
Not rated
GitHub

Description

# Chart MCP Server 基于 MCP 协议的图表生成服务器,支持从各种数据源读取数据并生成图表配置。 ## 功能特点 - 支持多种数据源: - 文件格式:CSV、XLSX、XLS、JSON - 数据库:MySQL、SQLite、MariaDB - 智能图表生成: - 基于用户提示词生成合适的图表 - 支持多种图表类型(柱状图、折线图、饼图等) - 自动进行数据分析和处理 ## 发布到 mcp.so 1. 确保已安装 Node.js (v18+) 2. 安装依赖: ```bash npm install ``` 3. 构建项目:…

About

# Chart MCP Server 基于 MCP 协议的图表生成服务器,支持从各种数据源读取数据并生成图表配置。 ## 功能特点 - 支持多种数据源: - 文件格式:CSV、XLSX、XLS、JSON - 数据库:MySQL、SQLite、MariaDB - 智能图表生成: - 基于用户提示词生成合适的图表 - 支持多种图表类型(柱状图、折线图、饼图等) - 自动进行数据分析和处理 ## 发布到 mcp.so 1. 确保已安装 Node.js (v18+) 2. 安装依赖: ```bash npm install ``` 3. 构建项目: ```bash npm run build ``` 4. 按照 mcp.so…

Details

Author
doramart
Downloads
297
Categories
Other

- Supports CSV, XLSX, XLS, and JSON file formats
- Connects to MySQL, SQLite, and MariaDB databases
- Generates charts from natural‑language prompts
- Supports bar, line, pie, and other chart types
- Automatically analyzes and processes input data

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name ChartMCP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Requires Node.js v18+. Install dependencies with npm install, build with npm run build, then publish to an MCP host. Configure the UPLOAD_DIR environment variable for file uploads and any database‑related variables as needed.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "chartmcp": {
            "chartMCP": {
                "name": "chartMCP",
                "command": "npx",
                "args": [
                    "build/index.js"
                ],
                "env": {
                    "API_KEY": "",
                    "BASE_URL": "https://api.deepseek.com",
                    "AI_MODEL": "deepseek-chat",
                    "MAX_FILE_SIZE": "512000",
                    "UPLOAD_DIR": ""
                }
            }
        }
    }
}

McpServers

{
    "chartMCP": {
        "name": "chartMCP",
        "command": "npx",
        "args": [
            "build/index.js"
        ],
        "env": {
            "API_KEY": "",
            "BASE_URL": "https://api.deepseek.com",
            "AI_MODEL": "deepseek-chat",
            "MAX_FILE_SIZE": "512000",
            "UPLOAD_DIR": ""
        }
    }
}

Chart MCP Server

基于 MCP 协议的图表生成服务器,支持从各种数据源读取数据并生成图表配置。

功能特点

- 支持多种数据源:
- 文件格式:CSV、XLSX、XLS、JSON
- 数据库:MySQL、SQLite、MariaDB
- 智能图表生成:
- 基于用户提示词生成合适的图表
- 支持多种图表类型(柱状图、折线图、饼图等)
- 自动进行数据分析和处理

发布到 mcp.so

1. 确保已安装 Node.js (v18+)
2. 安装依赖:

npm install

3. 构建项目:

npm run build

4. 按照 mcp.so 的发布向导上传项目

API 说明

服务器提供以下 MCP 工具:

1. generate_chart
- 参数:
- dataResource: 数据资源 URI (格式: data://{filename})
- prompt: 图表生成提示词
- 功能:根据数据和提示词生成图表配置

环境变量配置

发布到 mcp.so 时,需要在平台配置以下环境变量:

- UPLOAD_DIR: 文件上传目录
- (其他数据库相关变量根据需要配置)

许可证

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.