mcp_server
Verified Safeby arifdegirmenci
Overview
A simple MCP server that retrieves bank accounts from the TreasuryPath API and enables question-answering using an Ollama LLM.
Installation
python3 server.pyEnvironment Variables
- TREASURY_API_KEY
- TREASURY_API_SECRET
- COMPANY_ID
- BASE_URL
- OLLAMA_BASE_URL
- OLLAMA_MODEL
Security Notes
Sensitive API keys (TREASURY_API_KEY, TREASURY_API_SECRET) are loaded from a .env file, which is good practice. The server and Ollama instance are configured to run on localhost by default, limiting external network exposure. User input for LLM questions is combined with structured bank account data (rather than raw data), which helps mitigate basic prompt injection, but does not eliminate all potential LLM prompt injection risks. No obvious 'eval' or direct arbitrary code execution from user input is present in the provided code snippets.
Similar Servers
bank-api
A design reference project for building a compliant and modern bank API, exposed via Model Context Protocol.
mcp-client-for-ollama
An interactive terminal client for connecting local Ollama LLMs to Model Context Protocol (MCP) servers, enabling advanced tool use and workflow automation for local LLMs.
investec-mcp
An MCP server that integrates with the Investec Open Banking API, enabling AI agents to access banking information and perform transactions.
pymcp
A template repository for developing Model Context Protocol (MCP) servers in Python, demonstrating various tools, resources, and prompts.