Skip to main content
Glama
MCP ASCII Charts

MCP ASCII Charts

mcp-ascii-charts

npm version License: MIT Node.js CI npm downloads GitHub stars

A Model Context Protocol server for generating ASCII charts directly in your terminal.

🎯 Features

  • Pure ASCII charts - Lightweight visualizations for terminal environments

  • MCP integration - Compatible with Claude, Cursor, and other MCP clients

  • No GUI dependencies - Perfect for servers and SSH environments

  • Highly customizable - Configurable dimensions, colors, and styles

Related MCP server: MCP Standardized Tool Demo

📊 Supported chart types

  • Line Chart - Line graphs for temporal trends

  • Bar Chart - Horizontal and vertical bar charts

  • Scatter Plot - Scatter plots for data correlation

  • Histogram - Distribution histograms

  • Sparkline - Inline mini-charts

🚀 Quick installation

Available on npm

Step 1: Install globally

# Install globally from npm (required for MCP servers)
npm install -g mcp-ascii-charts

# Or install from GitHub
npm install -g git+https://github.com/gianlucamazza/mcp-ascii-charts.git

Step 2: Configure your MCP client

Add to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "ascii-charts": {
      "command": "mcp-ascii-charts"
    }
  }
}

Step 3: Restart Claude Desktop

After configuration, restart Claude Desktop to load the MCP server.

💡 Usage examples

Line chart

Monthly Sales (2024)
     100 ┤                                        ╭╮    
      90 ┤                                      ╭─╯╰╮   
      80 ┤                                    ╭─╯   ╰╮  
      70 ┤                                  ╭─╯      │  
      60 ┤                               ╭──╯        ╰╮ 
      50 ┤                            ╭──╯            │ 
      40 ┤                         ╭──╯               ╰─
      30 ┤                      ╭──╯                   
      20 ┤                   ╭──╯                      
      10 ┤                ╭──╯                         
       0 ┼────────────────╯                            
         Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec

Bar chart

Team Performance
Frontend  ████████████████████████████ 85%
Backend   ██████████████████████ 67%
DevOps    ████████████████ 54%
QA        ██████████████████████████████████ 92%

🛠️ MCP tools

Function

Description

create_line_chart

Generate line charts for temporal data

create_bar_chart

Create horizontal/vertical bar charts

create_scatter_plot

Visualize correlations between variables

create_histogram

Show frequency distributions

create_sparkline

Mini-charts for compact dashboards

📋 Parameters

{
  "data": [10, 25, 30, 45, 60],
  "labels": ["Q1", "Q2", "Q3", "Q4", "Q5"],
  "title": "Quarterly Growth",
  "width": 60,
  "height": 15,
  "color": "blue"
}

🎨 Customization

  • Dimensions: Configure width and height

  • Colors: ANSI color support (12 colors available)

  • Flexible data input: Arrays with optional labels

  • Unicode rendering: Box-drawing characters for smooth visuals

🛠️ Development

# Clone the repository
git clone https://github.com/gianlucamazza/mcp-ascii-charts.git
cd mcp-ascii-charts

# Install dependencies
npm install

# Run in development mode
npm run dev

# Run tests
npm test

# Build for production
npm run build

📚 Documentation

🐛 Issues & Support

📄 License

MIT License - see LICENSE file for details.

🙏 Contributing

Contributions are welcome! Please read our Contributing Guidelines for details on how to submit pull requests, report issues, and contribute to the project.

⭐ Star History

Star History Chart

Available Tools

5 tools
create_bar_chartB

Create horizontal or vertical ASCII bar charts

Inputs: data (required), labels, title, width, +3 more.

create_histogramC

Create ASCII histograms for frequency distribution

Inputs: data (required), title, width, height, +2 more.

create_line_chartC

Generate ASCII line charts for temporal data visualization

Inputs: data (required), labels, title, width, +2 more.

create_scatter_plotB

Generate ASCII scatter plots for correlation analysis

Inputs: data (required), labels, title, width, +2 more.

create_sparklineB

Generate compact ASCII sparklines for inline charts

Inputs: data (required), title, width, color.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting a specific chart type: bar charts, histograms, line charts, scatter plots, and sparklines. The descriptions explicitly differentiate their use cases (e.g., 'frequency distribution' for histograms vs. 'temporal data visualization' for line charts), leaving no ambiguity for an agent to misselect.

    Naming Consistency5/5

    All tool names follow a perfectly consistent 'create_*_chart/plot/line' pattern with snake_case, using 'create' as the verb and descriptive nouns (e.g., bar_chart, histogram, line_chart). This uniformity makes the set predictable and easy to understand at a glance.

    Tool Count5/5

    With 5 tools, the server is well-scoped for generating ASCII charts, covering common chart types without bloat. Each tool earns its place by addressing a distinct visualization need, making the count appropriate for the domain's typical use cases.

    Completeness5/5

    The tool set provides complete coverage for ASCII chart generation, including bar charts, histograms, line charts, scatter plots, and sparklines. This covers the core chart types needed for data visualization, with no obvious gaps that would hinder an agent's ability to create relevant charts.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      A MCP server for data visualization. It exposes tools to render charts (line, bar, pie, scatter, heatmap, etc.) from data and returns plots as either image/text/mermaid diagram.
      2
      4
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      A modern Python MCP server for rendering customizable charts (line, bar, pie, scatter, area, combined dashboards) with Plotly, supporting export to PNG, SVG, and base64, and terminal charts with ANSI output.
      9
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that enables AI agents to create beautiful ASCII diagrams using Unicode box-drawing characters, with support for stateful canvas operations, multiple shape types, and style customization.
      2
      -