インストール不要。2分以内に動きます。
cloud.anythingmcp.com で無料トライアルを開始し、Mercury をワンクリックで追加して、AI クライアント(Claude、ChatGPT、Copilot、Cursor)を生成された MCP エンドポイントに向けるだけ。Docker も git clone も、開発経験も不要です。
概要
AI に Mercury のビジネス口座を読み取らせます。口座と残高、取引、カード、明細書、送金先、Treasury、クレジット、ユーザーを参照できます。Read Only の API トークンで動作し、送金はできません。カードの凍結と取引メモの更新は任意で、初期状態ではオフです。
こう聞いてみよう
Mercury のサンプルプロンプト
プロンプトをクリックでコピー。Claude / ChatGPT / Cursor / Gemini / Copilot / OpenClaw に貼り付けて、このコネクターで実行できます。
Claude は AI のため誤ることがあります。回答をご確認ください。
💡 インストール不要? cloud.anythingmcp.com を直接利用してください。 サインインし、Connectors → Mercury をクリック、認証情報を貼り付け、MCP API キーを発行すれば完了です。Docker も
git cloneもローカルサーバーも不要。
Mercury + Gemini
AI に Mercury のビジネス口座を読み取らせます。口座と残高、取引、カード、明細書、送金先、Treasury、クレジット、ユーザーを参照できます。Read Only の API トークンで動作し、送金はできません。カードの凍結と取引メモの更新は任意で、初期状態ではオフです。
前提条件
完全なセットアップ手順はコネクタ自体に組み込まれています (ストアでコネクタを選択すると表示)。必要な環境変数:
MERCURY_API_TOKEN
ステップ 1 — 認証情報を取得
設計上、お金を動かすことはできません。 このコネクタには、支払い、口座間の振替、支払いリクエスト、送金先の追加、請求書、カードの新規発行を行うツールがありません。オフになっているツールとしても存在せず、Mercury の送金用エンドポイントを呼び出すこともありません。承認待ちの支払いリクエストを一覧表示できますが、作成、承認、取り消しはできません。
https://app.mercury.comにサインインし、左上の組織名をクリックして Settings、続いて Tokens を開きます。API トークンを作成できる権限のあるユーザーが必要です。権限がなければ管理者に依頼してください。- Create an API Token をクリックし、Read Only を選びます。Read Only トークンはすべてのデータを読み取れますが、お金を動かすことはできず、IP 許可リストも不要です。
- トークンを
MERCURY_API_TOKENにコピーします。形式はsecret-token:mercury_production_...です。secret-token:を含めた値全体を貼り付けてください。トークンは一度しか表示されません。 - コネクタをインストールし、
mercury_get_organizationで確認します。会社の正式名称とプランが表示されます。
Read and Write トークンは絶対に使わないでください: 承認なしで送金できてしまいます。Read Only トークンなら、Mercury はすべての書き込みを拒否します。
インストール時にオフ: mercury_freeze_card、mercury_unfreeze_card、mercury_update_transaction(取引のメモとカスタムカテゴリを設定または消去し、以前の値を上書きします)。これらには、対応する書き込み権限だけを持つ Custom トークンが必要で、Mercury は書き込み権限には必ず IP 許可リストを求めます。AnythingMCP Cloud では、事前にサポートへ現在の送信元 IP アドレスを問い合わせてください。AI はカード(ニックネームと下 4 桁)、または取引と変更内容を示し、あなたの承認を待ちます。Mercury は、書き込み権限を 45 日間使っていないトークンの権限を下げ、45 日間使われていないトークンを削除します。
財務データは機密です: 残高、取引、明細書、送金先、従業員の情報は会社の機密データです。MCP サーバーは閲覧を許された人とだけ共有してください。AI はあなたが尋ねたものだけを読み取ります。口座番号、ルーティング番号、IBAN、カード番号はすべての応答から取り除かれ、明細書と取引の添付ファイルはダウンロードリンクとして返されます。
読み取れるもの: 組織。利用可能残高と現在残高付きの当座預金口座と普通預金口座。口座ごとの取引(開始日を指定しなければ直近 30 日間)または全口座の取引。取引先、メモ、カテゴリ、加盟店、カード、領収書や小切手画像などの添付ファイル付き。支出上限付きのデビットカードとクレジットカード。PDF リンクとしての月次明細書。保存済みの送金先(銀行情報なし)。利回り、取引、明細書付きの Treasury 口座(税務書類を含む)。クレジット(IO カード)口座。ユーザーとロール。カスタム経費カテゴリ。承認状況付きの支払いリクエスト。
金額: ドル単位の小数で、出金はマイナスで表されます。
サンドボックス: https://sandbox.mercury.com/signup でサンドボックスを作成し、そこでトークンを発行して、コネクタのベース URL を https://api-sandbox.mercury.com/api/v1 に変更します。本番のトークンはサンドボックスでは使えません。
よくあるエラー: 401 noTokenInDB: トークンが間違っている、45 日間使われず削除された、または別の環境のものです。新しい Read Only トークンを作成してください。403: トークンの種類や権限でこの呼び出しが許可されていないか、トークンの許可リストにない IP アドレスから書き込みが行われました。404: その ID は存在しません。429: 少し待ってください。
このコネクタは、送金、支払いリクエスト、送金先、請求書、顧客の作成、カードの発行や解約、支出上限の変更、Webhook や SAFE の管理、添付ファイルのアップロードは行いません。
ステップ 2 — アダプターをインストール
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
ステップ 3 — Gemini にコネクタを追加
サーバーURL: AnythingMCP で MCP Servers を開き、このコネクタがあるサーバーを選んで URL(
https://cloud.anythingmcp.com/mcp/…)をコピーします。このガイドでYOUR_SERVER_IDと表示されている箇所に使ってください。
Gemini CLI は ~/.gemini/settings.json(Windows では %USERPROFILE%\.gemini\settings.json)から MCP サーバーを読み込みます。次を追加してください:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- AnythingMCP の MCP Servers → 対象のサーバー → API keys で MCP API キーを作成し、
YOUR_MCP_API_KEYと置き換えます。 - ファイルを保存し、
geminiを再起動します。 - Gemini CLI で
/mcpを実行します(またはシェルでgemini mcp list)。anythingmcpが接続済みとして表示されるはずです。 - プロンプトを入力しましょう。Gemini CLI が
Mercuryのツールを呼び出せるようになりました。
利用可能なツール
| Tool | What it does |
|---|---|
mercury_get_organization | Read your Mercury organization: id, legal business name, DBAs, EIN, kind (business or personal) and plan |
mercury_list_accounts | List the Mercury bank accounts (checking and savings) with id, name, nickname, kind, status, available and current balance |
mercury_get_account | Read one Mercury account by id: name, kind, status, available and current balance |
mercury_list_account_transactions | List the transactions of one Mercury account, newest first by default: amount, status, kind, created and posted dates, counterparty… |
mercury_list_transactions | List transactions across all Mercury accounts, oldest first by default: amount, status, kind, dates, counterparty, description, note… |
mercury_get_transaction | Read one Mercury transaction by id with amount, status, dates, counterparty, note, category, merchant, card, attachments (receipts, check… |
mercury_list_cards | List Mercury debit and credit cards with id, account, nickname, name on card, last four digits, status, virtual or physical, cardholder… |
mercury_get_card | Read one Mercury card by id: account, nickname, name on card, last four digits, status, type, kind, cardholder, spend limit, budgets and… |
mercury_list_account_cards | List the cards linked to one Mercury account: card id, name on card, last four digits, network, status, type, cardholder and spend limit |
mercury_list_account_statements | List the monthly statements of one Mercury account: statement id, period start and end, ending balance and a download link for the PDF |
mercury_list_recipients | List the payment recipients saved in Mercury with id, name, nickname, status, business flag, emails, default payment method (ach, check… |
mercury_get_recipient | Read one Mercury recipient by id: name, status, emails, default payment method, bank name and date last paid |
mercury_list_treasury_accounts | List Mercury Treasury accounts with id, status, available and current balance and the monthly net returns (dividends minus fees) |
mercury_list_treasury_transactions | List the transactions of one Mercury Treasury account: type (deposits, withdrawals, dividends, fees, interest), description, amount… |
mercury_list_treasury_statements | List the statements and tax documents of one Mercury Treasury account: id, document type (MonthlyStatement, TradeConfirmation, 1099 and… |
mercury_list_credit_accounts | List Mercury credit (IO card) accounts with id, status, available and current balance |
mercury_list_users | List the people with access to the Mercury organization: user id, first and last name, email and role (administrator, bookkeeper… |
mercury_list_categories | List the custom expense categories of the organization (id and name, and whether each applies to card spend, reimbursements or other… |
mercury_list_payment_approval_requests | List payment requests waiting for, or past, approval in Mercury: request id, account, recipient, amount, payment method, status… |
mercury_freeze_card | Freeze a Mercury card so it cannot be used, for example when it is lost |
mercury_unfreeze_card | Unfreeze a frozen Mercury card so it can be used again |
mercury_update_transaction | Set or clear the note and the custom category of a Mercury transaction |
プロンプトの例
- 「Mercury の全口座の現在の残高は?Treasury にはいくらある?」
- 「直近 30 日間で 5,000 USD を超える出金取引を、取引先、メモ、カテゴリ付きで一覧にして。」
- 「承認待ちの支払いリクエストは?申請者、送金先、金額、予定日を見せて。」
- 「当座預金口座の前四半期の明細書のダウンロードリンクをちょうだい。」
- 「Mercury の組織にアクセスできるのは誰で、それぞれどのロール?」
FAQ
Gemini CLI はどこから MCP サーバーを読み込みますか? ユーザー単位では ~/.gemini/settings.json、プロジェクト単位ではプロジェクト内の .gemini/settings.json です。gemini mcp list で各サーバーと接続状態を確認できます。
次のステップ
このガイドは役に立ちましたか?