OAUTH 2.1
BANKING
Every bank account, transaction, and invoice your startup's agent needs to act on lives in Mercury. Mercury MCP gives your agent per-user OAuth access to banking data scoped to the authorizing Mercury account.
List all Mercury accounts and current balances.
Fetch transactions with filters for date, amount, and type.
Retrieve payment recipients saved to the account.
List invoices with status, amount, and due date.
Get treasury account details and yield information.
Initiate a payment to a saved recipient.
// Scalekit AgentKit — framework-agnostic
import { ScalekitClient } from "@scalekit/sdk";
const client = new ScalekitClient();
const token = await client.connections.getToken("mercurymcp", userId);
const mcp = new MCPClient({ token });// OpenAI SDK
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit/sdk";
const sk = new ScalekitClient();
const token = await sk.connections.getToken("mercurymcp", userId);
const client = new OpenAI();
const resp = await client.responses.create({ tools: [{ type: "mcp", server_url: mcpUrl, headers: { Authorization: `Bearer ${token}` } }] });// Anthropic SDK
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit/sdk";
const sk = new ScalekitClient();
const token = await sk.connections.getToken("mercurymcp", userId);
const client = new Anthropic();
const resp = await client.beta.messages.create({ mcp_servers: [{ url: mcpUrl, authorization_token: token }] });// Google GenAI SDK
import { GoogleGenAI } from "@google/genai";
import { ScalekitClient } from "@scalekit/sdk";
const sk = new ScalekitClient();
const token = await sk.connections.getToken("mercurymcp", userId);
const ai = new GoogleGenAI();
const resp = await ai.models.generateContent({ tools: [{ mcpServers: [{ serverUrl: mcpUrl, httpOptions: { headers: { Authorization: `Bearer ${token}` } } }] }] });