Kitforge Chart API
Chart images (bar, line, pie, doughnut, sparkline) as SVG with a permanent public URL.
사용해야 할까요
품질 및 안전성
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"chart-image": {
"url": "https://kitforge-chart-api.kitforgelabs.workers.dev/mcp"
}
}
}원격 엔드포인트
https://kitforge-chart-api.kitforgelabs.workers.dev/mcpstreamable-http할 수 있는 일
도구 목록
도구 (2)
🟢make_chart(type, title, labels, data, series, ...)
Render a clean, accessible chart (bar, line, pie, doughnut or sparkline) as an SVG image and return a permanent public image URL plus the SVG markup. Use it when the user wants a chart in an email, PDF, report, README, doc or web page (SVG only: Slack/Discord/Teams/Telegram image embeds need PNG, which is not offered yet): put the URL in an <img src> or markdown  — the URL needs no key and always shows this exact chart. One series: {"type":"bar","title":"Revenue","labels":["Jan","Feb","Mar"],"data":[1200,1850,1600],"prefix":"$"}. Several series: "series":[{"name":"Web","data":[3,5,4]},{"name":"Mobile","data":[2,3,3]}]. Limits: 8 series, 60 bars / 200 line points per series, pie/doughnut slices beyond 7 fold into "Other". Costs 1 credit per new chart (the same chart again is free). Works without a key for 10 trial charts per day; then the user needs a free key. If the result is error "no_credits", give the user recharge_url.
입력 스키마
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"bar",
"line",
"pie",
"doughnut",
"sparkline"
],
"description": "Chart type. Default bar. pie/doughnut/sparkline take one series."
},
"title": {
"type": "string",
"description": "Title shown on top and used as the accessible name (max 100 chars)."
},
"labels": {
"type": "array",
"items": {
"type": "string"
},
"description": "Category / x-axis labels, one per value (pie: slice names)."
},
"data": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
},
"description": "Numbers; null = no value (a gap in a line)."
},
"series": {
"type": "array",
"description": "Several named series instead of data (bar, line). Each gets its own colour and a legend entry.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"type": [
"number",
"null"
]
},
"description": "Numbers; null = no value (a gap in a line)."
}
},
"required": [
"data"
],
"additionalProperties": false
}
},
"stacked": {
"type": "boolean",
"description": "Stack bar series instead of grouping them."
},
"values": {
"type": "boolean",
"description": "Print values on bars/points (pie: in the legend)."
},
"prefix": {
"type": "string",
"description": "Value prefix, e.g. \"$\"."
},
"suffix": {
"type": "string",
"description": "Value suffix, e.g. \"%\" or \"k\"."
},
"theme": {
"type": "string",
"enum": [
"light",
"dark"
],
"description": "Default light."
},
"width": {
"type": "integer",
"minimum": 120,
"maximum": 1600,
"description": "Pixels. Default 600 (pie 480, sparkline 160)."
},
"height": {
"type": "integer",
"minimum": 32,
"maximum": 1000,
"description": "Pixels. Default 360 (pie 320, sparkline 40)."
},
"colors": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional hex colours per series/slice, e.g. [\"2a4fdf\",\"f47230\"]. Default: Kitforge palette."
},
"transparent": {
"type": "boolean",
"description": "No background (for placing on coloured backgrounds)."
},
"include_svg": {
"type": "boolean",
"description": "Include the SVG markup in the result. Default true; set false when only the URL is needed."
}
},
"additionalProperties": false
}🟢check_credits
Show how many credits the Kitforge API key has left (shared by the Chart and Tech Stack APIs), plus recharge_url. Free.
입력 스키마
{
"type": "object",
"properties": {},
"additionalProperties": false
}커뮤니티
증거