Banking Model Context Protocol Server
MCP統合による銀行チャットボット
Azure OpenAI と Model Context Protocol (MCP) を使用して安全かつ効率的なメッセージ処理を実現する、洗練された銀行チャットボット アプリケーションです。
特徴
AI 搭載の銀行アシスタント: Azure OpenAI を使用して銀行の問い合わせにインテリジェントな応答を提供します
モデルコンテキストプロトコル(MCP) :安全なメッセージ通信プロトコルを実装します
リアルタイムチャットインターフェース: シームレスなユーザーインタラクションを実現するモダンでレスポンシブなUI
包括的なログ記録: 監視とデバッグのための詳細なログ記録システム
銀行情報統合:銀行の詳細とサービスの動的な表示
Markdown サポート: 回答のリッチテキスト形式
Related MCP server: agent-messaging
プロジェクト構造
.
├── app.py # Main Flask application
├── mcp_server.py # MCP server implementation
├── mcp_client.py # MCP client implementation
├── requirements.txt # Python dependencies
├── .env # Environment variables
├── templates/ # HTML templates
│ └── index.html # Chat interface
└── logs/ # Log files
├── client_messages.log
├── mcp_client.log
└── mcp_server.log前提条件
Python 3.8以上
Azure OpenAI API アクセス
必要な Python パッケージ (requirements.txt を参照)
インストール
リポジトリをクローンします。
git clone <repository-url> cd banking-chatbot仮想環境を作成してアクティブ化します。
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate依存関係をインストールします:
pip install -r requirements.txt資格情報を使用して
.envファイルを作成します。ENDPOINT_URL=your_azure_endpoint AZURE_OPENAI_API_KEY=your_api_key DEPLOYMENT_NAME=your_deployment_name
使用法
MCP サーバーを起動します。
python mcp_server.py新しいターミナルで、Flask アプリケーションを起動します。
python app.pyhttp://localhost:5000でチャットボットインターフェースにアクセスします。
MCPプロトコル
モデルコンテキストプロトコル(MCP)は、チャットボットとサーバー間のメッセージ通信を処理するために実装されています。MCPは以下の機能を提供します。
安全なメッセージ送信
メッセージキューイングと信頼性
詳細なログ記録
リアルタイムメッセージ処理
メッセージの種類
チャットメッセージ: ユーザーの質問とAIの応答
システムメッセージ: 管理および制御メッセージ
ログ記録
アプリケーションはlogsディレクトリに詳細なログを保持します。
client_messages.log: チャットメッセージの履歴mcp_client.log: クライアントの接続と操作のログmcp_server.log: サーバー操作ログ
銀行情報
チャットボットには、次のような包括的な銀行情報が設定されています。
営業時間
支店所在地
利用可能なサービス
連絡先
サポートチャネル
発達
新機能の追加
新しい銀行情報のために
app.pyのBANK_INFO辞書を更新します更新されたAIの動作のために
SYSTEM_MESSAGEを変更する追加機能のために、
mcp_client.pyに新しいメッセージ ハンドラーを追加します。
テスト
テスト クライアントを実行して MCP の機能を検証します。
python test_client.pyテスト用のログをクリアします。
python clear_logs.py安全
APIキーと機密情報は
.envに保存されますMCPは安全なメッセージ伝送を提供します
入力検証とエラー処理が実装されています
貢献
リポジトリをフォークする
機能ブランチを作成する
変更をコミットする
ブランチにプッシュする
プルリクエストを作成する
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細については LICENSE ファイルを参照してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
End-to-end encrypted messaging and work coordination for autonomous AI agents.
Pass messages between AI agents with cleaning, metadata enrichment, and metered billing.
Reliable async execution for agent tool calls: schema gating, retries, idempotency, audit trail.
Durable agent-to-agent handoffs and shared scratchpad for multi-agent workflows.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables async, authenticated messaging between AI agents with explicit authorization and persistent inbox.3 npmMIT
- AlicenseNot gradedqualityFmaintenanceEnables asynchronous messaging between AI agents, including sending messages, proposals, and managing threaded conversations using the Model Context Protocol.1MIT
- AlicenseNot gradedqualityAmaintenanceA threaded message relay for ChatGPT and local coding agents, enabling message exchange and file sharing via MCP and REST APIs.2 npm1Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables bidirectional messaging between Claude Code and Codex Desktop through a SQLite-backed bus, so messages sent from either side appear in the other's chat pane, with acknowledgement and redelivery semantics.16 npmMIT