Provides tools for interacting with the Zaim API to manage household account book data, allowing for the retrieval, creation, updating, and deletion of financial records, as well as access to user master data for categories, genres, and accounts.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Zaim API MCP ServerRecord a 1,200 yen lunch today under the food category"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Zaim API MCP Server
Zaim APIとの連携を可能にするMCP (Model Context Protocol) サーバーです。OAuth 1.0a認証を使用してZaimの家計簿データの取得・操作を行います。
特徴
Zaim API(OAuth 1.0a)との完全な統合
14個の包括的なツールセット
家計簿データの取得・作成・更新・削除
マスターデータ(カテゴリ、ジャンル、口座、通貨)の取得
TypeScriptベースの型安全な実装
Zodスキーマによる厳密なバリデーション
包括的なテストカバレッジ(128テスト)
Dockerサポート
実装済みツール
認証・ユーザー情報
zaim_check_auth_status- 認証状態の確認zaim_get_user_info- ユーザー情報の取得
家計簿データ操作
zaim_get_money_records- 家計簿記録の取得(フィルタリング・ページネーション対応)zaim_create_payment- 支出記録の作成zaim_create_income- 収入記録の作成zaim_create_transfer- 振替記録の作成zaim_update_money_record- 既存記録の更新zaim_delete_money_record- 記録の削除
マスターデータ取得
zaim_get_user_categories- ユーザーカテゴリ一覧zaim_get_user_genres- ユーザージャンル一覧zaim_get_user_accounts- ユーザー口座一覧zaim_get_default_categories- デフォルトカテゴリ一覧zaim_get_default_genres- デフォルトジャンル一覧zaim_get_currencies- 利用可能通貨一覧
要件
Docker(推奨)
Node.js 22+(ローカル開発時)
Zaim APIのOAuth認証情報
Consumer Key
Consumer Secret
Access Token
Access Token Secret
環境変数設定
インストール
Dockerを使用(推奨)
ローカル開発
Claude Desktop設定
1. 設定ファイルの場所
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
2. Docker設定(推奨)
3. ローカルビルド設定
使用例
認証状態の確認
家計簿データの取得
支出の記録
カテゴリ一覧の取得
API設定
config/zaim-config.jsonで詳細な設定が可能です:
APIタイムアウト設定
レート制限設定
キャッシュ設定
ログレベル設定
プロジェクト構造
開発ガイド
Git ワークフロー
機能ごとにブランチを作成
TDD(テスト駆動開発)で実装
すべてのテストが通ることを確認
プルリクエストを作成
コミットメッセージ規約
利用可能なスクリプト
トラブルシューティング
認証エラー
環境変数が正しく設定されているか確認
Zaim開発者サイトでアプリケーションの設定を確認
アクセストークンの有効期限を確認
Docker関連
Dockerデーモンが起動しているか確認
環境変数が正しく渡されているか確認
ログで詳細なエラーメッセージを確認
貢献
リポジトリをフォーク
フィーチャーブランチを作成 (
git checkout -b feat/amazing-feature)変更をコミット (
git commit -m 'feat: 素晴らしい機能を追加')ブランチをプッシュ (
git push origin feat/amazing-feature)プルリクエストを作成
ライセンス
MITライセンス - 詳細はLICENSEファイルを参照してください。