UrlChart

Render charts as PNG images from a URL — Google Image Charts / Image-Charts compatible API.

我該用這個嗎

品質與安全性

A
說明品質
93%
結構描述完整度
95%
命名品質
100%
汙染風險
100%
權限相符程度
100%
協定合規性
100%

發現項目(1)

  • MEDIUMTool 'generate_chart_image' description contains placeholder text在 generate_chart_image 中

根據工具定義與協定合規性的自動化分析。

上下文成本

~1,066Token(工具定義)
~2.2 KB典型回應大小
中等的注意力影響(128k 上下文的 0.83%)

這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。

安裝

一鍵安裝

將以下內容加入你的 `claude_desktop_config.json` 檔案:

{
  "mcpServers": {
    "urlchart": {
      "url": "https://urlchart.com/mcp"
    }
  }
}

遠端端點

https://urlchart.com/mcpstreamable-http

它能做什麼

工具清單

工具(3)

🟢 唯讀🟡 寫入🔴 刪除⚪ 未知
⚪generate_chart_image(params, api_key)

Render a PNG chart through UrlChart and return the image plus its hosted URL. Accepts Google Image Charts / legacy parameters as an object (`{"cht":"bvg","chs":"400x200","chd":"t:10,40,80"}`) or a full legacy chart URL (Google, Image-Charts, QuickChart or urlchart.com). Without an api_key (or an Authorization: Bearer header on this MCP connection) the render is the FREE tier: a canvas of at most 1000 px per side / 1 MP, 60 requests/minute and 1,000 unique renders/month per IP. A request above that canvas is scaled down and reported in X-UrlChart-Meta, never failed. A paid api_key keeps the full 9 MP canvas (3000 px per side) and applies the paid limits. Parameters that are unknown or not implemented never fail the render; they degrade and are reported in X-UrlChart-Meta. chof=jpg|webp|pdf requests another output format; a PDF result is returned as a hosted URL (not an image block). The hosted URL in the text result is the same chart without any credential, so embedding it publicly serves the FREE (capped-canvas) variant unless a key or signed URL is added.

輸入結構描述

{
  "type": "object",
  "properties": {
    "params": {
      "description": "Legacy chart parameters. Either an object of parameter name -> value (cht, chs, chd, chds, chl, chdl, chdlp, chxt, chxl, chxr, chxs, chxp, chxtc, chco, chtt, chts, chma, chg, chf, chbh, chls, chm (and chld/choe for cht=qr)), or a full chart URL / query string. Values may be strings or numbers.",
      "oneOf": [
        {
          "type": "object",
          "additionalProperties": {
            "type": [
              "string",
              "number",
              "boolean"
            ]
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "api_key": {
      "type": "string",
      "description": "Optional UrlChart API key (uc_live_… / uc_test_…). Omit to use the free tier. Alternatively send `Authorization: Bearer <key>` on the MCP request itself."
    }
  },
  "required": [
    "params"
  ],
  "additionalProperties": false
}
🟢check_legacy_chart_url(url)

The migration check: analyse a Google Image Charts / Image-Charts / QuickChart URL and report, parameter by parameter, what UrlChart will render, degrade, ignore or not support — plus the equivalent UrlChart URL. Computed from the URL alone: NOTHING is rendered and no request is made to the chart host. Use this before migrating an embed to find out what changes (for example a multi-axis URL that an alternative charts it only on a paid plan).

輸入結構描述

{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "The full legacy chart URL, including https://."
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}
🟢build_chart_url(chart_type, values, labels, title, width, ...)

Build a well-formed UrlChart chart URL from a small, LLM-friendly chart spec. No render, no network, no key. Returns the URL as text; pass it to generate_chart_image (or embed it) to get the PNG. For chart types or parameters outside this spec, use generate_chart_image with raw legacy parameters.

輸入結構描述

{
  "type": "object",
  "properties": {
    "chart_type": {
      "type": "string",
      "enum": [
        "bar",
        "bar-horizontal",
        "line",
        "pie",
        "doughnut",
        "scatter"
      ],
      "default": "bar",
      "description": "Chart family. Default bar (cht=bvg)."
    },
    "values": {
      "description": "Data. For bar/line/pie/doughnut: one series (number[]) or several series (number[][]). For scatter: number[][] where the FIRST row is the x series and each further row a y series.",
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 1
        },
        {
          "type": "array",
          "items": {
            "type": "array",
            "items": {
              "type": "number"
            },
            "minItems": 1
          },
          "minItems": 1
        }
      ]
    },
    "labels": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Category labels (chl): one per value for a single series. Omit for no labels. For scatter, labels are not used."
    },
    "title": {
      "type": "string",
      "description": "Chart title (chtt)."
    },
    "width": {
      "type": "integer",
      "minimum": 10,
      "maximum": 3000,
      "default": 400
    },
    "height": {
      "type": "integer",
      "minimum": 10,
      "maximum": 3000,
      "default": 200
    },
    "colors": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Series colours as hex (with or without #) or legacy colour names (chco)."
    },
    "y_min": {
      "type": "number",
      "description": "Y axis minimum (chxr). Requires y_max."
    },
    "y_max": {
      "type": "number",
      "description": "Y axis maximum (chxr). Requires y_min."
    },
    "background": {
      "type": "string",
      "description": "Background colour (chf=bg,s,…), hex or legacy name."
    }
  },
  "required": [
    "values"
  ],
  "additionalProperties": false
}

社群

為此伺服器評分

證據

近期觀測

已驗證未記錄版本3 個工具