ofdkit MCP server
io.github.Edgar-311 · Updated
Read OFD files and Chinese e-invoices (数电票): text, invoice fields, folder totals. Read-only.
At a glance
ofdkit is an MCP server in the Dev Tools & Git category. It runs locally over stdio via `uvx ofdkit`, and declares no required credentials. It exposes 4 tools, including read_ofd_text, read_ofd_invoice and ofd_info. It scores B (76/100) on the MCP Skills Hub health score as of Oct 28, 2026.
One-click install
Opens your editor and pre-fills the config. Your editor will ask before adding it.
How to install ofdkit in your AI client
Setup for Claude Code, Claude Desktop, Cursor, Codex, Windsurf, Cline and VS Code — copy-paste ready.
How to install ofdkit in Claude CodeAnthropic's agentic CLI
Add the server
bashclaude mcp add ofdkit -- uvx ofdkitVerify it's connected
bashclaude mcp listSharing it with your team?
Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).
Use it in a session
Ask Claude to use the tools this server exposes (e.g. read_ofd_text, read_ofd_invoice, ofd_info). It discovers them automatically.
How to install ofdkit in Claude DesktopDesktop app (MCP config)
Open your MCP config
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json
Add this server
json{ "mcpServers": { "ofdkit": { "command": "uvx", "args": [ "ofdkit" ] } } }Restart Claude Desktop
The tools appear under the 🔌 menu once the app reloads.
How to install ofdkit in CursorAI-first code editor
Create / edit .cursor/mcp.json in your project
json{ "mcpServers": { "ofdkit": { "command": "uvx", "args": [ "ofdkit" ] } } }Enable it
Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.
How to install ofdkit in Codex CLIOpenAI coding agent
Add to ~/.codex/config.toml
toml[mcp_servers.ofdkit] command = "uvx" args = ["ofdkit"]Run Codex
Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.
How to install ofdkit in WindsurfCodeium's agentic IDE
Edit ~/.codeium/windsurf/mcp_config.json
json{ "mcpServers": { "ofdkit": { "command": "uvx", "args": [ "ofdkit" ] } } }Reload
Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.
How to install ofdkit in ClineVS Code autonomous agent
Open Cline → MCP Servers → Configure
Adds to cline_mcp_settings.json.
Add the server
json{ "mcpServers": { "ofdkit": { "command": "uvx", "args": [ "ofdkit" ] } } }
How to install ofdkit in VS CodeCopilot / MCP support
Create .vscode/mcp.json
json{ "servers": { "ofdkit": { "type": "stdio", "command": "uvx", "args": [ "ofdkit" ] } } }Start it
VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.
What tools does ofdkit expose? (4)
Taken from the project's README — the server itself was not queried, so check its docs for the exact schemas.
- read_ofd_text按阅读顺序提取文字,可选 Markdown 和页码范围 / text in reading order, optional Markdown and page range
- read_ofd_invoice发票字段 / invoice fields
- ofd_info页数、尺寸、元数据 / pages, sizes, metadata
- list_ofd_invoices汇总一个文件夹里的发票,可以检查抬头 / summarise a folder of invoices, optionally checking the buyer
What the code can do
Source analysis currently covers npm packages only. This server ships as a Python package, which needs a different parser.
Before you install
Signals gathered from the source repo and package registry — not a safety verdict.
What it can reach
- Runs code on your machine — Executes as a local process with your user's permissions, including filesystem access.
- Downloads at launch — The package is fetched from its registry each run unless you pin a version.
- Last commit today — Actively maintained.
- Repository created 3 days ago — Very new project with little track record yet.
- 0 GitHub stars — Very little community usage so far.
Client compatibility
Health score
B · 76Maintenance, adoption, transparency and packaging — not a safety audit. How this is calculated
- Maintenance30%100%
Last commit 0 days ago.
- Adoption20%0%
0 stars.
- Transparency20%100%
4/4: ✓ public source repo, ✓ declared license, ✓ documentation, ✓ discoverable tool list.
- Provenance15%75%
Links to its own repository; package linkage unverified.
- Packaging15%100%
Publishes a pinned version (0.4.0).
Documentation
Full READMEofdkit
轻量的 Python 工具,用来读取 OFD 文件,提取里面的文字和发票字段,并能接入 AI 工具。OFD 是中国的国家标准版式文档格式(GB/T 33190),常见于电子发票和公文。
A lightweight Python toolkit for reading OFD documents (GB/T 33190, the Chinese fixed-layout format used for e-invoices and official documents): extract text and invoice fields, and use them from AI tools.
状态:0.4 版,接口以后可能还会调整。更新记录见 CHANGELOG。 Status: 0.4, the API may still change. See the CHANGELOG.
能做什么 / What it does
- 看发票:一条命令显示发票号码、日期、购买方、销售方、金额和明细。
Show an invoice: number, date, buyer, seller, amounts and line items, with one command.
- 把一个文件夹里的发票汇总到 Excel,也能直接读税务平台批量下载的 .zip 压缩包。发票号码保持原样(不会变成 2.4E+19),金额可以直接求和,重复的发票会标出来。
Summarise a folder of invoices, or a .zip archive downloaded from the tax service, into an Excel workbook: invoice numbers stay intact, amounts are numbers, duplicates are flagged.
- 报销帮手:检查发票抬头(购买方名称、税号)对不对;按发票内容给文件改名,可以预览、可以改回去。
For reimbursement: check that invoices are made out to the right buyer, and rename invoice files after their contents, with a preview and an undo.
- 按阅读顺序提取文字,包括模板和复合对象里的文字。
Text in reading order, including text in templates and composite objects.
- 给程序和 AI 用:发票字段输出 JSON,提供 MCP 服务器、Agent Skill 和 MarkItDown 插件。
Excerpt — the full document is on GitHub.
Alternatives to ofdkit
- FilesystemA · 93Secure file operations with configurable access controls — read, write, search and move files in directories you explicitly allow.
- Remote Desktop CommanderA · 81Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.
- GitHubB · 73GitHub via MCP: search, repos, issues, PRs, files, notifications. OAuth device flow or token.
- fimemoryB · 77Local-first shared memory for AI tools. Your files, encrypted at rest by default; budgeted reads.
Maintain ofdkit? Add a badge to your README
Shows its health grade, and links readers to install steps for every client.
[](https://mcp-skills-hub.vercel.app/mcps/io-github-edgar-311-ofdkit)Catalog data refreshed . Something wrong? Report it.