
quantgeekdev/fiscal-data-mcp
API developmentこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
mcp サーバーは、mcp-framework で構築された、弊社独自のデータに接続しています
概要
財務データMCP Server は、米国財務データ API に接続する MCP サーバーの実用的な実装を実証しています。 ショーケース: - 特定の財務諸表の獲得のためのツール - 歴史的データアクセスのためのリソース - フォーマットされたレポートを生成するためのプロンプト この設定をClaudeデスクトップ設定ファイルに追加します。 : ~/Library/Application Support/Claude/claude desktop config.json : %APPDATA%/Claude/claude desktop config.json 設定したら、Claude でサーバーとやり取りできます。 get daily treasury statement ツールを使用して特定の日付の treasury データをフェッチします。 リソースシステムを介して、30日間の歴史ある財務データにアクセス: - 1時間自動キャッシュ - オンデマンドの更新 - JSONデータのフォーマットを提供
概要(AI 翻訳)
概要
財務データMCP Server は、米国財務データ API に接続する MCP サーバーの実用的な実装を実証しています。 ショーケース:
- 特定の財務諸表の獲得のためのツール
- 歴史的データアクセスのためのリソース
- フォーマットされたレポートを生成するためのプロンプト
クイックスタート
##1. Claudeデスクトップでインストールして使用
この設定をClaudeデスクトップ設定ファイルに追加します。
MacOS: [~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
##2.例の相互作用
設定したら、Claude でサーバーとやり取りできます。
##特徴
##1. 毎日の財務諸表
get_daily_treasury_statement ツールを使用して特定の日付の遅延データを取得します。
##2. 歴史的データ資源
リソースシステムを介して、30日間の歴史ある財務データにアクセス:
- 1時間自動キャッシュ
- 需要の更新
- フォーマットされたJSONデータを提供
##3. レポート生成
[daily_treasury_report] プロンプトを使用してフォーマットされた財務レポートを生成する:
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
Overview
The Fiscal Data MCP Server demonstrates a practical implementation of an MCP server that connects to the US Treasury’s Fiscal Data API. It showcases:
- Tools for fetching specific treasury statements
- Resources for historical data access
- Prompts for generating formatted reports
Quick Start
1. Install and Use with Claude Desktop
Add this configuration to your Claude Desktop config file:
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. Example Interactions
Once configured, you can interact with the server through Claude:
Human: Can you get the treasury statement for the 20th of September 2023?
Features
1. Daily Treasury Statements
Fetch treasury data for specific dates using the get_daily_treasury_statement tool:
// 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. Historical Data Resource
Access 30 days of historical treasury data through the resource system:
- Automatically cached for 1 hour
- Updates on demand
- Provides formatted JSON data
3. Report Generation
Generate formatted treasury reports using the daily_treasury_report prompt:
// 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...
インストール
npx fiscal-data-mcp設定
{
"mcpServers": {
"fiscal-data": {
"command": "npx",
"args": ["fiscal-data-mcp"]
}
}
}