UrlChart
Render charts as PNG images from a URL — Google Image Charts / Image-Charts compatible API.
사용해야 할까요
품질 및 안전성
발견 사항 (1)
- MEDIUMgenerate_chart_image에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`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
}커뮤니티
증거