Mercury MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Mercury MCP or direct API to list accounts, check balances, review transactions, and fetch statements through natural language.

Mercury MCP logoMercury MCP
Dcr Oauth

Mercury MCP is Mercury's official MCP server for read-only business banking data. Use it to safely inspect accounts, balances, transactions, cards, statements, and treasury data.

30 Tools

Try Mercury MCP now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
Mercury MCP
Try asking
TOOLS

Supported Tools

Every Mercury MCP action and event your agent gets out of the box.

Getaccount

Get account by ID

Getaccountcards

Retrieve all debit and credit cards associated with a specific account.

Getaccounts

Retrieve a paginated list of accounts.

Getaccountstatements

Retrieve a paginated list of monthly statements for a specific account.

Getattachment

Retrieve attachment details including download URL

Getcurrentdate

Get the current date in the format.

Getcustomer

Retrieve details of a specific customer by their ID

Getinvoice

Retrieve details of an invoice by its ID

Getorganization

Retrieve information about your organization including EIN, legal business name, and DBAs.

Getrecipient

Retrieve details of a specific recipient by ID

Getrecipients

Retrieve a paginated list of all recipients.

Getsaferequest

Retrieve a specific SAFE request by its ID.

Getsaferequests

Retrieve all SAFE (Simple Agreement for Future Equity) requests for your organization.

Gettransaction

Get transaction by ID

Gettransactionbyid

Retrieve a single transaction by its ID.

Gettreasury

Retrieve a paginated list of all treasury accounts associated with the authenticated organization.

Gettreasurystatements

Retrieve a paginated list of statements for a specific treasury account.

Gettreasurytransactions

Retrieve paginated treasury transactions for a specific treasury account.

Getuser

Get user by ID

Getusers

Get all users

Getwebhook

Retrieve details of a specific webhook endpoint by ID

Getwebhooks

Retrieve a paginated list of all webhook endpoints for your organization.

Listcategories

Retrieve a paginated list of all available custom expense categories for the organization.

Listcredit

Retrieve a list of all credit accounts for the organization.

Listcustomers

Retrieve a paginated list of customers.

Listinvoiceattachments

Retrieve a list of all attachments for a specific invoice

Listinvoices

Retrieve a paginated list of invoices.

Listrecipientsattachments

Retrieve a paginated list of all recipient tax form attachments across all recipients in the organization.

Listsendmoneyapprovalrequests

Retrieve a paginated list of send money approval requests for the authenticated organization.

Listtransactions

Retrieve a paginated list of all transactions across all accounts.

SETUP GUIDE

Connect Mercury MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["mercury_mcp"],
  mcp: true,
});
Create a session scoped to Mercury MCP and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "List my Mercury accounts with current balances",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a Mercury MCP request
SETUP GUIDE

Connect Mercury MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["mercury_mcp"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to Mercury MCP
3

Run Mercury MCP tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "List my Mercury accounts with current balances" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the Mercury MCP tool calls through the session, and print the final answer

Why Use Composio?

AI Native Mercury MCP Integration

  • Supports both Mercury MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable banking data lookups
  • Rich read-only coverage for accounts, balances, transactions, cards, recipients, statements, and treasury data

Managed Auth

  • Built-in OAuth handling with automatic token refresh and rotation
  • Central place to manage, scope, and revoke Mercury MCP access
  • Per user and per environment credentials instead of hard-coded banking secrets

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you always know what Mercury data was read, when, and on whose behalf
  • Read-only design helps agents answer finance questions without initiating transactions or changing account data

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access Mercury MCP
  • Scoped, least privilege access to Mercury banking resources
  • Full audit trail of agent actions to support finance review and compliance
FRAMEWORKS

Use Mercury MCP with any AI Agent Framework

Choose a Framework you want to connect Mercury MCP with

Rolling this out across your team?

Give your team centralized access control across every framework with Composio’s MCP Gateway.

EXPLORE MCP GATEWAY
FAQ

Frequently asked questions

Yes, Mercury MCP requires you to configure your own DCR OAuth credentials. Once set up, Composio handles secure credential storage and management for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Yes. Composio is SOC 2 Type II compliant and is built to keep your Mercury connection and credentials secure. OAuth tokens and API keys are encrypted, and sensitive customer data is protected at rest and in transit.

Composio also undergoes independent security testing and continuously monitors its systems for security threats. You can review the latest reports and policies in the Composio Trust Center.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

When you connect a Mercury account through Composio, every action runs under that account, so anything the agent creates, sends, or changes shows up in Mercury as done by you. Keep an approval step in your prompt for actions with side effects, such as sending or deleting, and have the agent draft first.

Whatever the credentials you connect allow inside Mercury. If Mercury lets you scope a key to specific permissions, create a scoped one so the agent can only do what you intend. You can revoke the key inside Mercury at any time.

Yes. Composio supports multiple connected accounts for the same app, and that works in Claude, ChatGPT, or any other assistant you connect through Composio. Give each Mercury connection a name such as work or personal, and the assistant uses the one you mention in the request. Each account keeps its own credentials and nothing is merged.

Composio's free plan includes 100,000 tool calls per month with no credit card, which covers most personal Mercury use. Paid plans add higher limits and team features. Your Mercury plan and its API limits still apply as usual.

Built-in connectors usually give one AI access to a limited set of apps. Many people use Composio because it lets their AI connect to more apps than it normally supports, or connect to multiple accounts for the same app (e.g. connect Claude to multiple Mercury accounts).

With Composio, you connect Mercury once and then use it across different AI assistants without setting it up separately in each one. Connect your apps to Composio once, then connect Composio to whichever AI you use, whether that's Claude, ChatGPT, Hermes, or your own custom assistant.

Start with Mercury MCP.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Mercury MCP tool your agent needs.Free to start.

Start building