McpStamp Per Diem

io.github.theluckystrike由 GitHub 账号 theluckystrike 发布v0.23.0更新于 Nov 3, 2026

根据内置的波兰、HMRC和GSA费率表计算差旅津贴,支持部分天数和餐费。

AI 翻译由 AI 模型根据下方的原文描述翻译,可能有误。

原文描述

Travel allowances from bundled Polish, HMRC and GSA rate tables, with partial days and meals.

已验证Streamable HTTP可网页运行位置与生活效率与工作流金融

概览

McpStamp Per Diem 的托管 MCP 服务(mcp.zovo.one);无需登录;Streamable HTTP;9 个工具。

暂无 AI 概览:以下信息来自注册中心条目和服务本身。

端点
mcp.zovo.one
最近检查

安装

在 SourceWeft 中

  1. 打开 控制台中的 McpStamp Per Diem,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.theluckystrike%2Fper-diem/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "mcpstamp-per-diem": {
      "type": "http",
      "url": "https://mcp.zovo.one/mcp/per-diem"
    }
  }
}

README

mcp-per-diem

Work out the daily travel allowance for a business trip on the rate tables the tax authorities actually publish, and keep the trips you priced. You give it where you went, when you left and when you got back, and which meals somebody else paid for; it gives you the amount per day and the total, in the scheme's own currency, with the partial-day rule and every meal deduction shown next to the number that produced it. Three schemes ship with it: the Polish delegation regulation (domestic and per country), the HMRC benchmark scale rates for travel inside the UK, and the US GSA CONUS standard M&IE and lodging. The tables are bundled files, not a live feed, so the same trip priced twice gives the same answer, and every rate carries the regulation, the source URL and the date it took effect. Nothing leaves your machine.

Built by theluckystrike.

In the official MCP Registry (io.github.theluckystrike/per-diem).

[per-diem demo]

Install

One-click (.mcpb): download per-diem.mcpb from the latest release and double-click it in Claude Desktop: https://github.com/theluckystrike/mcp-servers/releases/latest

Hosted, no install: point a URL-based client at https://mcp.zovo.one/mcp/per-diem. GET https://mcp.zovo.one/mcp/connect mints a token and prints a ready URL.

npm publish for @theluckystrike/mcp-per-diem is pending, so the npx line below returns 404 today.

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{  "mcpServers": {    "per-diem": {      "command": "npx",      "args": ["-y", "@theluckystrike/mcp-per-diem"]    }  }}

Claude Code:

sh
claude mcp add per-diem -- npx -y @theluckystrike/mcp-per-diem

Cursor (~/.cursor/mcp.json or .cursor/mcp.json): the same entry as Claude Desktop.

Tools

toolwhat it does
perdiem_ratesList a scheme's bundled rates with the authority, instrument, source URL and effective date. Filter by country or city.
perdiem_calcPrice one trip: the allowance per day and the total, with the partial-day fraction and the meal deductions the scheme's rule applies.
trip_recordCalculate a trip and save it under a name, with the traveller from the shared business profile.
trip_listList saved trips with a total per currency.
trip_deleteDelete a saved trip that has not been exported and has no expense booked against it, and free the free-tier slot it held.
trip_exportThe exact expense_add arguments for a saved trip, one payload per currency, for the expense-tracker server.
perdiem_reportTotals per scheme and per calendar month, in each scheme's own currency.
license_statusFree or Pro, and where to upgrade.
license_activateActivate a Pro key. Verified offline.

Free vs Pro

FreePro
perdiem_rates, perdiem_calcYes, unlimitedYes
Trips saved per calendar month5, by start dateUnlimited
trip_listYes, unlimitedYes
trip_deleteYes, unlimitedYes
trip_exportNoYes
perdiem_reportNoYes

Get Pro: $19 one-time, or $39 for the bundle.

What is in the tables, and what is deliberately not

Every table under src/tables/ carries a header with the authority, the instrument, the source URL, the date the rates took effect and the date they were read. perdiem_rates returns that header with the rates, so the provenance travels with the number.

The rule for what is in them: a value that could not be stated with confidence from the public regulation text was left out, not guessed. A per diem figure ends up on a tax return. A wrong one that looks authoritative is worse than an absent one, because an absent one is refused by name and you go and look it up.

tablebundledleft out
Poland, domesticThe 45.00 PLN daily diet, the 150 percent lodging lump sum, and the partial-day and meal rulesThe 20 percent local-transport lump sum is listed but not paid: it is not subsistence
Poland, foreign34 countries of the annex, with the diet and its currencyThe other roughly 90 countries, and every per-country lodging limit. A missing country means "not verified here", not "no rate exists"
UK, domesticAll four HMRC benchmark scale rates (5, 10 and 15 hour bands and the late-evening supplement)Nothing
UK, overseasNothing. The file ships with an empty rate list and a header saying soThe whole per-city overseas scale-rate table: roughly 250 cities times eight figures each, in the destination currency. This build could not state them with confidence, so none of them is bundled. perdiem_calc {scheme:"uk"} refuses a foreign destination by name and points at the HMRC page
US, GSAThe CONUS standard M&IE and lodging cap for FY2025 and FY2026, with the published meal breakdownThe roughly 300 non-standard localities (New York City, San Francisco and the rest). A destination that is not one of those takes the standard rate anyway, which is what this table gives

Rates change. Check the effective_date in any answer before you rely on it, and read the source_url if the trip is recent.

Rules the calculator applies

  • Start and end are instants, not wall clocks. Pass ISO 8601 with an offset (2026-03-28T22:00:00+01:00) or a local datetime plus an IANA timezone. Elapsed hours are an epoch difference, so a trip across a clock change is 23 or 25 hours, not 24.
  • Poland counts 24-hour periods from departure. Under 24 hours domestically: nothing under 8 hours, half the diet from 8 to 12, the whole diet above 12. Over 24 hours: a whole diet per period, then half for a remainder up to 8 hours and a whole one above. Abroad the ladder is a third up to 8 hours, half over 8 and up to 12, whole above. Free meals take 25/50/25 percent off a domestic day and 15/30/30 off a foreign one.
  • The UK pays by band: 5.00 GBP from 5 hours away, 10.00 GBP from 10, 25.00 GBP from 15 when the journey is ongoing at 8pm, nothing under 5. A provided meal removes its share of the band, pro rata. HMRC states the principle ("the rate is not payable for a meal that was provided"); the pro-rata arithmetic is this server's reading of it, and it says so in the answer.
  • The US counts calendar days in the destination zone, at 75 percent of M&IE on the first and last day. A provided meal is deducted at its own published amount, and the 5.00 USD of incidentals is never deducted. Lodging is a cap on receipted reimbursement, not an allowance that is paid out; the answer says so every time.
  • Currencies are never added together. There is no exchange rate in this server, so a PLN diet and a EUR one stay two figures.

Exporting to the expense tracker

trip_export returns the exact expense_add arguments for the expense-tracker server, one payload per currency, and writes nothing itself. That is deliberate: expense-tracker publishes no library entry point, and its id counter, its category rules, its VAT split and its currency defaults all live inside its own expense_add handler under its own lock. Appending a row to its data.json directly would produce an expense with none of those applied: one that looks native and is not. Handing back the arguments is the same contract kanban uses for time-tracker's timer_start.

No vat_rate is set on the payload. A statutory per diem is an allowance, not a purchase, so there is no input VAT to reclaim on it.

A measured insight

Substring matching a country name is how a per diem gets quietly priced at another country's rate.

The first build resolved a destination by exact name, then ISO code, then country.includes(destination). A trip to Oman came back priced, in EUR, with no warning: "romania".includes("oman") is true, so it took Romania's 42.00 EUR diet. Oman is not one of the 34 countries this build bundles, so the correct answer was a refusal naming the gap. Instead the caller got a confident number, in the wrong currency, from a country 3,000 km away.

The fix is one line, the fallback is a prefix match of four characters or more, and it is asserted in test/adversarial.test.mjs. The general form is worth more than the fix: a fuzzy match is safe when a miss is cheap and expensive when a miss is silent. Here a miss produces a tax figure, so the fallback has to fail closed. The table being deliberately partial is exactly what makes the substring fallback dangerous: with a complete table the wrong row is a near miss, and with a partial one it is a row that should never have matched at all.

Privacy

Everything stays on your machine. Trips are JSON under ${XDG_DATA_HOME:-~/.local/share}/mcp-servers/per-diem/. The rate tables are files inside the package. There is no network call anywhere in this server, no account and no API key. License keys are verified offline.

License

MIT. Support: [email protected]

Use these docs as an MCP server

Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:

来源:servers/per-diem/README.md,提交 6535b33

工具

9

perdiem_rates

List the bundled per diem rates

List a scheme's bundled daily allowance rates with the authority, instrument, source URL and effective date they came from. Filter by country or city. Free and unlimited.

输入参数cityschemecountry

perdiem_calc

Calculate a travel allowance

Calculate the daily travel allowance for one trip: the amount per day and the total in the scheme's currency, with the partial-day fraction and the meal deductions the scheme's own rule applies. Free and unlimited.

输入参数end必填start必填scheme必填timezonedestination必填fiscal_yearlate_eveninglodging_nightsmeals_providedmeals_provided_daily

trip_record

Save a calculated trip

Calculate a trip and save it under a name, traveller taken from the shared business profile; returns the TRIP-YYYY-NNNN id. An identical record is refused and named, spending no slot. Free: 5 trips a calendar month.

输入参数end必填name必填start必填scheme必填projectpurposetimezonetravellerdestination必填fiscal_yearlate_eveninglodging_nights另有 2 个

trip_list

List saved trips

List saved trips with the scheme, destination, dates and total on each, and a total per currency. Filter by scheme, destination, traveller, project and start date range. Free and unlimited.

输入参数tofromschemeprojecttravellerdestination

trip_delete

Delete a saved trip

Delete one saved trip and free the free-tier slot it held that month. A trip that has been exported or has an expense booked against it is refused with the blocker named, and nothing is written. Free and unlimited.

输入参数trip必填

trip_export

Export a trip as expenses

Return the exact expense_add arguments for a saved trip: one payload for subsistence and, with split_lodging, one for lodging. It writes nothing in the expense-tracker server; only mark_exported changes this trip. Pro.

输入参数trip必填billablecategorymark_exportedsplit_lodging

perdiem_report

Totals per scheme and month

Total saved trips per scheme and calendar month, bucketed by start date: trips, days, subsistence and lodging, each in the scheme's own currency, with the trip ids behind every figure. Pro.

输入参数tofromschemetraveller

license_status

License status

Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.

无需输入参数。

license_activate

Activate license

Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.

输入参数key必填

版本历史

5
  1. v0.23.0最新Nov 3, 2026
  2. v0.22.6Oct 14, 2026
  3. v0.22.1Oct 9, 2026
  4. v0.22.0Sep 17, 2026
  5. v0.21.0Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分