Skip to main content
Glama

quiver-mcp

npm version npm downloads License: MIT

QuiverAI 的 MCP 服务器 — 直接从 Claude(或任何兼容 MCP 的客户端)使用 AI 从文本提示生成 SVG 并将栅格图像矢量化。

示例

由 Claude 调用此 MCP 生成。在 n: 3, temperature: 0.9 的设置下,每个生成耗时约 60 秒。两个提示词都记录在工具描述中,因此 Claude 知道生成配方。

提示词: exploded isometric view of a Montblanc Meisterstück fountain pen, technical blueprint drawing, thin line art, dotted grid background, labeled components, engineering illustration

提示词: Japanese crane in traditional woodblock illustration style with warm earth tones
说明: Use a warm muted palette with detailed feather work

更多变体请查看 examples/。

Related MCP server: Quiver AI MCP Server

要求

安装

Claude Desktop

添加到你的 claude_desktop_config.json:

{
  "mcpServers": {
    "quiverai": {
      "command": "npx",
      "args": ["-y", "@syntropic/quiver-mcp"],
      "env": {
        "QUIVERAI_API_KEY": "your_api_key_here"
      }
    }
  }
}

手动

npm install -g @syntropic/quiver-mcp
QUIVERAI_API_KEY=your_api_key_here quiver-mcp

工具

generate_svg

从文本提示生成一个或多个 SVG。

参数

类型

必需

描述

prompt

string

是

要生成的 SVG 的文本描述

model

string

是

模型 ID(使用 list_models 查看选项)

instructions

string

否

额外的样式或格式指导

n

number

否

要生成的 SVG 数量(默认:1)

temperature

number

否

采样温度 0–2(默认:1)

references

array

否

最多 4 个图像参考({url} 或 {base64}),用于调色板和构图指导。样式关键词仍需包含在提示文本中。

outputPath

string

否

保存 SVG 到磁盘的绝对文件路径。对于多个变体(n > 1),文件将以 _1, _2 等后缀保存。父目录会自动创建。

提示词技巧

工具描述中包含了详尽的提示词指南,简而言之:

  • 将提示词结构化为三个部分:主体(具体对象)、样式(如 line art、isometric、flat monochrome 等美学关键词)和 调色板(尽可能使用十六进制代码)。

  • 使用模型已知的著名物理对象。避免抽象的软件概念(如 AI agent、workflow)——请改用物理隐喻。

  • 为了探索效果,请在 temperature: 0.9 下生成 3 个以上的变体。有些生成结果会出现损坏的尾部;额外的变体可以为你提供更多选择。

vectorize_svg

将栅格图像(PNG、JPG 等)转换为 SVG。

参数

类型

必需

描述

model

string

是

模型 ID

image

object

是

要矢量化的图像 — {url} 或 {base64}

autoCrop

boolean

否

在矢量化前裁剪到主要主体(默认:false)

targetSize

number

否

矢量化前调整的正方形目标像素大小

temperature

number

否

采样温度 0–2(默认:1)

outputPath

string

否

保存 SVG 到磁盘的绝对文件路径。父目录会自动创建。

list_models

列出所有可用的 QuiverAI 模型及其支持的操作和定价。

环境变量

变量

描述

QUIVERAI_API_KEY

必需。 你的 QuiverAI API 密钥

开发

npm install
npm run build   # compile TypeScript
npm run dev     # watch mode

许可

MIT

Available Tools

3 tools
generate_svgA

Generate one or more SVGs from a text prompt using QuiverAI. Returns raw SVG markup.

Prompt guide

A good prompt has three parts: subject (specific object), style (aesthetic keywords), and color palette (hex codes if possible).

What works

  • Use concrete, famous physical objects the model has seen (AirPods, Nike Dunks, Shure SM7B, Montblanc pen, Leica camera, Nest thermostat, espresso machines). Cylindrical/round objects explode especially cleanly in isometric style.

  • Name the style explicitly: 'line art', 'hand drawn', 'duotone', 'flat monochrome icon', 'geometric', 'minimalist', 'isometric', 'blueprint'.

  • Specify colors with hex codes: 'background: #e9edc9 and logo in #fb8500'.

  • Add composition framing: 'centered icon', 'wide horizontal logo'.

  • Prompt modifiers: 'geometric' → angular shapes, 'detailed' → more elements, 'simple' → clearer shapes, 'minimalist' → fewer details, 'flat monochrome' → single-color, 'duotone' → two-color.

What does NOT work

  • NEVER mention 'AI', 'machine learning', 'voice assistant', 'workflow automation', or abstract software concepts — produces garbage. Use physical metaphors instead (microphone for voice, watch movement for precision).

  • Abstract concepts without physical objects: 'knowledge graph', 'automation pipeline', 'data flow'.

  • Obscure B2B hardware the model hasn't seen (e.g. Loxone Miniserver → generic blob).

  • 'minimalist line icon' constraints — model ignores them and fills with color.

Iteration strategy

Start specific, not vague. Bad: 'Tech logo'. Better: 'Tech startup logo with geometric shapes, blue gradient'. Best: 'SaaS productivity logo with connected geometric nodes, electric blue to purple gradient, clean modern style'.

Verified template

exploded isometric view of a {FAMOUS_OBJECT}, technical blueprint drawing, thin line art, dotted grid background, labeled components, engineering illustration

Known issues

  • ~1 in 10 generations have corrupted SVG tails (malformed XML). Generate 3+ variants as insurance.

  • Model may ignore 'no fills'/'monochrome' and hardcode its own palette. Post-process with find/replace for brand colors.

  • First call may 504 — retry succeeds.

Inputs: prompt (required), model (required), instructions, n, +3 more.

list_modelsA

List all models available on QuiverAI, including supported operations (svg_generate, svg_vectorize, etc.) and pricing.

Inputs: no named parameters.

vectorize_svgA

Convert a raster image (PNG, JPG, etc.) into an SVG using QuiverAI. Provide the image as a URL or base64-encoded string.

Inputs: model (required), image (required), autoCrop, targetSize, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool has a distinct purpose: generating SVGs from prompts, listing models, and vectorizing images. There is no overlap.

    Naming Consistency5/5

    All tool names follow consistent snake_case with verb_noun pattern (generate_svg, list_models, vectorize_svg).

    Tool Count4/5

    Three tools is on the low side but reasonable for a focused server. The scope is narrow enough that each tool earns its place.

    Completeness3/5

    Core SVG creation (from text and images) and model listing are covered, but missing operations like fetching/updating/deleting individual SVGs or batch processing.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers