
Developers building reconciliation tools, spend dashboards, or policy alerts currently have to hit Ramp's API directly: setting up an OAuth client, requesting scopes, and writing a one-off integration for each new report.
To help your developers query transactions, reimbursements, and spend data from Ramp without leaving the terminal, we'll show you how to connect Ramp with Merge Agent Handler's Ramp MCP server.
Merge Agent Handler sits between Claude Code and Ramp's API.
You install the Merge CLI, authenticate once with your Merge Agent Handler account, and register the connection with a single command.
Merge will manage Ramp's OAuth client credentials and token refresh on your behalf, so you never store a client secret locally or handle token rotation yourself.
Related: How to use a Ramp MCP in Codex
Before getting started, you'll need the following:
claude --version to confirm)pipx --version to confirm, or install via pip install pipx)If you want to connect Merge Agent Handler's Ramp MCP with internal or customer-facing agentic products, you can follow the steps in our docs.
Install with pipx: pipx install merge-api
Then confirm the installation: merge --version
Run merge login to authenticate the CLI with your Merge Agent Handler account: merge login
This authenticates your session so the CLI can make authorized requests on your behalf going forward.
The simplest way to register Agent Handler with Claude Code:
Open a Claude Code session and try: "List all card transactions from the last 7 days that don't have a receipt attached, grouped by cardholder."
The first time you invoke a Ramp tool, a Magic Link will appear to complete connector authentication.
{{this-blog-only-cta}}
In case you have more questions on setting up and using the Ramp MCP in Claude Code, we've addressed several more commonly-asked questions below.
With Ramp connected, Claude Code can:
You can build directly against Ramp's API. For a developer with a single, narrow use case, that's workable: register an OAuth client, request the scopes you need, and start making requests.
The friction shows up at team scale.
Ramp's OAuth scopes are too coarse: read access to transactions also exposes bill pay and employee data, so a reconciliation agent can't get read-only transaction access alone. Agents also share one client credential, meaning no per-agent audit trail and risky, manual secret rotation.
Merge Agent Handler manages Ramp's OAuth credentials centrally and adds a control layer on top.
You can scope which Ramp operations a given agent is allowed to call, so a tool built for expense reporting doesn't also get access to bill pay or spend-limit changes. Every tool call is logged with the timestamp, tool name, and inputs, which matters when the data involves real company spend.
For a solo developer prototyping against a sandbox, a direct API client is fine. For a finance or engineering team running agents against production spend data, the access scoping and audit trail are what make the deployment defensible.
Ramp holds the operational record of company spend: card transactions, reimbursements, vendor bills, and the accounting codes everything eventually syncs against.
Teams that need to build on that data, whether for reconciliation, policy enforcement, or reporting, currently have to pull it out through exports or a dedicated integration.
With the Ramp MCP connected, Claude Code can query that data directly and act on it inside the same session. You can ask it to flag transactions missing receipts before a close deadline, summarize reimbursements pending approval by department, or check whether a vendor bill is on track to be paid before it's due.
Yes, Merge for Workforce is built to help organizations provision, secure, and govern how employees connect AI to systems like Ramp.
Common patterns include:
Put together, employees can use the Ramp MCP to review spend, audit missing receipts, check reimbursement status while building internal tools, and more, while IT keeps centralized control over which spend data each agent can reach.
Use Merge Agent Handler’s 170+ connectors (including Ramp) to power reliable, secure, and powerful agents.