Kitforge Chart API

Chart images (bar, line, pie, doughnut, sparkline) as SVG with a permanent public URL.

我該用這個嗎

品質與安全性

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

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

上下文成本

~861Token(工具定義)
~3.0 KB典型回應大小
中等的注意力影響(128k 上下文的 0.67%)

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

安裝

一鍵安裝

將以下內容加入你的 `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 ![chart](url) — 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
}

社群

為此伺服器評分

證據

近期觀測

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