
ski043/nextjs-financial-agent-mcp-arcade-dev
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
投資ポートフォリオを分析するインテリジェントな財務AIエージェント, リアルタイム市場データをフェッチ, 複数のチャネルを介してパーソナライズされたインサイトを提供します, すべてのアーケードによって供給.
概要
投資ポートフォリオを分析するインテリジェントな財務AIエージェント, リアルタイム市場データをフェッチ, 複数のチャネルを介してパーソナライズされたインサイトを提供します, すべてのアーケードによって供給. MCPMarshalは、データソーシング、永続的なメモリ、マルチチャネルのプレゼンテーションの懸念を分離し、製造準備済みのAIエージェントを作成する方法を示しています。 アプリケーションは、Gmail、Notion、およびGoogle Docsの統合のためのアーケードのシームレスな OAuth 処理をショーケースします。 - : 保持、購入価格、および量で複数の投資ポートフォリオを管理 - : カスタムMCPサーバーは、ライブストック価格、会社の基礎、および市場ニュースを収集します - : LLMは、あなたの保有物を自律的に調査し、データが取得し、注意を集中する方法を決定します - : レポートをGmail、Notion、またはGoogle Docsをワンクリックで公開 OAuth - : ウィークリーcronジョブは自動的に生成および電子メールポートフォリオを生成します - : 質問とAIは、AIは、それがデータが自動的に取得するために必要なツールを監視します アーケードは...
概要(AI 翻訳)
投資ポートフォリオを分析するインテリジェントな財務AIエージェント, リアルタイム市場データをフェッチ, 複数のチャネルを介してパーソナライズされたインサイトを提供します, すべてのアーケードによって供給.
概要
MCPMarshal は、データソーシング、永続記憶、マルチチャネルプレゼンテーションの懸念を分離する ** 層層アーキテクチャを使用して、生産準備の AI エージェントを作成する方法を示しています。 アプリケーションは、Gmail、Notion、およびGoogle Docsの統合のためのアーケードのシームレスな OAuth 処理をショーケースします。
何が起こるか
- あなたのポートフォリオを追跡: 保有、購入価格、数量で複数の投資ポートフォリオを管理する -Fetchesリアルタイムデータ:カスタムMCPサーバーは、ライブストック価格、会社の基礎、および市場ニュースを取得します -アジェニティブレポート生成:LMは、あなたの保有物を自律的に研究し、フェッチにどのようなデータを決定し、注目に集中する -Delivers Anywhere:OAuthをワンクリックでGmail、Notion、またはGoogle Docsにレポートを公開する
- 組み立てられたオートメーション: 週刊 cron ジョブが自動的に生成され、ポートフォリオレポートがメール化されます
- アジェンティックチャット:質問をし、AIが必要とするデータを取得するためのツールを自律的に呼び出します
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MCPMarshal - Financial AI Agent
An intelligent financial AI agent that analyzes your investment portfolio, fetches real-time market data, and delivers personalized insights through multiple channels, all powered by Arcade.
Overview
MCPMarshal demonstrates how to build a production-ready AI agent using a three-layer architecture that separates concerns between data sourcing, persistent memory, and multi-channel presentation. The application showcases Arcade’s seamless OAuth handling for Gmail, Notion, and Google Docs integration.
What It Does
- Tracks Your Portfolio: Manage multiple investment portfolios with holdings, purchase prices, and quantities
- Fetches Real-Time Data: Custom MCP server retrieves live stock prices, company fundamentals, and market news
- Agentic Report Generation: LLM autonomously researches your holdings, deciding what data to fetch and where to focus attention
- Delivers Anywhere: Publish reports to Gmail, Notion, or Google Docs with one-click OAuth
- Scheduled Automation: Weekly cron jobs automatically generate and email portfolio reports
- Agentic Chat: Ask questions and watch the AI autonomously call tools to fetch the data it needs
Architecture
Layer Breakdown
| Layer | Purpose | Technology |
|---|---|---|
| Data Source | Fetches real-time financial data | Custom MCP Server (Python + arcade-mcp) |
| Memory | Persists portfolios, reports, and chat history | PostgreSQL with Prisma ORM |
| Presentation | Delivers insights through multiple channels | Next.js Dashboard, Gmail, Notion, Google Docs |
Arcade Integration
Arcade is the backbone that enables seamless multi-channel publishing without the complexity of managing OAuth flows manually.
How Arcade Powers This Application
1. Tool Execution via Arcade SDK
import Arcade from "@arcadeai/arcadejs";
const arcadeClient = new Arcade({ apiKey: process.env.ARCADE_API_KEY });
// Execute any tool with automatic auth handling
const response = await arcadeClient.tools.execute({
tool_name: "Gmail.SendEmail",
input: {
subject: "Weekly Portfolio Report",
body: reportHtml,
recipient: userEmail,
content_type: "html",
},
user_id: userId,
});
2. OAuth Authorization Flow
// Check if user has authorized Gmail
const authResponse = await arcadeClient.tools.authorize({
tool_name: "Gmail.SendEmail",
user_id: userId,
});
if (authResponse.status === "pending") {
// Redirect user to Arcade's OAuth consent screen
return { authorizationUrl: authResponse.authorization_url };
}
// User is authorized, proceed with tool execution
3. Supported Integrations
| Tool | Arcade Tool Name | Use Case |
|---|---|---|
| Gmail | Gmail.SendEmail |
Send portfolio reports via email |
インストール
npx prisma db push