Expense Tracker MCP Server
Expense Tracker MCP Server
FastMCP (v3.x) と Python で構築された Model Context Protocol (MCP) サーバーで、Claude Desktop や MCP Inspector などの MCP 準拠クライアントに、経費記録用のツールとリソースを提供するように設計されています。
前提条件
Python: 3.10+ (Python 3.14 でテスト済み)
uv: 高速な Python パッケージインストーラー兼リゾルバー (astral.sh/uv)
Node.js:
v22.xまたはv24.x(LTS) — MCP Inspector UI に必要Claude Desktop (任意): Claude 内でツールを直接テストするため
Related MCP server: Demo MCP Server
セットアップとインストール
1. プロジェクトと環境を初期化する
# Initialize uv project (if starting fresh)
uv init .
# Install FastMCP
uv add fastmcp2. MCP Inspector UI 用の Node.js を準備する
MCP Inspector (@modelcontextprotocol/inspector) には Node.js v22.19.0+ または v24+ が必要です。nvm-windows を使用している場合:
nvm install lts
nvm use 24インスペクターをグローバルにインストールするか、npx にフェッチさせます:
npm install -g @modelcontextprotocol/inspector🛠 実行と開発
オプション A: インタラクティブな Web UI (MCP Inspector)
ホットリロード 付きで MCP Inspector の Web UI を起動するには:
uv run fastmcp dev inspector main.pyこのターミナルウィンドウは開いたままにしてください。
コンソールに、認証トークン付きのローカル URL が表示されます:
MCP Inspector Web is up and running at: http://127.0.0.1:6274?MCP_INSPECTOR_API_TOKEN=<token>ブラウザでそのリンクを開くと、ツールのテスト、スキーマの確認、リクエスト/レスポンスログのリアルタイム表示ができます。
オプション B: サーバーを直接実行する (STDIO)
標準 I/O モードで MCP サーバーを実行するには:
uv run fastmcp run main.py(または uv run python main.py)
🤖 Claude Desktop への接続
1. 設定ファイルの場所
Windows では、Claude Desktop の設定は次の場所に保存されています:
%APPDATA%\Claude\claude_desktop_config.json(完全なパス: C:\Users\<YourUsername>\AppData\Roaming\Claude\claude_desktop_config.json)
2. 設定内容
mcpServers の下に expense-server の定義を追加します。
注: Windows では、Claude Desktop のような GUI アプリケーションは、シェルの
PATHを引き継がないことが多いため、常にuv.exeの絶対パスを指定してください。
{
"mcpServers": {
"expense-server": {
"command": "C:\\Users\\hp\\AppData\\Local\\Python\\pythoncore-3.14-64\\Scripts\\uv.exe",
"args": [
"run",
"--directory",
"g:\\Projects\\expense-tracker-mcp-server",
"fastmcp",
"run",
"main.py"
]
}
}
}3. Claude Desktop を再起動する
Claude Desktop を完全終了します (時計の近くの Windows システムトレイから終了されることを確認してください)。
Claude Desktop を開き直します。
Settings > Developer で、
expense-serverが接続されていることを確認します。
🧰 利用可能なツール (現在の main.py)
ツール | パラメータ | 説明 |
|
|
|
|
| 2 つの数値を加算し、その合計を返します。 |
トラブルシューティング
1. Unknown command "main.py". Available commands: inspector, apps.
FastMCP 3.x では、fastmcp dev はコマンドグループです。fastmcp dev main.py の代わりに fastmcp dev inspector main.py を使用してください。
2. node:util does not provide an export named 'styleText'
Node.js が v20.12 より古いです。nvm install lts && nvm use 24 で Node v22+ または v24+ に更新してください。
3. Cannot find native binding (npm optional dependencies bug)
Node のバージョン切り替えによる npx キャッシュの破損です。次を実行してください:
npm cache clean --force
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache\_npx" -ErrorAction SilentlyContinue
npm install -g @modelcontextprotocol/inspectorMaintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA basic educational MCP server that provides simple tools for mathematical calculations, text manipulation, and time retrieval. Designed for learning MCP implementation patterns and development purposes.
- FlicenseBqualityDmaintenanceA simple demonstration MCP server that provides basic utility tools including dice rolling and number addition functionality. This server serves as a tutorial example for setting up both local and remote MCP servers using FastMCP.3
- AlicenseAqualityDmaintenanceProvides comprehensive TRPG dice rolling functionality including standard notation, advantage/disadvantage mechanics, and success-counting dice pools. It enables users to perform complex dice logic and track roll history through an MCP-compliant interface.2MIT
- FlicenseNot gradedqualityCmaintenanceProvides tools for calculating math expressions and querying weather, demonstrating how to build an MCP server using FastMCP or raw SDK.
Related MCP Connectors
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
Educational MCP server with 17 math/stats tools, visualizations, and persistent workspace
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yash-201/expense-tracker-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server