Napkin

io.github.mindstone由 GitHub 帳號 mindstone 發布v0.4.1更新於 Oct 25, 2026

Napkin AI visual generation MCP server for Model Context Protocol hosts

已驗證STDIO僅桌面媒體與設計AI 與機器學習

概覽

AI 產生的概覽

Napkin 是一個本機 MCP 伺服器,讓助理依文字產生 Napkin AI 圖表、資訊圖表和插圖等視覺內容,查詢產生狀態並下載結果。

可以做什麼
依文字描述產生專業視覺內容,可選擇內建樣式並附上脈絡文字。查詢視覺產生請求的狀態。將產生好的視覺檔案下載到磁碟,且不會覆寫既有檔案。列出 15 種內建視覺樣式,此操作不需 API 金鑰或網路請求。在工作階段中設定 Napkin AI API 金鑰。
適用情境
適合希望助理把文字說明轉成圖表、資訊圖表或插圖並存到本機的情境,而不是只用文字描述視覺內容。適用於可提供 Napkin AI API 金鑰的桌面 MCP 主機。
執行需求
透過 npx 在本機執行,需要 Node.js 20+ 和 npm。需要 NAPKIN_API_KEY 中的 Napkin AI API 金鑰,並能連線至 Napkin API。選用設定:MCP_WORKSPACE_PATH 指定產生視覺內容的儲存目錄,NAPKIN_REQUEST_TIMEOUT_MS 設定對外請求逾時(預設 60 秒,最長 30 分鐘)。
安裝前請注意
Napkin API 目前為開發者預覽版,介面與行為可能變動。API 金鑰屬敏感資訊,透過環境變數傳入,伺服器也可在工作階段中設定它。產生與下載請求會把你的文字提示傳送到 Napkin 雲端服務。下載會寫入檔案到磁碟,但不會覆寫既有檔案。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Napkin,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@mindstone/mcp-server-napkin

[npm version] [License: FSL-1.1-MIT]

Napkin AI visual generation MCP server for Model Context Protocol hosts. Generate professional visuals — diagrams, infographics, and illustrations — from text descriptions, check generation status, and download results through a standardised MCP interface.

Status

Note: The Napkin API is currently a developer preview (see api.napkin.ai). Endpoints and behavior may change; report upstream issues to [email protected]. Older guides reference context_before/context_after parameters — Napkin deprecated these in favor of the single context parameter, which napkin_generate_visual supports.

Requirements

  • Node.js 20+
  • npm

One-click install

[Add to Cursor] [Add to VS Code] [Add to VS Code Insiders]

After clicking the button, your host will prompt you to fill: NAPKIN_API_KEY, NAPKIN_REQUEST_TIMEOUT_MS.

Manual config for Claude Desktop / Claude Code / Goose / Continue.dev (Napkin)
json
{  "mcpServers": {    "Napkin": {      "command": "npx",      "args": [        "-y",        "@mindstone/mcp-server-napkin"      ],      "env": {        "NAPKIN_API_KEY": "",        "NAPKIN_REQUEST_TIMEOUT_MS": "60000"      }    }  }}

Quick Start

Install & build

bash
cd <path-to-repo>/connectors/napkinnpm installnpm run build

npx (once published)

bash
npx -y @mindstone/mcp-server-napkin

Local

bash
node dist/index.js

Configuration

Environment variables

  • NAPKIN_API_KEY — Napkin AI API key
  • MCP_WORKSPACE_PATH — optional workspace path for saving generated visuals
  • MCP_HOST_BRIDGE_STATE — optional path to a host bridge state file used for credential management
  • MINDSTONE_REBEL_BRIDGE_STATE — backwards-compatible alias for MCP_HOST_BRIDGE_STATE
  • NAPKIN_REQUEST_TIMEOUT_MS — optional override (positive integer ms, max 30 min) for the outbound HTTP request timeout applied to Napkin API, host-bridge, and download calls. Default: 60000 (60s). Raise this if you see TIMEOUT errors on slow submits or large downloads; lower it if you want tighter bounds.

Host configuration examples

Claude Desktop / Cursor

json
{  "mcpServers": {    "Napkin": {      "command": "npx",      "args": ["-y", "@mindstone/mcp-server-napkin"],      "env": {        "NAPKIN_API_KEY": "your-api-key"      }    }  }}

Local development (no npm publish needed)

json
{  "mcpServers": {    "Napkin": {      "command": "node",      "args": ["<path-to-repo>/connectors/napkin/dist/index.js"],      "env": {        "NAPKIN_API_KEY": "your-api-key"      }    }  }}

Tools (5)

Configuration

  • configure_napkin_api_key — Configure the Napkin AI API key

Generation

  • napkin_generate_visual — Generate a professional visual from text
  • napkin_check_status — Check the status of a visual generation request (vendor-authored free text — warning/error messages and visual_query — is wrapped in <untrusted-content> envelopes so hosts treat it as data; codes, IDs, and URLs stay raw, with their machine-identifier charset enforced by response validation)
  • napkin_download_visual — Download a generated visual file to disk (existing files are never overwritten — pass a different filename or omit it to auto-generate one). Redirects are re-validated against the Napkin host allow-list before being followed; off-list redirect targets are refused.

Styles

  • napkin_list_styles — List the 15 built-in Napkin visual styles (IDs, descriptions, categories) to pick a style_id for napkin_generate_visual. Static catalog; no API key or network call required.

Licence

FSL-1.1-MIT — Functional Source License, Version 1.1, with MIT future licence. The software converts to MIT licence on 2030-04-08.

來源:connectors/napkin/README.md,提交 22c4611

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

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

評分

已滿足適用檢查項的 40%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。