About Napkin
Napkin is an MCP server for Napkin AI that generates diagrams, infographics, and illustrations from text, and can check generation status and download results. It is for users creating visual content through MCP workflows.
Key features
- 01Generate visuals from text
- 02Check generation status
- 03Download generated visual files
- 04Browse built-in visual styles
- 05Configure API key
Use cases
- 01Turn written content into diagrams
- 02Generate infographics or illustrations
- 03Track a job and download its result
MCP support
It exposes visual generation, status-checking, download, and style-listing tools to MCP clients, using the Napkin API to process requests.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
npx -y @mindstone/mcp-server-napkinNAPKIN_API_KEYSecretNapkin AI API keyMCP_WORKSPACE_PATHWorkspace directory for saving generated visualsNAPKIN_REQUEST_TIMEOUT_MSOutbound HTTP request timeout in milliseconds (max 1800000)Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
5Saved tool list · updated 2w ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | The Napkin AI API token (starts with "sk-") |
Details
From the project README@mindstone/mcp-server-napkin
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
- Version: 0.4.1 · npm
- Auth: API key (
NAPKIN_API_KEY) - Tools: 5 (visuals, downloads, styles)
- Surface: cloud-api
- Machine-readable:
STATUS.json
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_afterparameters — Napkin deprecated these in favor of the singlecontextparameter, whichnapkin_generate_visualsupports.
Requirements
- Node.js 20+
- npm
One-click install
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)
{
"mcpServers": {
"Napkin": {
"command": "npx",
"args": [
"-y",
"@mindstone/mcp-server-napkin"
],
"env": {
"NAPKIN_API_KEY": "",
"NAPKIN_REQUEST_TIMEOUT_MS": "60000"
}
}
}
}
Quick Start
Install & build
cd <path-to-repo>/connectors/napkin
npm install
npm run build
npx (once published)
npx -y @mindstone/mcp-server-napkin
Local
node dist/index.js
Configuration
Environment variables
NAPKIN_API_KEY— Napkin AI API keyMCP_WORKSPACE_PATH— optional workspace path for saving generated visualsMCP_HOST_BRIDGE_STATE— optional path to a host bridge state file used for credential managementMINDSTONE_REBEL_BRIDGE_STATE— backwards-compatible alias forMCP_HOST_BRIDGE_STATENAPKIN_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 seeTIMEOUTerrors on slow submits or large downloads; lower it if you want tighter bounds.
Host configuration examples
Claude Desktop / Cursor
{
"mcpServers": {
"Napkin": {
"command": "npx",
"args": ["-y", "@mindstone/mcp-server-napkin"],
"env": {
"NAPKIN_API_KEY": "your-api-key"
}
}
}
}
Local development (no npm publish needed)
{
"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 textnapkin_check_status— Check the status of a visual generation request (vendor-authored free text — warning/error messages andvisual_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 differentfilenameor 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 astyle_idfornapkin_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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.