Mercury MCP MCP for AI Agents

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 MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

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

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for Mercury MCP
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'Show my recent Mercury transactions from the last 30 days'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect Mercury MCP API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

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

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute Mercury MCP Tools via Tool Router with Your Agent

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

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');

const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'List my Mercury accounts with current balances'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute Mercury MCP actions with your Agent

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

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.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

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

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