mcp-tw-invoice
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-tw-invoice幫我對獎發票末三碼 123"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🧾 台灣統一發票助手 (mcp-tw-invoice)
這是一個基於 FastMCP 框架開發的 Model Context Protocol (MCP) 伺服器,支援查詢台灣統一發票中獎號碼與自動對獎。
✨ 特點
FastMCP 架構:使用最新 FastMCP 框架,程式碼簡潔且效能穩定。
雙傳輸模式:同時支援
stdio(本機) 與streamable-http(遠端/Docker) 模式。自動對獎:輸入末 3 碼或完整 8 碼即可判斷是否中獎。
Related MCP server: ezPay E-Invoice MCP Server
🚀 傳輸模式 (Transport Modes)
1. 本機模式 (STDIO) - 預設
適合在個人電腦上與 Claude Desktop 搭配使用。
python src/server.py --mode stdio2. 遠端模式 (HTTP)
適合 Docker 部署與 Dive 客戶端連線。
python src/server.py --mode http --port 8000服務 URL:
http://localhost:8000/mcp
🛠️ 安裝與啟動
1. 本機安裝
pip install .2. Docker 啟動 (推薦)
docker build -t mcp-tw-invoice .
docker run -p 8000:8000 mcp-tw-invoice🔌 客戶端配置範例
Claude Desktop (STDIO)
{
"mcpServers": {
"tw-invoice": {
"command": "python",
"args": ["/絕對路徑/src/server.py", "--mode", "stdio"]
}
}
}Dive / HTTP 客戶端
Type:
streamableURL:
http://localhost:8000/mcp
📄 免責聲明
本工具提供之資訊僅供參考,中獎號碼請以財政部稅務入口網公佈之資料為準。
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for China Railway 12306 ticket availability: schedules and seats by Chinese station name.
MCP server for Quaderno — tax-rate calculation, invoices, contacts, products, receipts & expenses.
Taiwan government tenders: 14M+ notices, vendor/agency intel, forecasts, committees, debarment list.
Read-only MCP server for searching Japan government procurement bid information from the KKJ portal.
Related MCP Servers
- AlicenseAqualityAmaintenanceThe server provides a simple API interface that allows users to search for 12306 tickets.85,008 npm1,270MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes tools for Taiwan's ezPay e-invoice lifecycle, enabling AI assistants to issue, void, and query invoices and allowances through the standard MCP protocol.1MIT
- AlicenseAqualityDmaintenanceA Taiwan holiday query server based on the Model Context Protocol, providing accurate Taiwan public holiday and compensatory work day information.31 npmMIT
- AlicenseAqualityCmaintenanceAn MCP server that provides real-time weather forecasts, weather warnings, and recent earthquake information in Taiwan via the Central Weather Administration's open data API.3MIT