Manages environment variables for storing sensitive credentials like API keys and endpoints for the Azure OpenAI service.
Uses Flask to provide the web application framework for the banking chatbot interface, serving the chat UI to users at http://localhost:5000.
Facilitates version control and collaboration for the banking chatbot project, with instructions for cloning the repository.
Supports rich text formatting in chatbot responses, allowing for better presentation of banking information and instructions.
Connects to Azure OpenAI to power the banking chatbot with intelligent responses to customer queries about banking information, services, and support.
Serves as the foundation programming language for the banking chatbot application, with requirements for Python 3.8 or higher.
Banking Chatbot with MCP Integration
A sophisticated banking chatbot application that uses Azure OpenAI and Model Context Protocol (MCP) for secure and efficient message handling.
Features
- AI-Powered Banking Assistant: Uses Azure OpenAI to provide intelligent responses to banking queries
- Model Context Protocol (MCP): Implements a secure message communication protocol
- Real-time Chat Interface: Modern, responsive UI for seamless user interaction
- Comprehensive Logging: Detailed logging system for monitoring and debugging
- Bank Information Integration: Dynamic display of bank details and services
- Markdown Support: Rich text formatting for responses
Project Structure
Prerequisites
- Python 3.8 or higher
- Azure OpenAI API access
- Required Python packages (see requirements.txt)
Installation
- Clone the repository:
- Create and activate a virtual environment:
- Install dependencies:
- Create a
.env
file with your credentials:
Usage
- Start the MCP server:
- In a new terminal, start the Flask application:
- Access the chatbot interface at
http://localhost:5000
MCP Protocol
The Model Context Protocol (MCP) is implemented to handle message communication between the chatbot and the server. It provides:
- Secure message transmission
- Message queuing and reliability
- Detailed logging
- Real-time message handling
Message Types
- Chat Messages: User queries and AI responses
- System Messages: Administrative and control messages
Logging
The application maintains detailed logs in the logs
directory:
client_messages.log
: Chat message historymcp_client.log
: Client connection and operation logsmcp_server.log
: Server operation logs
Bank Information
The chatbot is configured with comprehensive bank information including:
- Business hours
- Branch locations
- Available services
- Contact information
- Support channels
Development
Adding New Features
- Update the
BANK_INFO
dictionary inapp.py
for new bank information - Modify the
SYSTEM_MESSAGE
for updated AI behavior - Add new message handlers in
mcp_client.py
for additional functionality
Testing
Run the test client to verify MCP functionality:
Clear logs for testing:
Security
- API keys and sensitive information are stored in
.env
- MCP provides secure message transmission
- Input validation and error handling are implemented
Contributing
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Implements a secure message communication protocol for handling exchanges between the banking chatbot and Azure OpenAI, providing message queuing, reliability, and detailed logging.
Related MCP Servers
- -securityFlicense-qualityProvides chat and image analysis capabilities through OpenRouter.ai's diverse model ecosystem, enabling both text conversations and powerful multimodal image processing with various AI models.Last updated -327TypeScript
- -securityFlicense-qualityThis server implements the Multi-Agent Conversation Protocol for AWS SecurityHub, enabling interaction with AWS SecurityHub API through natural language commands.Last updated -Python
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with Azure DevOps services, providing capabilities for work item management, project management, and team collaboration through natural language.Last updated -21Python
- -securityAlicense-qualityA comprehensive server that enables AI applications to interact with Microsoft 365 and Azure AD services through standardized Model Context Protocol interfaces.Last updated -1PythonMIT License