Aicanvas

io.github.aicanvas-me由 GitHub 账号 aicanvas-me 发布v0.2.5更新于 Oct 24, 2026

Browse and install 75+ free animated, shadcn-compatible React components from AI Canvas.

已验证STDIO仅桌面开发者工具媒体与设计

概览

AI 生成的概览

本地 MCP 服务器,让 AI 编辑器发现、查看并安装 AI Canvas 的动画 React 组件、设计系统与模板。

可以做什么
按分类、组件、设计系统与模板浏览,支持计数与分页,并按关键词搜索获得排序结果。读取单个组件的完整元数据与全部源码,或读取整套设计系统、模板的文件、共享令牌与依赖。获取任意组件的 shadcn 安装命令,并查看单个组件已记录的属性。按已记录属性校验文件的 JSX,对未知、缺失或超出可选值的属性给出行号。根据一句话需求生成页面构建计划,并获取成品页面或组件的审查清单。
适用场景
适合在构建 React 或 shadcn 界面时使用:让助手查找合适的动画组件、在编写 JSX 前了解其 API、检查用法,并在对话中完成页面规划或审查。
运行要求
以 stdio 在本地运行,通常通过 npx 启动,因此需要 Node.js 以及访问 AI Canvas 注册表的网络。浏览元数据无需账号;拉取源码需要免费的 AI Canvas 账号和可选的 AICANVAS_TOKEN 环境变量。AICANVAS_REGISTRY_BASE 可指向自建镜像。
安装前请注意
AICANVAS_TOKEN 会作为 Bearer 令牌随每次注册表请求发送,应视为凭据。高级设计系统与模板会返回 HTTP 402 及升级链接,可能涉及付费内容。服务器自身工具为只读,但助手可能执行安装命令,向你的项目写入文件。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@aicanvas/mcp

[Listed on mcpservers.org]

Model Context Protocol server for AI Canvas. Lets your AI editor (Claude Code, Cursor, Claude Desktop, Codex) discover and install AI Canvas components without leaving the chat.

You:   "find me an animated card stack"AI:    [calls search_components → ranks matches → picks polaroid-stack]       [calls get_install_command → returns: npx shadcn add @aicanvas/polaroid-stack]       [runs the command — file lands in your project]You:   "make the rotation more dramatic"AI:    [edits the file directly]

What it exposes

Thirteen tools, derived from the live aicanvas.me registry. Adding a component to the website auto-updates the MCP within minutes. The registry holds 80+ standalone components, plus the Andromeda design system with its own components and templates.

ToolPurpose
list_categoriesShow every category with component counts. Orient before drilling in.
list_componentsBrowse standalone components, optionally filtered by category. Paginated.
search_componentsFuzzy keyword search across standalone AND design-system components (slugs, names, descriptions, categories, tags). Ranked results.
get_componentFull metadata plus complete .tsx source code for one component. Resolves both standalone slugs and design-system component slugs (e.g. andromeda-heat-grid).
get_install_commandGet the npx shadcn add @aicanvas/<slug> command for any standalone or design-system component.
list_systemsList the design systems available (e.g. Andromeda), with component and template counts.
get_systemEvery file for a whole design system, plus its shared tokens, its component install commands, and the dependency chain.
list_templatesList the ready-made templates (complete example screens), optionally filtered by design system.
get_templateEvery file for a single template (a ready-made composition), with the registry dependencies it pulls in.
get_component_propsThe documented props of one component: name, type, required, default, description. Free, no account, far smaller than the source.
validate_usageCheck a file's JSX against the documented props of the AI Canvas components it imports: unknown props, missing required props, values outside a prop's options, each with a line number.
compose_pageTurn a one-line brief into a build plan: closest template, one component per part with alternatives, install order (tokens first), and the parts nothing covers. Plans only, generates no code.
get_audit_checklistThe checklist to run on a finished page or component: install completeness, props, both themes, 320px layout, motion cleanup, keyboard and contrast, composition.

All tools are read-only. Nothing is mutated on AI Canvas's side.

The workflow the last four tools are built for: compose_page to plan, get_component_props to read each API before writing JSX, validate_usage on the finished file, get_audit_checklist before calling it done.

Standalone components and design-system components are kept in separate buckets. list_components and list_categories cover the 80+ standalones only, so the catalog stays clean. Design-system components are reached through list_systems / get_system, and are also resolvable by slug through get_component, get_install_command, and search_components.

Setup

Claude Desktop

Edit claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
json
{  "mcpServers": {    "aicanvas": {      "command": "npx",      "args": ["-y", "@aicanvas/mcp"]    }  }}

Restart Claude Desktop. The aicanvas tools should appear in the tools list.

Cursor

Project-level (.cursor/mcp.json in your repo) or global (~/.cursor/mcp.json):

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

Claude Code

Project-level .mcp.json (committed alongside your code):

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

Or via the CLI:

bash
claude mcp add aicanvas -- npx -y @aicanvas/mcp

Codex

~/.codex/config.toml:

toml
[mcp_servers.aicanvas]command = "npx"args = ["-y", "@aicanvas/mcp"]

Verify it works

Inside any of the AI editors above, ask:

"What categories of components does AI Canvas have?"

You should see all 11 categories with counts. If you don't, check the host's MCP logs. Typically a "Failed to spawn process" or network error means npx couldn't fetch the package, or the host wasn't restarted after editing the config.

To inspect the server outside an editor:

bash
npx -y @modelcontextprotocol/inspector npx -y @aicanvas/mcp

This opens a browser UI where you can call each tool by hand.

Configuration

Env varDefaultWhat it does
AICANVAS_REGISTRY_BASEhttps://aicanvas.me/rRegistry root URL. Override only for local development against a self-hosted mirror.
AICANVAS_TOKEN(none)Optional per-account token. The website bakes it into the MCP config it gives you. It identifies your AI Canvas account so source pulls are authorized and any premium content you own unlocks. Sent as a Bearer token on every registry request. Without it you are anonymous: metadata browsing still works, but pulling a component's source returns a short "create a free account" notice instead of the code.

Accounts and premium content

Browsing metadata (list_categories, list_components, search_components, list_systems, list_templates, get_install_command) is free and needs no account. Pulling actual source (get_component, get_system, get_template) runs against a free AI Canvas account: set AICANVAS_TOKEN from your account and the website gives you the ready-made config. Without a token, a free-component source pull returns a short "create a free account" notice instead of the code, and premium content (full design systems and templates) returns HTTP 402 with an upgrade link at aicanvas.me/pricing. Update anytime with npx @aicanvas/mcp@latest.

How the registry stays fresh

The MCP fetches https://aicanvas.me/r/aicanvas-mcp.json on first use and caches it for 5 minutes. New components on AI Canvas appear in the MCP automatically, no package update required.

The full source code for each component is fetched on demand from /r/<slug>.json (the same shadcn registry items the CLI installs).

The prop tables come from https://aicanvas.me/r/aicanvas-props.json, parsed at build time from each component's own JSDoc, so they cannot drift from the source. Same 5-minute cache.

Local development

bash
git clone https://github.com/aicanvas-me/aicanvas.gitcd aicanvas/mcpnpm installnpm run build
# Smoke-test against the deployed registry:npm run inspect
# Or point at a locally running aicanvas dev server:AICANVAS_REGISTRY_BASE=http://localhost:3000/r node dist/index.js

Edit src/index.ts, run npm run build, restart your AI editor.

License

MIT, same as the AI Canvas project.

来源:mcp/README.md,提交 870f50e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.5最新Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分