
Electronics Rfq Agent
io.github.RudrenduPaul由 GitHub 帳號 RudrenduPaul 發布v0.3.2更新於 Oct 28, 2026
AI quoting agent for electronics distributors. RFQ in, quote out via MCP tools.
概覽
本機 MCP 伺服器,用 Claude 解析電子元件詢價(RFQ)文件,並在 ERP 目錄中查價,產出報價草稿。
- 可以做什麼
- 解析詢價文件(PDF、Excel、Word、純文字),依設定的利潤率產出報價草稿
- 查詢單一料號的目錄資料、價格與庫存
- 稽核已儲存的報價檔案,查看哪些行已找到、被替換或缺少,以及填充率
- 可搭配內建的模擬 ERP(含 200 個範例料號),或連接 Epicor、SAP、Oracle、Dynamics
- 適用情境
- 適合電子元件通路商或業務工程師:他們每天要花數小時把客戶詢價文件整理成報價,希望助理依真實目錄與價格資料起草報價,而不是憑空估價。
- 執行需求
- 以本機 Python 套件執行(PyPI 套件名 electronics-rfq-agent-cli,用 uvx 或 erfa mcp 指令啟動)。解析文件需要環境變數 ANTHROPIC_API_KEY;稽核工具不需要此金鑰。連接真實 ERP 需要該系統的網址與 API 金鑰,SAP 還需手動安裝 SAP NetWeaver RFC Library。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Electronics Rfq Agent,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Electronics RFQ Agent
Your sales engineers are spending 2-4 hours turning RFQ documents into quotes. This does it in seconds.
Electronics RFQ Agent is a Python library and CLI that reads RFQ documents (PDF, Excel, Word), looks up every line item against your ERP catalog, and outputs a draft quote. It connects to SAP, Epicor, Oracle, and Microsoft Dynamics through MCP servers, so it works with Claude, GPT-4, or any agent framework that speaks MCP.
[CI] [PyPI version] [Python 3.10+] [License: MIT] [OpenSSF Scorecard]
Table of contents
- Install
- The problem this solves
- Quickstart
- Commands
- API reference
- How it differs from the alternatives
- ERP support
- Benchmarks
- Integration matrix
- Try it in Docker
- Security
- FAQ
- Contributing
- License
Install
To install from source instead:
Parsing RFQ documents (PDF, Excel, Word) calls the Anthropic API, so set ANTHROPIC_API_KEY before running anything that touches a real document:
You don't need this key to run erfa audit against an existing quote file, or to explore the CLI with --help. Only document parsing calls out to Claude.
The problem this solves
We were working with electronics distributors who had 3-5 sales engineers spending most of their day on quote entry. Every tool we found was either tied to one specific ERP or required a 6-month integration project. We wanted something that worked with what distributors already had, could be self-hosted (quote data is sensitive), and was actually extensible.
The MCP architecture means adding a new ERP is writing one file. The parser handles the document formats distributors actually send: hand-filled PDFs, multi-sheet Excel files, and the occasional scanned table.
Quickstart
No ERP system required to try it out; the mock backend ships with 200 realistic electronics parts. You do need ANTHROPIC_API_KEY set, since parsing the RFQ document is still a real Claude call:
MockERP applies quantity-based pricing tiers automatically: qty >= 1000 gets 20% off, qty >= 100 gets 10% off, qty >= 10 gets 5% off. List price applies below qty 10. This mirrors real-world volume pricing so benchmarks and integration tests reflect realistic cost curves.
Connect to a real ERP:
Commands
erfa ships two subcommands. Every flag below is pulled straight from erfa --help.
Audit output example (real output from erfa audit docs/example-quote.json, generated by running the mock ERP's pricing logic against the sample RFQ in tests/fixtures/sample_rfq.txt):
Zero-price parts: If a part exists in the ERP catalog but has a unit price of $0.00, the agent quotes $0 rather than skipping the line, and sets
line.notesto a message flagging the zero price so you catch it before quoting the customer. Checkline.notesfor any found or substituted line before sending a quote out.
API reference
The full reference lives in docs/api.md: every QuoteAgent parameter, the shared ERP connector interface, Quote/QuoteLineItem field-by-field, and the exception hierarchy. The exports below are what from electronics_rfq_agent import ... actually gives you, grepped from src/electronics_rfq_agent/__init__.py, not guessed:
How it differs from the alternatives
ERP support
SAP note: pyrfc requires the SAP NetWeaver RFC Library, which is not on PyPI and must be downloaded manually from SAP's support portal (S-user required). See docs/erp-setup/sap.md for step-by-step instructions.
Benchmarks
Measured using the in-memory mock backend (200 realistic parts, no ERP system required). Run it yourself:
ERP lookup latency (100 individual lookups, mock backend):
Quote assembly time by RFQ size (parser mocked, no Anthropic API call):
These numbers cover ERP lookup and quote assembly only. The RFQ parser is mocked and no Anthropic API call is made. In production, AI document parsing adds 5-15s per document and real ERP lookups add 100-500ms per line (parallelised at up to max_concurrent=10), giving a realistic total of ~15s for a 50-line RFQ. Manual baseline: 2-4 hours.
Integration matrix
Electronics RFQ Agent works with any agent framework that supports MCP:
Try it in Docker
Your quote data never leaves your environment.
Security
- Vulnerability scanning: Trivy scans every CI run (HIGH/CRITICAL severity, build fails on unfixed findings), results uploaded to the GitHub Security tab.
- Release signing: the release workflow signs built wheels and sdists with Sigstore and attaches a CycloneDX SBOM to each GitHub Release once a version is tagged.
- Dependency pinning: Dependabot keeps GitHub Actions and Python dependencies current (weekly patch updates, monthly Actions updates).
- Disclosure: SECURITY.md. Report vulnerabilities privately via email or GitHub Security Advisories; 48-hour acknowledgement, 90-day responsible disclosure.
FAQ
What does Electronics RFQ Agent actually do? It takes an RFQ document (PDF, Excel, or Word) from a customer, extracts every line item with Claude, looks each part up against your ERP catalog through an MCP connector, and returns a priced draft quote with margin applied. A sales engineer reviews and sends it instead of building it from scratch.
Is it production ready? It's Beta (v0.2.x). The core library, Epicor, Oracle, and Dynamics connectors are covered by CI (lint, mypy strict, pytest with an 80% coverage gate, Trivy scanning) across Python 3.10-3.12. SAP support is explicitly marked Beta and requires a manual install step (the SAP NetWeaver RFC Library isn't on PyPI).
Do I need an ERP system to try it?
No. MockERP ships with 200 realistic electronics parts and applies quantity-based pricing tiers, so you can run the full parse-lookup-quote flow with zero ERP credentials. You do still need ANTHROPIC_API_KEY, since document parsing is a real Claude call. Only erfa audit (reading an already-saved quote file) works with no key at all.
How is this different from asking ChatGPT to read the RFQ? A generic chat model can read a document and even guess at prices, but it has no connection to your actual ERP catalog, inventory, or contract pricing, so it's making numbers up. Electronics RFQ Agent looks up every line item against your real catalog data and only quotes what's actually in stock at the actual cost price plus your configured margin.
How is this different from SAP Joule? Joule is SAP's proprietary AI assistant suite, built into SAP's cloud platform (SAP BTP) and centered on SAP data. Electronics RFQ Agent is MIT-licensed, self-hosted, and works with SAP, Epicor, Oracle, and Dynamics through the same MCP interface. Your quote data never has to leave your environment, and you're not tied to one ERP vendor.
How do I call this from an agent instead of the CLI?
Run erfa mcp to launch an MCP stdio server exposing quote_rfq, lookup_part, and audit_quote as typed tools. Point any MCP-compatible client (Claude, GPT-4, Gemini, or a custom agent framework) at erfa mcp as the launch command, and it can call those tools directly with structured JSON in and out, no CLI output to parse.
Which document formats does it parse?
PDF (including scanned tables, via Claude's vision capability), Excel (.xlsx/.xls, searches every worksheet for the line-item header row), and Word (.docx, reads all tables). Plain text RFQs work too.
What happens to a line item that isn't in the ERP catalog?
It's marked not_found with a note explaining why (rather than silently dropped or guessed at), and it's excluded from the quote total. Run erfa audit on the saved quote JSON to see exactly which lines were found, substituted, or missing, and why.
Can I use this commercially? Yes. It's MIT licensed, so you can use it, modify it, and ship it commercially with no royalty and no obligation to open-source your changes. Attribution via the license file is all that's required.
Is my RFQ and pricing data sent anywhere besides Anthropic? Only the RFQ document content goes to the Anthropic API for parsing. ERP lookups go directly from your machine to your ERP system over the connector you configure: there's no intermediary service, and nothing is stored outside your own environment unless you choose to persist quote JSON yourself.
Is this published to PyPI?
Yes, as electronics-rfq-agent-cli (pip install electronics-rfq-agent-cli). The publish pipeline (build, Sigstore signing, SBOM, trusted-publisher upload) lives in .github/workflows/release.yml and runs on every v* tag push. The Python import path (electronics_rfq_agent) and the erfa CLI command are unchanged; only the registry-facing package name carries the -cli suffix, matching this maintainer's naming convention for CLI tools.
Contributing
- Read CONTRIBUTING.md before opening a PR
- Good first issues are labeled in GitHub
- ERP adapters live in
electronics_rfq_agent/mcp/; each is a self-contained file with no changes to core - All PRs require 80% test coverage
GitHub Discussions: Ask questions, share ideas Discord: coming soon
Full docs: Getting started · API reference · ERP setup: Epicor · SAP · Oracle · Dynamics 365 · Changelog
MIT. Contributions welcome.
License
MIT. See LICENSE.
Cite this work
If you use Electronics RFQ Agent in research, please cite:
Built by Rudrendu Paul and Sourav Nandy
來源:README.md,提交 240f625
工具
0版本歷史
1- v0.3.2最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分