Quote Template

io.github.theluckystrike由 GitHub 帳號 theluckystrike 發布v0.21.1更新於 Oct 24, 2026

Quotes and estimates: VAT line items, a validity date, an A4 PDF, accept makes an invoice.

發布方自己的服務:Quote.Trade MCP Adapter

已驗證Streamable HTTP可網頁執行金融商業與電商

概覽

AI 產生的概覽

在對話中建立、修改並追蹤含營業稅的客戶報價,接受後轉為發票,Pro 版可產生 A4 PDF。

可以做什麼
  • 依明細項目、營業稅、折扣與有效期限建立報價,自動分配 Q-YYYY-NNNN 編號
  • 列出、檢視並修改仍開立中的報價,刪除從未送出的草稿
  • 將報價匯出為可直接貼進郵件的純文字,Pro 版可產生 A4 PDF
  • 接受報價並轉為發票,或填寫原因標記為未成交
  • 依幣別統計開立中、已接受、已婉拒與已過期的金額及成交率
  • 查看並啟用 Pro 授權
適用情境
適合在對話中報價、需要一致營業稅、編號與有效期限的自由工作者與小型業務,並希望客戶同意後不必重打數字就能產生發票。
執行需求
可作為遠端端點或本機程序執行(.mcpb 一鍵安裝包,或複製後以 Node.js 建置;npm 套件尚未發布)。遠端端點需在 Authorization 標頭提供 bearer 權杖;Pro 授權金鑰可透過 MCP_LICENSE_KEY 或 license_activate 設定。資料存放在本機 JSON 檔案中。
安裝前請注意
遠端端點需在 Authorization 標頭提供 bearer 權杖,Pro 功能需要付費授權金鑰(一次性 19 美元,整套 39 美元)。接受報價會寫入發票且無法復原;刪除報價不可回復,其編號不會再次使用。不會寄送郵件,也不做幣別換算。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Quote Template,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.theluckystrike%2Fquote-template/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "quote-template": {
      "type": "http",
      "url": "https://mcp.zovo.one/mcp/quote-template",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

mcp-quotes

Say "quote Acme for 12 hours at 90 EUR plus a 300 EUR setup, 23% VAT, good for 14 days" and get a numbered quote you can send today: the line table with VAT per rate, the total in integer minor units, a validity date computed in your own timezone, a plain-text version to paste straight into an email and, on Pro, the same A4 PDF layout your invoices use. When the client says yes, quote_accept turns it into a real invoice in the mcp-invoice store, under the same client list and the same number series, with the numbers copied from the quote rather than recomputed. Everything is stored in plain JSON files on your own machine; nothing is uploaded anywhere.

In the official MCP Registry (io.github.theluckystrike/quotes-estimates-proposals-vat-win-rate).

Listed on the AI Product Index - live remote endpoint at mcp.zovo.one/s/quotes, free tier, no signup.

[quotes demo]

Send a priced, VAT-correct quote from chat, and turn the yes into an invoice with one call.

60-second install

npm publish for @theluckystrike/mcp-quotes is pending. Until then, the .mcpb one-click bundle or a clone+build is the working path.

One-click (.mcpb): download quotes.mcpb from the latest release and double-click it in Claude Desktop: https://github.com/theluckystrike/mcp-servers/releases/latest

(claude_desktop_config.json):

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

Claude Code:

sh
claude mcp add quotes -- npx -y @theluckystrike/mcp-quotes

(.cursor/mcp.json): the same entry as Claude Desktop.

From source:

sh
git clone https://github.com/theluckystrike/mcp-servers.git && cd mcp-serversnpm installnpm run build -w packages/mcp-license -w servers/invoice -w servers/quotes

Build servers/invoice first: the money, VAT, client and numbering engine is imported from it. Then point your client's command at node with one arg, the absolute path to servers/quotes/dist/index.js.

To run in Pro mode set MCP_LICENSE_KEY in the same config block, or call license_activate once with your key.

Tools

ToolWhat it does
quote_createQuote a client: line items with quantity and unit price in minor units, VAT per line or the business default, an optional discount, a validity window. Allocates Q-YYYY-NNNN
quote_listEvery quote with client, total, validity and state: open, expired, accepted or declined. Filter by state, client or quote date
quote_getThe full stored record for one quote, including the invoice it became
quote_updateRevise a quote that is still open. Totals are recomputed; an accepted or declined quote is never edited
quote_send_textA plain-text quote with the aligned line table, VAT lines, total and validity date, ready to paste into an email. Free
quote_acceptMark it accepted and turn it into an invoice: created directly in the invoice server when its store is present, otherwise handed back as invoice_create-ready items
quote_declineMark it lost, with a reason, so it stops counting against the open quotes and lands in the win rate
quote_deleteDelete a draft quote nobody has seen yet and get its free open-quote slot back. Refused, with the dependent named, once it has been sent, accepted, invoiced or exported. Free
quote_pdfRender the A4 PDF and return the path. Pro
quote_reportOpen, accepted, declined and expired totals per currency, the value still open and the win rate. Free for the current calendar year to date
license_statusShow free or Pro mode
license_activateActivate a Pro key (verified offline)

Resource: quotes://open returns every quote still inside its validity window as JSON.

Prompt: quote_followup reviews what is open, what lapses soon and what already lapsed, then drafts the chase.

What you can say

You sayTool
"Quote Acme for 12 hours at 90 EUR plus a 300 EUR setup, 23% VAT, good for 14 days."quote_create
"Write that up as an email I can send."quote_send_text
"Make Q-2026-0003 20 hours instead and give them another two weeks."quote_update
"Acme said yes. Invoice it."quote_accept
"Beta went with someone cheaper."quote_decline
"I quoted Acme twice by mistake, drop the second one."quote_delete
"What is still open, and what is my win rate?"quote_report
"Which quotes have lapsed with no answer?"quote_list with state: "expired"

Worked example

You: Quote Acme for 12 hours of API work at 90 EUR plus a 300 EUR setup fee,23% VAT, good for 14 days.
  quote_create {    client: "Acme", currency: "EUR", validity_days: 14,    items: [      { description: "API work",  quantity: 12, unit_price_minor: 9000,  tax_rate: 23 },      { description: "Setup fee", quantity: 1,  unit_price_minor: 30000, tax_rate: 23 }    ]  }  -> Q-2026-0001, valid until 2026-09-18
Assistant:  API work    12  x  EUR 90.00   =  EUR 1080.00  Setup fee    1  x  EUR 300.00  =  EUR 300.00  Subtotal                          EUR 1380.00  VAT 23% on EUR 1380.00             EUR 317.40  TOTAL                              EUR 1697.40  Valid until 2026-09-18.
You: They said yes.
  quote_accept { id: "Q-2026-0001" }  -> accepted, invoice INV-2026-0004, due 2026-09-18, total EUR 1697.40

Prices go in as minor units: 9000 is EUR 90.00 and 150000 is JPY 150,000. There is no decimal anywhere on the input side, so a price can never be entered ten times too small.

Free vs Pro

FreePro
Open quotes5 at a timeUnlimited
quote_send_text (email-ready text)Yes, unlimitedYes, unlimited
Accept, decline, revise, VAT, discounts, multi-currencyYesYes
quote_delete (drafts only) and the duplicate guardYesYes
quote_pdfNoYes
quote_report (pipeline and win rate)Current calendar year to dateAny date range
PDF brandingn/aNo footer credit, and your logo

The cap counts quotes that are still OPEN. Accepting, declining or letting one lapse frees the slot, so a freelancer who closes their quotes never hits it. Two more things keep a slot from being wasted, both free: quote_create refuses a quote identical to one already open and names the one you have, and quote_delete removes a draft nobody has seen and gives the slot straight back.

Pro is a one-time $19, or $39 for every server in the collection, lifetime.

One measured thing: why an accepted quote is copied, not recomputed

quote_accept writes the invoice from the quote's stored lines. The obvious alternative, recompute the totals from the prices at acceptance time, was measured and rejected, because the VAT rate it would use is the one in the shared business profile today, not the one the client was quoted.

Measured (test/adversarial.test.mjs, "a VAT rate change between quote and acceptance never moves the agreed total"): a quote of EUR 1,000.00 net is issued with the profile's default rate of 23%, so the client is given EUR 1,230.00. The profile's default_tax_rate is then changed to 8%, a rate change, a new client class, a corrected setting, before the client answers. Recomputing at acceptance invoices EUR 150.00 below the document they agreed to, on one quote, with nothing on either record saying why they differ. Copying the stored lines invoices EUR 1,230.00 and the assertion holds tax_lines[0].rate === 23.

The same rule is why the quote takes prices in minor units and refuses a decimal: the number on the quote and the number on the invoice are the same integer, all the way through.

Numbers, money and dates

Quote ids are Q-YYYY-NNNN. The counter is per year and is written before the quote is stored, so a crash burns an id rather than reusing one, and existing ids are scanned as well, so a restored quotes.json can never hand back an id that is already on a document a client has seen. The year is part of the id deliberately: a bare Q-0001 reset every January collides with last January's quote.

Money is integer minor units end to end, and how many make one unit comes from the ISO 4217 table in mcp-invoice, 2 for most currencies, 0 for JPY, KRW, ISK and the rest, 3 for KWD and the Gulf dinars, 4 for CLF and UYW. There is no second copy of that table, of the VAT arithmetic or of the money formatter here: computeTotals, currencyDecimals and formatMoney are imported from @theluckystrike/mcp-invoice/lib, so a quote and the invoice it becomes round identically, per line and then summed. One quote is one currency; a mix across lines is refused rather than added up under whichever heading came first.

Dates are ISO YYYY-MM-DD. "Today", and therefore whether a quote has expired, is computed in the timezone of the shared business profile when one is set, not in the host machine's zone: a quote issued at 00:30 in Warsaw from a laptop still on US time would otherwise be dated the previous day and lapse a day early.

How it stores data

Quotes and the id counter live under ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/quotes/ as quotes.json and counter.json, plus a pdf/ subfolder for rendered files. Invoices created by quote_accept are written into the invoice server's directory, .../mcp-servers/invoice/, so invoice_list there shows them and they share one number series and one client list.

Every mutating call runs under an advisory lock directory at .../quotes/.lock; anything that writes an invoice also takes .../invoice/.lock, always in that order (quotes, then invoice), the same order servers/recurring uses, so two processes cannot deadlock. Saves go to a per-process temporary file and are renamed into place. Measured: 40 quotes created by two processes against one data directory leave 40 quotes and 40 unique ids (test/concurrency.test.mjs).

A store file that is not valid JSON is never treated as "no quotes". It is moved aside byte-for-byte as quotes.json.corrupt-<timestamp>, a .corrupt marker is written beside it, and every later call, reads included, fails with restore a good copy ... then delete the marker until a human resolves it.

Limits and honest caveats

  • The free tier holds 5 open quotes at a time. The text export, accepting, declining and revising are unrestricted on free, and the pipeline report answers free for the current calendar year to date; the PDF and a wider report range are Pro.
  • Accepting writes the invoice through the shared engine, so the invoice server's own free cap of 3 invoices per calendar month is not applied to it. The quotes cap is the one that applies here, and the response says so.
  • An expired quote is refused by quote_accept until you either extend it (quote_update {valid_until}) or say allow_expired: true. That is deliberate friction: a lapsed price should be re-confirmed.
  • No email is sent. quote_send_text gives you the text and quote_pdf gives you the file; getting it to the client is up to you.
  • No currency conversion. A quote's currency is fixed at creation and every line must already be in it.
  • Accepting is one-way. There is no un-accept, because the invoice it created is a document with a number; cancel that invoice in the invoice server instead.

Privacy

All data stays local: plain JSON files in your own data directory. No account, no API key, no network call of any kind. License keys are verified offline.

Built by theluckystrike. Support: [email protected]

Use these docs as an MCP server

Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:

來源:servers/quotes/README.md,提交 6535b33

工具

12

quote_create

Create a quote

Store a quote for client from items and return its Q number, VAT and totals. unit_price is in MAJOR units; currency, VAT and issuer come from the shared profile. A duplicate of an open quote is refused. Free: 5 open.

輸入參數items必填notesclient必填currencytax_rateissue_datevalid_untilclient_emailclient_vat_idvalidity_daysclient_addressdiscount_percent

quote_list

List quotes

List quotes newest first: id, client, dates, state, days left while open, currency, total and the invoice number once accepted. State is read against today, so a lapsed quote shows as expired.

輸入參數tofromstateclient

quote_get

Show one quote

Return one quote in full by Q number or exact client name: lines with unit price and VAT, totals, dates, the state today with days left, notes, and the invoice it became once accepted. Reads only.

輸入參數id必填

quote_update

Change an open quote

Revise a quote that is still open: line items, currency, discount, VAT default, validity or notes. Totals are recomputed. An accepted or declined quote is never edited.

輸入參數id必填itemsnotescurrencytax_ratevalid_untilclient_emailclient_vat_idvalidity_daysclient_addressdiscount_percent

quote_send_text

Plain-text quote to paste into email

Turn a quote into a plain-text summary to paste into an email: the line table, VAT lines, total and validity date. Also a .txt download link valid one hour. Free; quote_pdf writes the A4 document.

輸入參數id必填greetingsign_off

quote_accept

Accept a quote

Mark a quote accepted and turn it into an invoice: created directly in the invoice server when its store is present, otherwise returned as invoice_create-ready line items. The numbers are copied, never recomputed.

輸入參數id必填due_daysissue_dateallow_expiredcreate_invoice

quote_decline

Decline a quote

Mark a quote lost, with a reason kept on the record, freeing a free-tier open slot and counting in the win rate. An accepted quote is refused, naming the invoice it became. Free on every tier.

輸入參數id必填datereason

quote_delete

Delete a draft quote

Delete a draft quote that was never sent, accepted, invoiced or exported, and give its free open-quote slot back. A quote with any of those is refused with the dependent named. The id is never reissued.

輸入參數id必填

quote_pdf

Render the quote as a PDF

Call this tool to render one quote as an A4 print-ready document and return a download link valid for one hour: the invoice layout with the validity date and an acceptance block. Pro.

輸入參數id必填out_path

quote_report

Quote pipeline and win rate

Totals per currency for open, accepted, declined and expired quotes, with counts, the value still open and the win rate. Free covers the current calendar year to date; Pro reports over any date range.

輸入參數tofrom

license_status

License status

Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.

無需輸入參數。

license_activate

Activate license

Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.

輸入參數key必填

版本歷史

2
  1. v0.21.1最新Sep 23, 2026
  2. v0.21.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

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

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Quote 整合