ynab-mcp

ynab-mcp

A read-only MCP server for YNAB budgeting data, enabling daily/weekly/monthly expense reviews and planning support via Claude Desktop or Claude Code.

Category
Visit Server

README

ynab-mcp

YNAB(You Need A Budget)の家計データをRead-onlyで読み取る個人用MCPサーバー。Claude Desktop / Claude CodeからDaily/Weekly/Monthlyの支出振り返り・計画支援に使う。

書き込み機能は一切なし。詳細な要件・設計は docs/requirements.ja.md / docs/design.ja.md を参照(日本語版が正)。

セットアップ

uv sync

YNABのPersonal Access Token(YNAB設定画面で発行)をシェルの環境変数にexportする。リポジトリには一切書き込まない。

# ~/.zshrc 等に追記
export YNAB_API_TOKEN="your-personal-access-token"

任意の追加設定(省略可):

環境変数 用途 既定値
YNAB_DEFAULT_BUDGET_ID Budgetが複数ある場合の既定budget_id なし(単一Budgetなら自動解決)
YNAB_MCP_CACHE_TTL プロセス内キャッシュのTTL(秒) 300
YNAB_MCP_WEEK_START 週の開始曜日(0=月曜) 0

動作確認

uv run ruff check .
uv run pytest
uv run python -c "from ynab_mcp.server import mcp"   # importスモークテスト

Claude Codeへの登録

このリポジトリの .mcp.json にプロジェクトスコープで登録済み。ynab_mcp ディレクトリで作業する際、Claude Codeが自動的にサーバーを認識する(初回は承認プロンプトが出る)。

Claude Desktopへの登録

Claude Desktopの設定ファイル(~/Library/Application Support/Claude/claude_desktop_config.json)の mcpServers に以下を追加する。

{
  "mcpServers": {
    "ynab": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/ynab_mcp", "ynab-mcp"],
      "env": { "YNAB_API_TOKEN": "${YNAB_API_TOKEN}" }
    }
  }
}

提供するTool

  • list_budgets — Budget一覧
  • get_categories(budget_id?) — カテゴリと当月のbudgeted/activity/balance
  • list_transactions(budget_id?, since_date?, until_date?, category_id?, type?) — 取引明細
  • get_period_summary(period, budget_id?, date?) — 期間別の支出実績+月次予算からの按分ペース(参考値)

提供するPrompt

  • daily_review / weekly_review / monthly_review — 定型の振り返りプロンプト

License

Apache License 2.0. 詳細は LICENSE を参照。

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured