
Concur Mcp
io.github.chrischallv0.1.0更新于 Oct 9, 2026
Unofficial SAP Concur MCP for Claude — expense reports, expenses, receipts and trips
概览
非官方 SAP Concur 服务器,让助手读取并在确认后修改你的费用报告、费用、收据和行程。
- 功能
- 通过 Concur 网页应用使用的内部 GraphQL API 连接助手与你自己的 SAP Concur 账户。读取类工具可列出报告、费用、未分配的卡交易、收据和差旅行程,并查看报告时间线与异常项。写入类工具可创建、更新、提交、撤回和删除报告与费用,把可用费用移入报告,上传、附加、分离和删除收据,以及发送行程邮件;所有写入都需确认。还提供只读的原始 GraphQL 查询和需确认的原始变更。
- 适用场景
- 适合自行管理 Concur 报销的用户:在对话中询问哪些报告尚未提交或被什么阻塞、哪些卡交易还未归入报告、下一趟行程何时出发,并完成创建报告、把费用移入报告或附加收据等日常操作。
- 运行要求
- 以 stdio 在本地运行;需要 Node.js 22.5 或更高版本、Claude Desktop 或 Claude Code 等 MCP 主机、ContextMint Bridge 浏览器扩展,并保持已登录的 Concur 标签页打开。用 CONCUR_DC 指定数据中心(默认 us2);CONCUR_WS_PORT 默认 37149。首次需在扩展中批准配对码。
安装
在 SourceWeft 中
- 打开 控制台中的 Concur Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
SAP Concur MCP
A Model Context Protocol server that connects Claude to SAP Concur: your expense reports, the expenses on them, available (unassigned) expenses, receipts, and Concur Travel trips — read and write, with every write confirmation-gated.
[!WARNING] AI-developed project. This codebase was entirely built and is actively maintained by Claude. No human has audited the implementation. Review all code and tool permissions before use.
[!CAUTION] Unofficial and unsupported. This server does not use Concur's documented partner API. It calls the internal GraphQL API the Concur web app itself uses, authenticated with your own signed-in browser session. It may break without notice, and automated use may conflict with SAP Concur's or your employer's terms. Use it only for your own account, at your own discretion.
What you can do
Ask Claude things like:
- "Which of my Concur reports are still unsubmitted, and what's blocking them?"
- "Show me the card transactions that aren't on a report yet."
- "Create a report called 'Austin offsite' and move last week's Uber and hotel charges onto it."
- "Upload ~/Downloads/dinner.pdf and attach it to the dinner expense."
- "When does my next trip leave, and what hotel am I in?"
Requirements
- Claude Desktop, Claude Code, or any MCP host
- Node.js 22.5 or later
- The ContextMint Bridge browser extension and a signed-in Concur tab (
https://<dc>.concursolutions.com/…)
Installation
Claude Code plugin
Any MCP host (npx)
Claude Desktop (.mcpb)
Install the .mcpb bundle from the latest release. The installer asks for your datacenter (default us2).
How it authenticates
Concur's web app authenticates its API calls with an HttpOnly JWT cookie that the page itself cannot read. This server uses the fetchproxy bridge only to read three session cookies from your signed-in Concur tab: JWT, plus Concur's legacy session cookies OTSESSIONAABQRD and OTSESSIONAABQRN. Every API call is then made from Node with Authorization: Bearer <jwt> and a Cookie header carrying whichever OTSESSION cookies the tab had — the parts of Concur still served by its legacy services (report keys, currencies, available receipts, permissions) answer an error without them. The cookies are held in memory only and never appear in an error or a log; the only thing written under your home directory is the bridge's pairing identity.
The token lives 60 minutes. The server re-reads the cookies (all together) from your tab when the token is within two minutes of expiry, or once on a 401 (one re-read and one retry per call, never a loop). A read that fails the way a stale OTSESSION cookie fails gets the same single re-read and retry. Concur keeps the cookies fresh while a tab is open, so keep a signed-in Concur tab open while you use the tools. concur_healthcheck reports which source supplied the token, how many minutes it has left and whether the legacy session cookie was found — never a cookie value.
Upgrading from an earlier build? The bridge scope grew from
JWTalone toJWT+ the two OTSESSION cookies. The pair grant is per-scope, so an already-paired server must be re-approved once: the next call answers with a new pair code (or a scope-changed notice) — approve it in the ContextMint Bridge popup.
Pairing (once)
- Install ContextMint Bridge (Chrome: load the release zip unpacked) and sign in to Concur in that browser.
- Ask Claude to run
concur_healthcheck. The first call answers with a pair code. - Approve that code in the ContextMint Bridge popup. The trust persists across restarts (it lives in
~/.fetchproxy/identity/).
More than one browser? If ContextMint Bridge is installed in several browsers, each one dials the same local port, and the pair code can be approved in any of them. Approve it in the browser that holds your Concur session — the server pins whichever extension approved it, and only that browser's tab can supply the cookie. Lines like refusing an extension whose identity is not the one this MCP paired with on stderr are the other browser being turned away; they are harmless.
Paired the wrong browser, or changed browsers? Revoke concur-mcp in the ContextMint Bridge popup, clear the server's pinned extension with fpx trust clear concur-mcp (from @fetchproxy/cli; or delete ~/.fetchproxy/identity/concur-mcp.extension-trust.json), restart the server, and pair again from the right browser.
Configuration
Confirming writes
Every tool that changes something in Concur (or emails someone) is confirmation-gated:
- Clients that support MCP elicitation show a real confirmation prompt describing exactly what will be sent.
- Elsewhere (claude.ai, Claude Desktop) the first call makes no change: it returns a preview of exactly what would be sent plus a single-use, short-lived
confirmToken. Only a repeat call carrying that token writes, and if anything in the request changed in between, the token is refused.
MCP_CONFIRM_MODE decides who may use that token:
Text that comes back from Concur — vendor names, comments, trip details, emails — is treated as untrusted data: it can never authorise a write.
Tools
Most read tools take view: compact | full | raw (default compact): compact drops the fields you rarely need, full keeps them all, raw is Concur's response unprojected.
Session and lookups
Reports and expenses (read)
Reports and expenses (write — all confirmation-gated)
Receipts
Travel
Escape hatches
Out of scope
These exist in Concur but are deliberately not built. Not built is not the same as refused: the raw escape hatches can still reach anything below that the guard does not name.
Refused by concur_graphql_mutation (matched by operation name and by the field the web app's text selects, so renaming or aliasing does not get through): processApproval, updateWorkItemStatus, startSearch, saveBookingSelections, holdTrip, confirmTrip, commitChange, tryCancelTripOrBooking, and SubmitExpenseReport (use concur_submit_report).
- Approvals — approving or sending back other people's reports (
contextRole: MANAGER). Not built: theapprovalsportal.asppage, theGetApproversListandloadApprovalDetailsreads, and theUpdateTimelineWorkflowcall. Refused: CDSprocessApproval, andupdateWorkItemStatus(updateDelegatesDashboardWorkItemStatus). This server acts only on your own data. - Card-transaction management — the card accounts page and its operations:
/Expense/Client/cardtransactions.asp,GetCardAccounts,GetCardTransaction,MoveCCTransactionsToReport,CreateCBSReportAndMoveCCTransactionsToReport,RefreshYodleeTransactions. (Card charges that already appear as available expenses are covered — list, move to a report, delete.) - Booking or cancelling travel — search, price, book, hold, confirm or cancel (
startSearch,saveBookingSelections,holdTrip,confirmTrip,commitChange,tryCancelTripOrBooking). Trips are read-only apart from emailing the itinerary.
Development
The API surface this is built on — hosts, auth, every operation used, and what was verified live — is in docs/CONCUR-API.md, with verbatim operation texts in docs/api/.
License
MIT
来源:README.md,提交 61f22f4
工具
0版本历史
1- v0.1.0最新Oct 9, 2026


