Rabobank Demo MCP Server
Enables AI assistants to securely look up internal account balances, customer names, branch details, and perform live currency conversions through approved tools.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Rabobank Demo MCP ServerWhat is the balance of account 12345?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rabobank Demo MCP Server Lab
This project demonstrates how to expose approved internal business functionality to an AI client through MCP.
Goal
Understand how an MCP server works and how AI assistants can securely interact with internal systems through approved tools.
Related MCP server: Realtime Exchange Rate MCP Server
Learning Objectives
Explain the MCP client-server model.
Create MCP tools with FastMCP.
Run an MCP server locally over HTTP.
Connect GitHub Copilot (Agent mode) to the MCP server.
Test tool invocation through natural language prompts.
Scenario
In this fictional banking scenario, the MCP server exposes demo operations:
get_account_balance— look up a hardcoded internal account balance.get_customer_name— look up a hardcoded customer name by ID.get_branch_information— look up hardcoded branch details.get_exchange_rate— live rate from a currency to EUR (uses ExchangeRate-API).get_live_exchange_rate— live rate between any two currencies (defaults target to EUR).convert_currency— convert an amount between two currencies at the live rate.
Prerequisites
1. Install uv
Windows (PowerShell):
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"macOS (Homebrew):
brew install uvmacOS (official script):
curl -LsSf https://astral.sh/uv/install.sh | shVerify installation:
uv --versionOptional Python install via uv:
uv python install 3.122. Create a new MCP project (already done in this repo)
uv init first-mcp-server
cd first-mcp-server3. Add dependencies (already done in this repo)
uv add fastmcp httpx python-dotenvExchange Rate API Setup
The get_exchange_rate, get_live_exchange_rate, and convert_currency tools call
ExchangeRate-API for live rates. They need an API key.
1. Get a free API key
Sign up at https://app.exchangerate-api.com/.
Confirm your email and open the dashboard.
Copy your API key (looks like
1234567890abcdef12345678).
The key is used to build the request URL:
https://v6.exchangerate-api.com/v6/<API_KEY>/latest/<BASE_CURRENCY>2. Create your .env file
This repo includes an .env.example. Copy it to .env and insert your own key.
Windows (PowerShell):
Copy-Item .env.example .envmacOS / Linux:
cp .env.example .envThen edit .env:
EXCHANGE_RATE_API_KEY=your_real_key_heremain.py loads this automatically via python-dotenv (load_dotenv()), and .env
is listed in .gitignore so your key is not committed.
Security note:
.env.examplecurrently contains a real-looking key. Treat it as compromised — revoke/rotate it in the ExchangeRate-API dashboard and keep only a placeholder in.env.example. Never commit a real key.
3. Behavior without a key
If EXCHANGE_RATE_API_KEY is missing, the currency tools return:
API key is missing. Set EXCHANGE_RATE_API_KEY as an environment variable.The account, customer, and branch tools work without any key (they use hardcoded data).
Main Command Flow
Project setup:
uv init first-mcp-serverDependency install:
uv add fastmcpRun server:
uv run fastmcp run main.py:mcp --transport http --port 8000VS Code config:
.vscode/mcp.json
Run the MCP Server
Start HTTP transport:
uv run fastmcp run main.py:mcp --transport http --port 8000The server is running when you see output like:
Uvicorn running on http://127.0.0.1:8000Leave this terminal open.
If port 8000 is in use, run on 8001:
uv run fastmcp run main.py:mcp --transport http --port 8001Then update .vscode/mcp.json to use port 8001.
Important Endpoint Note
/mcp is not a normal webpage or REST endpoint. Browsing to it directly can return:
{
"jsonrpc": "2.0",
"id": "server-error",
"error": {
"code": -32600,
"message": "Not Acceptable: Client must accept text/event-stream"
}
}This is expected. MCP clients use the proper protocol headers.
Connect to VS Code
Open this project folder in VS Code (folder open is required, not a single file).
The project includes:
.vscode/mcp.json
With configuration:
{
"servers": {
"rabobank-demo": {
"url": "http://127.0.0.1:8000/mcp"
}
}
}Connection steps:
Open
.vscode/mcp.json.Click
Startabove the server entry.Open GitHub Copilot Chat.
Switch to
Agent mode.Click the
Select toolsicon (plus icon).Confirm
rabobank-demoappears with available tools.
Test Prompts
Use prompts like:
What is the balance of account 12345?
What is the name of customer 1001?
Show information about branch BR001.
What is the USD to EUR exchange rate?
What is the live exchange rate from GBP to USD?
Convert 100 USD to EUR.Demo data available for the prompts above:
Accounts:
12345,67890Customers:
1001(John Smith),1002(Aisha Khan)Branch:
BR001(Utrecht)
Demo Script
This is a minimal internal MCP server.
It exposes approved tools to an AI client.
The AI assistant cannot directly access internal systems.
It can only call tools that the MCP server exposes.
In this example, approved tools include account, customer, branch, and exchange rate lookups.Reflection Questions
Why use an MCP server instead of direct database access from an AI assistant?
What advantages does MCP provide over hardcoding business logic in prompts?
What security benefits come from exposing only approved tools?
Which internal systems in your organization could benefit from MCP?
Key Takeaway
An MCP server is a secure integration layer between AI assistants and internal systems. By exposing carefully designed tools, organizations can provide useful business functionality without directly exposing databases, internal APIs, or sensitive infrastructure.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/RemseyMailjard/exchange-rate-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server