AI 开票助手 · 电子发票开具

io.github.imoldyoungPublished by GitHub account imoldyoungv0.2.0Updated Oct 24, 2026

对话式开具电子发票(数电票):第一步免费生成发票草稿(自动校验税号、税率并算税),第二步确认开票(需 App Key,按张计费),支持开票记录查询。

VerifiedStreamable HTTPWeb executableFinanceBusiness & Commerce

Overview

AI-generated overview

Remote MCP server that lets an assistant draft, validate and issue Chinese electronic invoices (数电票) from order details, then query invoice records.

What you can do
  • Draft invoices from order text or structured line items, with automatic validation of buyer tax ID format, tax rates and amount limits, plus tax and total calculation
  • Confirm a draft and formally issue the invoice, returning invoice number and delivery information
  • Query drafts and issued invoices under the current App Key, filtered by draft, issued or all
  • Read service description, pricing and contact details without an App Key
When to use it
Useful when you want to turn order or purchase details into a Chinese electronic invoice through conversation, with a free draft step to check tax ID, rates and totals before paying to issue. Also handy for looking up which invoices were drafted or issued under your key.
Requirements
Remote streamable HTTP endpoint; no local install. A purchased App Key sent in the X-App-Key header is required for issuing and querying; the service info tool and draft creation work without it. Network access to the provider's endpoint.
Before you install
Issuing an invoice is a paid, per-invoice action that consumes your purchased quota, so confirm drafts before issuing. The App Key is a secret tied to your billing account and should be kept private. Invoice data, including buyer tax IDs and amounts, is sent to the third-party provider.

Installation

In SourceWeft

  1. Open AI 开票助手 · 电子发票开具 in the dashboard and add it to a workspace.
  2. Connect X-App-Key credentials. They are stored privately and never shown on public pages.
  3. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.imoldyoung%2Fe-invoice/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "ai": {
      "type": "http",
      "url": "https://e-invoice-mcp.601096790.workers.dev/mcp",
      "headers": {
        "X-App-Key": "<YOUR_API_KEY>"
      }
    }
  }
}

Tools

4

service_info

查看服务介绍、计费方式与联系方式(无需 App Key,免费)。

Takes no parameters.

invoice_create_draft

第 1 步:把订单信息(文字描述或结构化明细)生成发票草稿。自动校验购方税号格式、税率合法性、金额上限,并自动计算税额与价税合计。草稿免费生成,24 小时内有效。

Parametersitemsrequiredremarkbuyer_namerequiredbuyer_tax_idinvoice_type

invoice_confirm_issue

第 2 步:确认开具草稿。传入 invoice_create_draft 返回的 draft_id,正式提交开票(需 App Key,按张计费)。开票后生成发票号码与交付信息。

Parametersdraft_idrequiredpayer_email

invoice_query

查询当前 App Key 名下的发票草稿与开票记录(需 App Key)。可按状态筛选:draft(草稿)/ issued(已开具)/ all。

Parametersstatusdate_todate_from

Version history

1
  1. v0.2.0LatestSep 16, 2026

Score

83% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts

    Declare a GitHub repository with a README, or serve resource_documentation in the OAuth protected-resource metadata.

  • LicenseNot applicable

    A hosted service is used under its provider's terms, so no license is expected here. This check is left out of the percentage.