modernbank-mcp-server
Verified Safeby PfandAhter
Overview
Orchestrates banking requests through Google Gemini function-calling workflows and ModernBank backend services.
Installation
./mvnw spring-boot:runEnvironment Variables
- GEMINI_API_KEY
- FEIGN_CLIENT_ACCOUNT_SERVICE_URL
- FEIGN_CLIENT_TRANSACTION_SERVICE_URL
- SERVICES_PAYMENT_URL
Security Notes
The system acts as an API gateway, propagating `Authorization`, `X-User-Id`, `X-User-Email`, `X-User-Role` headers to downstream services. This is a standard microservices pattern but requires robust authentication/authorization in client and backend services. The `PaymentService` contains commented-out JWT parsing and a hardcoded `fromAccount = ""` which is a bug, but this service is currently not integrated with Gemini function calls and thus poses no immediate threat via the AI. Critical financial operations (`transfer_money`) rely on parameters extracted by Gemini from user input, which are then passed to the `TransactionService`. Extensive `GLOBAL_PROMPT` engineering and a `MissingInputResolver` are used to guide Gemini and handle missing parameters, which are crucial for preventing misuse and ensuring correct function execution. The direct function invocation endpoint `/v1/api/mcp/invoke` is stubbed and returns `null`, reducing its attack surface.
Similar Servers
spring-documentation-mcp-server
Provides a Model Context Protocol (MCP) server for comprehensive access to Spring ecosystem documentation, migration guides, code examples, language evolution, and Initializr metadata, primarily for AI agent consumption.
spring-boot-ai
The MCP Server provides a remote 'Booking Tool' for an AI agent to make accommodation reservations in tourist destinations.
MCP-Client-Host-Java
An MCP (Model Context Protocol) client that acts as a server to the MCP host, managing connections to various external MCP servers (tools) and orchestrating tool discovery and execution for AI assistants.
mono_mcp_client_server_adk
An AI orchestration client that integrates Google's AI services (Gemini, TTS, STT) and custom Micro-Cloud Platform (MCP) tools to facilitate interactive conversations, including voice and document processing, for users seeking benefits or appointments.