概要
財政データMCPサーバーは、米国財務省の財政データAPIに接続するMCPサーバーの実用的な実装を実証します。以下の機能を紹介します。
特定の財務諸表を取得するためのツール
履歴データへのアクセスリソース
フォーマットされたレポートを生成するためのプロンプト
Related MCP server: MCP Etherscan Server
クイックスタート
1. Claude Desktopをインストールして使用する
この構成を Claude Desktop 構成ファイルに追加します。
MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json Windows : %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"fiscal-data": {
"command": "npx",
"args": ["fiscal-data-mcp"]
}
}
}
2. やり取りの例
設定が完了すると、Claude を通じてサーバーと対話できるようになります。
Human: Can you get the treasury statement for the 20th of September 2023?
特徴
1. 日次財務諸表
get_daily_treasury_statementツールを使用して、特定の日付の財務データを取得します。
// Example usage through Claude
Human: Get the treasury statement for 2024-03-01
Assistant: I'll fetch that information for you using the treasury statement tool.
2. 履歴データリソース
リソース システムを通じて 30 日間の過去の財務データにアクセスします。
1時間自動的にキャッシュされます
オンデマンドアップデート
フォーマットされたJSONデータを提供する
3. レポート生成
daily_treasury_reportプロンプトを使用してフォーマットされた財務レポートを生成します。
// Example usage through Claude
Human: Generate a treasury report for 2024-03-01
Assistant: I'll use the daily treasury report prompt to create a formatted report...