UrlChart
Render charts as PNG images from a URL — Google Image Charts / Image-Charts compatible API.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (1)
- MEDIUMen generate_chart_image
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"urlchart": {
"url": "https://urlchart.com/mcp"
}
}
}Puntos de conexión remotos
https://urlchart.com/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (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.
Esquema de entrada
{
"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).
Esquema de entrada
{
"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.
Esquema de entrada
{
"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
}Comunidad
Evidencia