Investec MCP: Banking API for AI Agents
LocalAbout Investec MCP: Banking API for AI Agents
Investec Open Banking APIをMCP経由で利用するサーバーです。Investec Developerの認証情報を持つユーザーや、銀行情報の参照・送金を行うAIエージェント向けに、口座、受取人、支払い、書類のツールを提供します。
Key features
- 01口座残高・取引の取得
- 02プロフィールと受取人の参照
- 03口座間送金と受取人への支払い
- 04複数件の一括送金・支払い
- 05口座書類の一覧・取得
Use cases
- 01口座残高や取引を確認する
- 02承認済み受取人に支払う
- 03複数口座への送金をまとめる
MCP support
口座情報の参照や送金など、Investec Open Banking APIの機能をMCPクライアント向けツールとして公開します。SSEとstdioのトランスポートに対応します。
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEInvestec MCP: Banking API for AI Agents
A Model Context Protocol (MCP) server implementation that integrates with the Investec Open Banking API, allowing AI agents to access banking information and perform transactions.
Overview
This project provides an MCP server that enables AI agents to interact with the Investec Open Banking API. It follows the best practices laid out by Anthropic for building MCP servers, allowing seamless integration with any MCP-compatible client like Claude.
Features
The server provides comprehensive banking tools based on the Investec Open Banking API:
Account Information
get_accounts: Retrieve all accounts for the authenticated userget_account_balance: Get the balance for a specific accountget_account_transactions: Get transactions for a specific account with filtering optionsget_pending_transactions: Get pending transactions for a specific account
Profile Management
get_profiles: Get all profiles the user has consented toget_profile_accounts: Get accounts for a specific profileget_profile_beneficiaries: Get beneficiaries for a specific profile and accountget_authorisation_setup_details: Get authorization setup details for payments requiring approval
Beneficiary Management
get_beneficiaries: Get all saved beneficiariesget_beneficiary_categories: Get all beneficiary categories
Transfers and Payments
transfer_money: Transfer money between your own accounts (convenience method)transfer_multiple: Transfer funds to one or multiple accounts in a batchpay_beneficiary: Make a payment to a saved beneficiary (convenience method)pay_multiple: Make payments to multiple beneficiaries in a batch
Document Management
get_documents: Get a list of documents for an account in a date rangeget_document: Get a specific document by type and date
Prerequisites
- Python 3.12+
- Investec Developer account with API credentials
- Docker if running the MCP server as a container (recommended)
Installation
Using uv
-
Clone this repository:
git clone https://github.com/yourusername/investec-mcp.git cd investec-mcp -
Install dependencies:
uv pip install -e . -
Create a
.envfile based on.env.example:cp .env.example .env -
Configure your environment variables in the
.envfile with your Investec API credentials
Using Docker (Recommended)
-
Build the Docker image:
docker build -t investec/mcp --build-arg PORT=8050 . -
Create a
.envfile based on.env.exampleand configure your environment variables
Configuration
The following environment variables can be configured in your .env file:
| Variable | Description | Example |
|---|---|---|
TRANSPORT | Transport protocol (sse or stdio) | sse |
HOST | Host to bind to when using SSE transport | 0.0.0.0 |
PORT | Port to listen on when using SSE transport | 8050 |
INVESTEC_CLIENT_ID | Client ID from Investec Developer Portal | your-client-id |
INVESTEC_CLIENT_SECRET | Client Secret from Investec Developer Portal | your-client-secret |
INVESTEC_API_KEY | API Key from Investec Developer Portal | your-api-key |
Running the Server
Using uv
SSE Transport
# Set TRANSPORT=sse in .env then:
uv run python src/main.py
The MCP server will run as an API endpoint that you can connect to.
Stdio Transport
With stdio, the MCP client itself can spin up the MCP server.
Using Docker
SSE Transport
docker run --env-file .env -p 8050:8050 investec/mcp
The MCP server will run as an API endpoint within the container that you can connect to.
Stdio Transport
With stdio, the MCP client itself can spin up the MCP server container.
Integration with MCP Clients
SSE Configuration
Once you have the server running with SSE transport, you can connect to it using this configuration:
{
"mcpServers": {
"investec": {
"transport": "sse",
"url": "http://localhost:8050/sse"
}
}
}
Note for Windsurf users: Use
serverUrlinstead ofurlin your configuration:{ "mcpServers": { "investec": { "transport": "sse", "serverUrl": "http://localhost:8050/sse" } } }
Make sure to update the port if you are using a value other than the default 8050.
Python with Stdio Configuration
Add this server to your MCP configuration for Claude Desktop, Windsurf, or any other MCP client:
{
"mcpServers": {
"investec": {
"command": "path/to/python",
"args": ["path/to/investec-mcp/src/main.py"],
"env": {
"TRANSPORT": "stdio",
"INVESTEC_CLIENT_ID": "your-client-id",
"INVESTEC_CLIENT_SECRET": "your-client-secret",
"INVESTEC_API_KEY": "your-api-key"
}
}
}
}
Docker with Stdio Configuration
{
"mcpServers": {
"investec": {
"command": "docker",
"args": ["run", "--rm", "-i",
"-e", "TRANSPORT",
"-e", "INVESTEC_CLIENT_ID",
"-e", "INVESTEC_CLIENT_SECRET",
"-e", "INVESTEC_API_KEY",
"investec/mcp"],
"env": {
"TRANSPORT": "stdio",
"INVESTEC_CLIENT_ID": "your-client-id",
"INVESTEC_CLIENT_SECRET": "your-client-secret",
"INVESTEC_API_KEY": "your-api-key"
}
}
}
}
Security Considerations
This MCP server requires sensitive banking credentials. Always:
- Keep your
.envfile secure and never commit it to version control - Use secure, private Docker registries if you build and distribute container images
- Only run the server on secure, trusted networks
- Consider implementing additional security measures like request rate limiting
Extending the Server
To add more functionality:
- Add new methods to the
InvestecClientclass insrc/utils.pyto interact with the desired Investec API endpoints. - Create new tool functions within the relevant Python file inside the
src/tools/directory (e.g.,src/tools/accounts.pyfor account-related tools). Use the@mcp.tool()decorator for these functions. - Import and register the new tool functions in
src/main.py.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.