amCharts 5

io.github.amcharts由 GitHub 账号 amcharts 发布v1.9.4更新于 Oct 26, 2026

On-demand access to amCharts 5 docs, code examples, and API reference

已验证Streamable HTTP可网页运行知识与记忆开发者工具数据与分析

概览

AI 生成的概览

让助手按需获取 amCharts 5 文档、代码示例和 API 参考,用于编写和调试图表代码。

可以做什么
  • 列出图表类型,获取某类图表的参考文档或核心指南(初始化、主题、事件、常见问题)
  • 搜索精选技能文档,或搜索全部内容(完整文档、API 参考、示例)
  • 获取完整文档页、按标题获取单个章节,或获取某个类的 API 参考及设置默认值
  • 获取某类图表的最小可用快速上手模板
  • 浏览并获取 290 多个示例的完整代码
  • 列出地图 geodata 文件及其 CDN 路径、脚本全局名和 ES 模块导入方式
适用场景
适合在构建或调试 amCharts 5 图表时使用,让助手直接取用对应的图表参考、示例或 API 设置,而不是凭猜测作答。也适用于框架集成问题和查找合适的地图数据文件。
运行要求
可使用托管 Streamable HTTP 端点(无需安装、无需账号),或在本地通过 stdio 运行 npm 包 @amcharts/amcharts5-mcp,需要 Node.js 和 npx。仅支持 stdio 的客户端可用 mcp-remote 桥接到托管地址。不需要 API 密钥或环境变量。
安装前请注意
工具均为只读,托管端点按设计不设身份验证。托管服务器运行在 Cloudflare Workers 上,Cloudflare 会处理每个请求(包括 IP 地址);MCP 初始化消息保存在会话存储中,直到会话结束或 24 小时后删除,错误日志最多保留 7 天。本地 npm 包不发起任何网络请求。

安装

在 SourceWeft 中

  1. 打开 控制台中的 amCharts 5,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.amcharts%2Famcharts5/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "amcharts-5": {
      "type": "http",
      "url": "https://mcp.amcharts.com/mcp"
    }
  }
}

README

amCharts 5 MCP Server

An MCP (Model Context Protocol) server that gives AI assistants on-demand access to the complete amCharts 5 knowledge base: 160+ documentation pages, 290+ code examples, and 1,300+ API reference pages.

Works with Claude Code, Claude Desktop, Cursor, Windsurf, VS Code + GitHub Copilot, and any other MCP-compatible AI tool.

Why?

Instead of loading the entire amCharts reference into the AI's context window, the MCP server lets the AI query exactly what it needs — a specific chart type reference, a code example, or an API lookup. This means better answers with less context waste.

Quick Start

The easiest way is the hosted server — no install, just add one URL. Prefer to run it yourself? See Local install below.

Hosted (no install) — recommended

Point your AI client at:

https://mcp.amcharts.com/mcp

Claude Code

bash
claude mcp add --transport http amcharts5 https://mcp.amcharts.com/mcp

Claude Desktop / claude.ai — Settings → Connectors → Add custom connector, then paste https://mcp.amcharts.com/mcp.

Cursor — .cursor/mcp.json:

json
{  "mcpServers": {    "amcharts5": {      "url": "https://mcp.amcharts.com/mcp"    }  }}

VS Code + GitHub Copilot — .vscode/mcp.json:

json
{  "servers": {    "amcharts5": {      "type": "http",      "url": "https://mcp.amcharts.com/mcp"    }  }}

Windsurf — ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "amcharts5": {      "serverUrl": "https://mcp.amcharts.com/mcp"    }  }}

ChatGPT (Plus/Pro/Enterprise with connectors/developer mode enabled) — Settings → Connectors → Add custom connector, then paste https://mcp.amcharts.com/mcp.

Cline (VS Code extension) — open the MCP Servers panel → Remote Servers, paste https://mcp.amcharts.com/mcp, or add to its MCP settings JSON:

json
{  "mcpServers": {    "amcharts5": {      "type": "streamableHttp",      "url": "https://mcp.amcharts.com/mcp"    }  }}

Clients that only support local (stdio) servers (e.g. Zed, Continue, Amazon Q Developer) — bridge to the hosted URL with mcp-remote. Use this as the server's run command in the client's config:

bash
npx mcp-remote https://mcp.amcharts.com/mcp

For example, in a command/args style config:

json
{  "mcpServers": {    "amcharts5": {      "command": "npx",      "args": ["-y", "mcp-remote", "https://mcp.amcharts.com/mcp"]    }  }}

Any other MCP client that accepts a remote server URL works too — use the /mcp endpoint (Streamable HTTP) or /sse (legacy SSE). For URL-only clients that still expect a command, use the mcp-remote bridge shown above.

Local install (npx)

Prefer running it yourself? The server is also published to npm and runs over stdio.

Claude Code

For all projects (global, recommended):

bash
claude mcp add -s user amcharts5 -- npx -y @amcharts/amcharts5-mcp

For current project only:

bash
claude mcp add amcharts5 -- npx -y @amcharts/amcharts5-mcp

Claude Desktop

Add to your claude_desktop_config.json:

json
{  "mcpServers": {    "amcharts5": {      "command": "npx",      "args": ["-y", "@amcharts/amcharts5-mcp"]    }  }}

Cursor

Create or edit .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for global):

json
{  "mcpServers": {    "amcharts5": {      "command": "npx",      "args": ["-y", "@amcharts/amcharts5-mcp"]    }  }}

Windsurf

Edit ~/.codeium/windsurf/mcp_config.json:

json
{  "mcpServers": {    "amcharts5": {      "command": "npx",      "args": ["-y", "@amcharts/amcharts5-mcp"]    }  }}

VS Code + GitHub Copilot

Create or edit .vscode/mcp.json in your workspace:

json
{  "servers": {    "amcharts5": {      "type": "stdio",      "command": "npx",      "args": ["-y", "@amcharts/amcharts5-mcp"]    }  }}

Other MCP-compatible tools

For any other tool that supports MCP (Cline, Continue, Amazon Q, Zed, etc.), configure it to run:

bash
npx -y @amcharts/amcharts5-mcp

Run locally (for development)

bash
git clone https://github.com/amcharts/amcharts5-mcp.gitcd amcharts5-mcpnpm installnpm start

Available Tools

ToolDescription
get_core_referenceGet core amCharts 5 docs — setup, themes, colors, events, common pitfalls
get_chart_referenceGet full reference for a chart type (e.g. "pie", "sankey", "xy")
list_chart_typesList all available chart types and their keywords
search_docsSearch the skill reference docs by keyword (scope: "all" adds the full docs, API reference and examples)
search_allSearch across everything — skill docs, full documentation, and code examples
get_docGet a full documentation page (e.g. "charts/xy-chart/axes", "concepts/events")
get_sectionGet a specific section from a reference file by heading
get_quick_startGet a minimal working template for any chart type
list_examplesBrowse all 290+ examples, optionally filtered by category
get_exampleGet the full code for a specific example
get_api_referenceGet the API reference for a class, interface or function — settings with their defaults, events, inheritance and the import line
list_geodataFind map (geodata) files — world, continents, countries, regional packs and the per-Congress US congressional district packs — with each file's CDN path, script global and ES import

Example Usage

Once connected, your AI assistant can:

  • "Build me a pie chart" → AI calls get_quick_start("pie") and adapts the template
  • "How do I format date axis labels?" → AI calls search_all("date axis label format")
  • "Show me the Sankey diagram example" → AI calls get_example("examples/flow/sankey-diagram")
  • "What settings does XYChart support?" → AI calls get_doc("reference/xychart")
  • "How do I integrate with React?" → AI calls get_doc("getting-started/integrations/react"), which covers the @amcharts/amcharts5-react package
  • "What chart types are available?" → AI calls list_chart_types()
  • "Map the current US congressional districts" → AI calls list_geodata("congressional whole country")

Content

The server includes 1,800+ documents:

  • 160+ documentation pages — getting started, chart guides, concepts (themes, events, adapters, data binding, animations, accessibility, etc.), and framework integration guides for amCharts' React, Vue, Angular, Svelte and React Native packages (with Next.js, Nuxt, SvelteKit, React Router and Remix 3)
  • 290+ code examples — working demos across 16 categories including column/bar, line/area, pie/donut, maps, hierarchy, flow, radar/polar, stock, gauges, Gantt, timeline, and more
  • 1,300+ API reference pages — every class, interface and function in the amCharts 5 library, generated from the release's typings: settings with their real defaults (theme rules included), events, properties, data item fields, the inheritance chain and the import line
  • 670+ geodata entries — every map in @amcharts/amcharts5-geodata, for list_geodata
  • Curated skill reference — quick-start templates and chart-specific guides from the amCharts 5 AI Skill

Security

  • Read-only tools. Every tool reads the bundled amCharts documentation and returns text. No tool writes files, runs commands or fetches URLs.
  • The hosted endpoint has no authentication, by design. https://mcp.amcharts.com/mcp serves the same public documentation as amcharts.com. There are no accounts, API keys, user data or write operations behind it.
    • It runs on Cloudflare Workers.
    • MCP session state is kept in a Durable Object, as the MCP agents framework requires. It is deleted when the session ends, or 24 hours after its last request.
    • Per-request logs (Workers invocation logs) are off. Only error messages are logged, and they hold no tool arguments. See "Privacy" below.
  • Local install. The npm package runs over stdio on your machine and reads only the content bundled in it; it makes no network requests. Its only runtime dependencies are @modelcontextprotocol/sdk and zod.
  • Maintainer scripts. The scripts in scripts/ (the demo and docs scrapers, the API reference generator) are not part of the npm package and never run in the server.
  • Reporting a vulnerability: https://www.amcharts.com/report-vulnerability/

Privacy

Neither the hosted server nor the npm package needs an account or asks for personal data.

  • Hosted server (https://mcp.amcharts.com/mcp):
    • What your AI app sends: a search phrase, a chart type, a doc path. These are used only to build the answer, and are not logged or stored. A response is kept in the session's storage only until it has been delivered (so a dropped stream can resume), then deleted.
    • Session record: when an AI app connects, the server keeps its MCP initialize message in the session's storage. That message holds what the app says about itself (its name and version, and whatever else it puts there), the protocol version and the app's MCP capabilities. All of the session's storage is deleted when the app ends the session, or 24 hours after its last request.
    • Logs: the server keeps no request logs (Workers invocation logs are off). It runs on Cloudflare Workers, and Cloudflare processes each request, including its IP address, to deliver it. Error and warning messages are logged and kept for up to 7 days; they hold no request contents or tool arguments.
  • npm package: it runs on your computer over stdio and sends nothing to amCharts or anyone else.
  • Policy and questions: see the amCharts privacy policy, or write to [email protected].

License

MIT

来源:README.md,提交 697d6ee

工具

12

list_chart_types

List chart types

List all amCharts 5 chart types with their categories and reference file names

无需输入参数。

get_chart_reference

Get chart reference

Get the reference documentation for a specific amCharts 5 chart type. A reference longer than 12,000 characters comes as an overview: its first parts in full and a list of the others, each of which get_section returns. With `full: true` it is the whole file. The chart type keywords are listed by list_chart_types.

输入参数fullchartType必填

get_core_reference

Get core reference (setup, themes, pitfalls)

Get the core amCharts 5 reference (SKILL.md) — covers setup, colors, themes, legends, tooltips, events, data, adapters, disposal, and common pitfalls. It is the base for every chart type; the chart-specific references build on it. It comes as an overview: its first sections, up to 12,000 characters, and a list of the others, each of which get_section("SKILL", heading) returns. With `full: true` it is the whole file.

输入参数full

search_docs

Search docs

Search the curated amCharts 5 skill docs (SKILL.md + chart references) for a keyword or topic, returning matching sections ranked by relevance. By default it searches only the skill layer. With scope 'all' it also searches the extended docs, the per-class API reference and the code examples. Per-setting defaults (e.g. tooltip background cornerRadius, axis tick `visible` default, cursor line strokeDasharray) are in the extended docs and the API reference, which search_all, get_api_reference and get_doc also return.

输入参数query必填scopemaxResults

get_section

Get doc section

Get the full text of one section of a doc by heading, for example a section that a search_docs or search_all result shows truncated. `file` accepts the source label exactly as search results print it ('skill/SKILL.md', 'skill/xy', 'extended/charts/xy-chart/cursor', 'reference/xycursor') as well as a bare skill file name ('SKILL', 'xy', 'map').

输入参数file必填heading必填

get_quick_start

Get quick-start template

Get a quick-start template for a specific chart type — a minimal working example ready to customize.

输入参数formatchartType必填

search_all

Search all content

Search across all amCharts 5 content: skill references, full documentation, and code examples. For broad searches across everything.

输入参数query必填maxResults

get_doc

Get doc page

Get a full documentation page — an extended doc by path, or a skill file by 'skill/<name>'. Paths are the source labels that search_docs and search_all print.

输入参数path必填

get_api_reference

Get API reference

Get the per-class API reference for an amCharts 5 class: the class page plus its settings table (with defaults) and, optionally, its private/read-only settings. It is generated from the library's typings, so it has the exact setting names and default values (e.g. tooltip background cornerRadius, axis tick `visible` default). Takes a class name in any casing, e.g. 'XYCursor', 'Tooltip', 'PieSeries', 'AxisRendererX'.

输入参数className必填includePrivate

list_examples

List examples

List all available amCharts 5 code examples, optionally filtered by category.

输入参数category

get_example

Get example

Get the full code for a specific amCharts 5 example/demo, by its path or its amcharts.com demo address. Paths are listed by list_examples and printed in search results.

输入参数path必填

list_geodata

List geodata (map files)

List amCharts 5 geodata (map) files with each one's CDN path, script global name and ES module import: world maps, continents, every country map, regional packs (US states and counties, Canada, Mexico) and the US congressional-district packs, which are versioned per Congress (congressional120 = 120th Congress is the newest). Also the data/countries2 and lang/* helper files. It gives the exact file path and global name that map code needs.

输入参数filter

版本历史

9
  1. v1.9.4最新Oct 26, 2026
  2. v1.9.3Oct 25, 2026
  3. v1.9.2Oct 23, 2026
  4. v1.9.0Oct 22, 2026
  5. v1.8.0Oct 18, 2026
  6. v1.7.1Oct 9, 2026
  7. v1.7.0Oct 8, 2026
  8. v1.6.0Sep 29, 2026
  9. v1.1.3Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分