monzo-mcp
monzo-mcp
Monzo 뱅킹 API용 MCP 서버입니다. 계정, 잔액, 포트, 거래 내역, 지출 분석에 대한 읽기 전용 접근을 제공하며, Claude Code 또는 모든 MCP 클라이언트를 통해 사용할 수 있습니다.
6시간 만에 만료되는 원시 bearer 토큰을 사용하는 다른 Monzo MCP 구현과 달리, 이 서버는 자동 토큰 갱신을 포함한 전체 OAuth를 처리합니다.
기능
읽기 전용 도구 7개 - 쓰기 작업 없음, 자금 이동 없음
자동 갱신 OAuth - 토큰이 자동으로 갱신되며 수동 재생성이 필요 없음
로컬 거래 캐시 - SQLite 데이터베이스가 Monzo의 90일 SCA 기간을 넘어 데이터를 보존
요청 시 자동 동기화 - 캐시 읽기 도구가 오늘 동기화되지 않은 경우 증분 동기화를 자동으로 실행하므로
monzo_sync를 직접 호출할 일이 거의 없습니다지출 분석 - 카테고리별 분류, 주요 가맹점, 월간 비교
거래 검색 - 캐시된 내역에서 가맹점, 수취인(거래 상대방), 설명 또는 메모로 검색
거래 상대방 세부 정보 - 은행 송금(faster payments, p2p, Bacs)이 수취인 이름, sort code, 계좌 번호와 함께 캐시됩니다
Related MCP server: monzo-mcp
도구
도구 | 설명 | 데이터 소스 |
| 유형 및 ID와 함께 계정 나열 | 실시간 API |
| 현재 잔액 및 오늘 지출 표시 | 실시간 API |
| 저축 포트 및 잔액 나열 | 실시간 API |
| 거래를 로컬 캐시에 동기화 | 실시간 API -> SQLite |
| 캐시된 거래 나열/필터링 | 로컬 캐시(오래된 경우 자동 동기화) |
| 가맹점/수취인/설명/메모로 검색 | 로컬 캐시(오래된 경우 자동 동기화) |
| 카테고리별 분류가 포함된 지출 분석 | 로컬 캐시(오래된 경우 자동 동기화) |
사전 요구 사항
Python 3.13+
uv(권장) 또는 pip
developers.monzo.com에 OAuth 클라이언트를 등록한 Monzo 계정
설치
git clone https://github.com/partymola/monzo-mcp.git
cd monzo-mcp
uv venv --python 3.13 .venv
uv pip install -e .이 패키지는 PyPI에 없습니다. 해당 이름은 관련 없는 프로젝트가 사용 중입니다. 대신 컨테이너 이미지가 게시되며, Docker를 참조하세요.
설정
1. Monzo OAuth 클라이언트 등록
developers.monzo.com으로 이동하여 OAuth 클라이언트를 생성합니다:
리디렉트 URL을
http://localhost:6600/callback으로 설정Client ID와 Client Secret을 기록해 둡니다
2. 인증
monzo-mcp authMonzo OAuth를 위해 브라우저가 열립니다. 인증 후 5분 이내에 Monzo 앱에서 로그인을 승인하면 전체 거래 내역에 접근할 수 있습니다(Monzo SCA 기간).
3. Claude Code에 등록
claude mcp add -s user monzo -- /path/to/monzo-mcp/.venv/bin/monzo-mcpWindows에서는 콘솔 스크립트가 .venv\Scripts\monzo-mcp.exe에 있습니다.
4. 첫 동기화
Claude Code에서 monzo_sync를 실행하여 로컬 거래 캐시를 채웁니다. SCA 기간(최대 11개월 내역)을 활용하려면 인증 직후에 실행하세요.
Docker
이미지는 ghcr.io/partymola/monzo-mcp에 게시됩니다. 태그는 v 접두사를 사용합니다(:vX.Y.Z), :latest는 가장 최근 릴리스를 가리킵니다.
컨테이너에는 볼륨이 필요합니다. 자격 증명과 거래 캐시는 /data에 저장됩니다. 아무것도 마운트하지 않으면 컨테이너는 시작되지만 모든 도구가 '구성되지 않음'을 보고하며, 인증한 내용은 컨테이너가 교체되는 즉시 손실됩니다.
먼저 설정 1단계에 설명된 대로 OAuth 클라이언트를 등록하세요. auth가 Client ID와 secret을 입력받으며, 나중에 제공할 방법이 없습니다. 리디렉트 URL은 소스 설치와 동일한 http://localhost:6600/callback입니다.
명명된 볼륨에 한 번 인증합니다. 실행 전에 대신 바인드 마운트를 사용할지 결정하세요. 나중에 전환하면 다시 인증해야 합니다:
docker volume create monzo-mcp-data
docker run --rm -it \
-v monzo-mcp-data:/data \
-p 127.0.0.1:6600:6600 \
ghcr.io/partymola/monzo-mcp:latest auth게시된 포트는 OAuth 리디렉트가 컨테이너에 도달할 수 있도록 이 단계에서만 필요합니다. 127.0.0.1에 바인딩하면 콜백 리스너가 네트워크에 노출되지 않습니다. 브라우저는 열리지 않습니다 - 컨테이너에는 브라우저가 없으므로 - 출력된 URL을 복사하세요. 그런 다음 5분 이내에 Monzo 앱에서 로그인을 승인하세요(Monzo SCA 기간 참조).
그런 다음 동일한 볼륨을 재사용하여 서버를 등록합니다:
claude mcp add -s user monzo -- \
docker run --rm -i -v monzo-mcp-data:/data ghcr.io/partymola/monzo-mcp:latest-i는 필수입니다 - 서버는 stdin과 stdout을 통해 JSON-RPC로 통신합니다.
즉시 동기화하세요. 11개월 백필은 Monzo 앱에서 승인한 후 5분이 지나면 닫히며(Monzo SCA 기간 참조), 이 방식은 소스 설치보다 더 오래 걸리므로 서버가 등록되는 즉시 monzo_sync를 호출하세요. 이 시점을 놓치면 오류 없이 조용히 90일만 받게 됩니다.
파일을 직접 읽을 수 있는 위치에 보관하려면 명명된 볼륨 대신 바인드 마운트를 사용하세요. 컨테이너는 root로 실행되며 자격 증명을 소유자 전용으로 기록하므로 --user를 사용하지 않으면 root 소유가 됩니다:
mkdir -p ~/monzo-mcp-data/config
docker run --rm -it \
-v ~/monzo-mcp-data:/data \
--user $(id -u):$(id -g) \
-p 127.0.0.1:6600:6600 \
ghcr.io/partymola/monzo-mcp:latest auth서버 명령에도 동일한 -v와 --user를 전달하세요. 디렉터리를 먼저 생성하세요. 명명된 볼륨에 --user를 사용하면 실패하는데, 볼륨이 이미지에서 root 소유로 초기화되기 때문입니다.
CLI
monzo-mcp Start the MCP server (stdio transport)
monzo-mcp auth Interactive OAuth setup (opens the browser)
monzo-mcp --version Print the installed package version구성
모든 설정은 환경 변수를 통해 이루어집니다(선택 사항):
변수 | 기본값 | 설명 |
|
| OAuth 자격 증명 및 토큰용 디렉터리 |
|
| SQLite 거래 캐시 경로 |
|
|
|
컨테이너 이미지는 처음 두 값을 /data 아래로 설정합니다. 패키지 상대 기본값이 인터프리터의 lib 디렉터리로 해석되는데, 이는 마운트할 수 없기 때문입니다. 세 번째 값은 0.0.0.0으로 설정합니다. 게시된 포트는 컨테이너의 브리지 인터페이스를 통해 도착하며 localhost 바인딩은 이를 거부하기 때문입니다.
자격 증명 파일(monzo-mcp auth가 생성):
config/monzo_client.json- OAuth 클라이언트 ID 및 secretconfig/monzo_tokens.json- 액세스 및 리프레시 토큰(자동 갱신됨)
Monzo SCA 기간
Monzo의 강력한 고객 인증(SCA)은 거래 내역 접근을 제한합니다:
앱 승인 후 5분 이내: 최대 약 11개월의 내역
기간 만료 후: 최근 90일만
로컬 SQLite 캐시는 동기화된 모든 거래를 영구적으로 보존하므로 monzo-mcp auth 직후에 monzo_sync를 실행하세요.
특정 범위를 백필하려면 monzo_sync에 since를 전달하세요 - ISO 날짜(2026-01-01) 또는 날짜시간(2026-01-01T14:30:00Z)입니다. 약 90일 이상 거슬러 올라가는 것은 SCA 기간 내에서만 작동하며, 기간 밖에서는 최근 90일만 반환됩니다.
오래된 캐시 거래는 다시 가져올 때만 새 버전에서 추가된 필드(예: 은행 송금의 거래 상대방/수취인 세부 정보)를 얻습니다. 인증 후 전체 동기화는 다시 가져오는 내역에 대해 이 작업을 수행합니다.
보안
쓰기 도구 0개 - 자금을 보내거나, 포트 간 자금을 이동하거나, 거래를 수정할 수 없음
Monzo API 자체도 외부 계좌로 자금을 보낼 수 없음
토큰은
config/디렉터리에 JSON 파일로 저장됩니다(gitignore 처리됨)모든 API 호출은 Bearer 토큰 인증을 사용하는 GET 요청입니다
문제 해결
"SCA required" 오류 또는 90일치 내역만 표시되는 경우 -
monzo-mcp auth를 다시 실행하고 5분 이내에 Monzo 앱에서 로그인을 승인한 후 즉시 동기화하세요(위의 SCA 기간 참조).토큰 만료 / 갱신 안 됨 -
monzo-mcp auth를 다시 실행하여 재인증하세요."No transaction data available" 오류 - 캐시가 비어 있습니다. 인증 후
monzo_sync(또는 자동 동기화되는 캐시 읽기 도구)를 한 번 호출하세요.Docker에서 모든 도구가 "not configured"를 보고하거나 재시작 후 인증이 유지되지 않는 경우 -
/data에 마운트된 것이 없습니다. Docker를 참조하세요. 동일한 볼륨을auth실행과 서버 모두에 전달해야 합니다.승인 후
auth가 "Waiting for callback..."에 머무는 경우 - 콜백이 전달되지 않았습니다. Ctrl-C를 누르고 다시 실행하세요. Docker에서는 포트가 게시되었는지 확인하세요(-p 127.0.0.1:6600:6600).
기여
개발 설정, 테스트 워크플로, pre-commit 훅은 CONTRIBUTING.md를 참조하세요. 변경 사항은 CHANGELOG.md에 기록됩니다.
라이선스
GPL-3.0-or-later. LICENSE를 참조하세요.
Available Tools
7 toolsmonzo_get_balanceA
Get current balance for a Monzo account.
Args: account_type: "personal" or "joint" (default: "personal")
Returns balance, spend today, and currency. Also records a balance snapshot.
Inputs: account_type.
monzo_list_accountsA
List all Monzo accounts with their types and IDs.
Returns account details including whether each is personal or joint, and whether it is open or closed. Any other kind of account keeps Monzo's own type name (e.g. "uk_rewards") and is not synced.
Inputs: no named parameters.
monzo_list_potsA
List all pots (savings buckets) for a Monzo account.
Args: account_type: "personal" or "joint" (default: "personal")
Returns the account the pots belong to, plus pot names and balances. Also records balance snapshots.
Inputs: account_type.
monzo_list_transactionsA
List transactions from the local cache.
Auto-syncs if the cache is stale (last sync before today).
Queries the synced transaction database, not the live API. Bank transfers
(faster payments, p2p, bacs) include a counterparty object with the payee
name and, where the scheme provides them, sort code and account number.
Returns {"account_type": ..., "transactions": [...]}, where account_type
echoes the filter applied and is null when unfiltered.
Args: account_type: "personal" or "joint" (default: all) since: Start date, e.g. "2026-01-01" (inclusive) before: End date, e.g. "2026-02-01" (exclusive) category: Exact category match, e.g. "groceries", "eating_out", "transport" merchant: Merchant name search (case-insensitive, partial match) limit: Max results (default 50)
Inputs: limit, since, before, category, +2 more.
monzo_search_transactionsA
Search cached transactions by merchant, counterparty (payee), description, or notes.
Auto-syncs if the cache is stale (last sync before today).
Case-insensitive partial match across merchant_name, counterparty_name, description, and notes fields. Counterparty matching finds bank transfers (faster payments, p2p, bacs) by payee name.
Returns {"account_type": ..., "transactions": [...]}, where account_type
echoes the filter applied and is null when unfiltered.
Args: query: Search term account_type: "personal" or "joint" (default: all) since: Start date, e.g. "2026-01-01" (inclusive) before: End date, e.g. "2026-02-01" (exclusive) limit: Max results (default 30)
Inputs: query (required), limit, since, before, +1 more.
monzo_spendingA
Analyse spending from cached Monzo transactions.
Auto-syncs if the cache is stale (last sync before today).
Every result carries account_type, echoing the filter applied and null
when unfiltered, so a zero total says which account it measured.
Args: month: Month in YYYY-MM format (default: current month) category: Filter by category, e.g. "groceries", "eating_out", "transport" account_type: "personal" or "joint" (default: all) detail: If true, return individual transactions instead of category summary
Inputs: month, detail, category, account_type.
monzo_syncA
Sync transactions, balances, and pots from the Monzo API into the local cache.
Fetches up to 11 months of history (within SCA window) or falls back to the last-synced timestamp / 90 days. Handles pagination and auth-hold deduplication automatically. Declined card attempts are not stored. Only current and joint accounts are synced; any other is listed as skipped.
Args: account_type: "personal", "joint", or None to sync both since: Optional ISO date ("2026-01-01") or datetime ("2026-01-01T14:30:00Z") to start the backfill from, overriding last-sync resumption. Reaching beyond ~90 days only works inside the post-auth SCA window.
Inputs: since, account_type.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target clearly distinct resources/actions (accounts, balance, pots, sync, spending analysis). The main overlap is between monzo_list_transactions and monzo_search_transactions, since list_transactions also accepts a merchant filter, but the search tool's broader field coverage (counterparty, description, notes) and different default limit provide some separation.
All names use a consistent monzo_ prefix and snake_case. Most follow verb_noun (list_accounts, get_balance, list_pots, list_transactions, search_transactions), with minor deviations for the bare verbs/nouns monzo_sync and monzo_spending.
Seven tools is well-scoped for a read-only personal banking integration. Each tool covers a distinct area (accounts, balance, pots, sync, transaction listing, search, spending analysis) without obvious redundancy.
The surface covers the core read-only lifecycle: account discovery, balances, pots, transaction retrieval/search, sync, and spending analysis. Minor gaps remain, such as fetching a single transaction's full detail or editing transaction notes/tags, but agents can work around these using the listing and search tools.
Maintenance
Related MCP Connectors
Read-only access to your own UK bank data: spending, subscriptions, payday plan, net worth.
Read-only cash flow, spending, subscriptions and transaction search from your US and Canadian banks.
Read-only bank & investment accounts via Plaid: balances, holdings, transactions, SQL analytics.
Read-only access to your bank, investment, and crypto accounts: balances, transactions, holdings.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides an MCP server for querying and managing Monarch Money personal finance data through a local SQLite mirror with read-only SQL access. It enables users to sync transaction history from the Monarch API and analyze accounts, categories, and tags.1MIT
- AlicenseNot gradedqualityDmaintenanceRead-only Monzo banking integration for Claude Code that allows querying balances, transactions, pots, and spending analysis through natural conversation.69 PyPI5MIT
- AlicenseNot gradedqualityDmaintenanceEnables local read-only exploration of Quicken Simplifi financial data through MCP, with tools for searching transactions, categories, tags, and merchants, using a local SQLite cache and token-based authentication.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables read-only access to Monarch Money financial data, including accounts, transactions, cash flow, spending, and income, via MCP, with secure local credential storage.1MIT