
Parsi MCP
io.github.amirjld由 GitHub 帳號 amirjld 發布v0.3.0更新於 Oct 26, 2026
Offline Persian/Iran tools: Jalali dates, validators, Persian text, price inputs, RTL frontend.
概覽
離線 MCP 伺服器,提供 56 個波斯語與伊朗在地化工具:Jalali 日期、伊朗驗證器、波斯文處理、金額格式化和 RTL 前端輔助。
- 可以做什麼
- 轉換、格式化、解析與計算 Jalali 日期差值,產生月曆格線與週/月/季/年區間,計算年齡與工作日
- 驗證伊朗身分證號、金融卡、Sheba 號、手機號與郵遞區號,並查詢銀行、電信業者與地址資訊
- 正規化波斯文,修正 ZWNJ 與數字,數字與波斯語數詞互轉,排序、模糊搜尋、方向偵測與安全截斷
- 格式化里亞爾與土曼金額,把價格寫成文字,計算加值稅,匯出 Excel 安全的 CSV
- 取得 RTL 規範、檢查 CSS 與 Tailwind、轉換為邏輯屬性,並取得起始範本與價格輸入片段
- 查詢伊朗 31 個省份及其 ISO 代碼與首府
- 適用情境
- 適合需要產生波斯語內容或面向伊朗市場的表單與頁面:Jalali 日期選擇器、含里亞爾價格的結帳頁、身分證或 Sheba 驗證,以及 RTL 版面工作。也適合清理波斯文與把數字轉成文字。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行,需要 Node.js 18+;README 說明 npx 安裝需等套件發布到 npm,否則從原始碼建置。未宣告任何 API 金鑰或環境變數,完全可離線使用。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Parsi MCP,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
parsi-mcp
English | فارسی
An MCP server that gives AI agents (Claude, Cursor, VS Code Copilot and others) reliable Persian and Iran-specific tools. It runs fully offline, with no API keys: Jalali dates, Iranian validators, Persian text handling, grouped price inputs with Persian words, and an RTL frontend toolkit.
56 tools. See the full list in TOOLS.md.
Install
Requires Node.js 18+. The
npxcommands below work once the package is published to npm; until then use the local build.
Claude Code
Or install the plugin, which adds the MCP server and the persian-rtl-frontend skill:
Cursor (~/.cursor/mcp.json or .cursor/mcp.json in a project)
Claude Desktop (claude_desktop_config.json: %APPDATA%\Claude\ on Windows, ~/Library/Application Support/Claude/ on macOS)
VS Code (.vscode/mcp.json)
Agent skill (tells agents to build Persian UIs RTL-first and to call these tools):
From source
Before and after
You ask: "Build a checkout page in Persian with a price field."
Without parsi-mcp, agents typically produce an LTR page with margin-left and text-left, a plain number box, and Latin digits.
With parsi-mcp, the agent loads the RTL guidelines, takes rtl_starter_snippet for the layout and price_input_snippet for the field, and validates payment fields with validate_card_number and validate_sheba:
What is inside
Data notes
Bank BINs, Sheba codes, mobile prefixes and province data only include entries confirmed by public sources. Lunar (Hijri) holiday dates, vehicle plate parsing and national-ID city lookup are not included because reliable offline data could not be verified. The VAT helper needs you to supply the rate.
Develop
Each tool is a small pure function in src/lib, registered in src/server.ts. Contributions are welcome.
Releasing
See the maintainer steps in RELEASING.md.
License
MIT
來源:README.md,提交 9a1e66f
工具
0版本歷史
1- v0.3.0最新Oct 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分