Rabobank MCP Training Demo

Rabobank MCP Training Demo

A training MCP server that demonstrates how GitHub Copilot can securely access internal banking APIs, documentation, and architecture review prompts.

Category
访问服务器

README

Internal MCP Server Demo with uv, FastAPI and FastMCP

A minimal, realistic training project for a 1-hour MCP session with developers.

The project demonstrates how GitHub Copilot in Visual Studio Code can use an internal MCP server to safely access approved internal APIs, documentation and review prompts.

All data is fictional. No real Rabobank data is included.


What this demo contains

rabobank_internal_mcp_uv_demo/
├─ app/
│  ├─ data.py              # Fake internal banking data
│  ├─ internal_api.py      # Internal FastAPI API
│  ├─ mcp_server.py        # MCP server wrapping the internal API
│  ├─ run_api.py           # uv script entrypoint for the API
│  └─ __init__.py
├─ .vscode/
│  ├─ mcp.json             # VS Code MCP config using uv
│  └─ tasks.json           # Optional VS Code tasks
├─ scripts/
│  ├─ demo-calls.ps1       # PowerShell API test calls
│  └─ demo-calls.sh        # Bash API test calls
├─ .env.example
├─ .python-version
├─ pyproject.toml
└─ README.md

Learning goal

Developers learn that an MCP server can act as a controlled AI-facing layer over internal systems.

GitHub Copilot in VS Code
          │
          ▼
      MCP Client
          │
          ▼
 Internal MCP Server
          │
 ┌────────┼────────┬─────────────┐
 ▼        ▼        ▼             ▼
Internal  API      Policies      Architecture
API       Catalog  / Standards   Checks

Prerequisite: uv

Check if uv is available:

uv --version

Install uv on Windows:

winget install astral-sh.uv

Alternative Windows install:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

macOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Setup

From the project folder:

uv sync

This creates the virtual environment and installs dependencies from pyproject.toml.


Training Pages

This repository also contains HTML training material:

  • index.html - self-study guide for MCP and Rabobank Design System context
  • mcp-extension-lab.html - hands-on developer lab for extending this MCP server
  • mcp-extension-trainer-answer-key.html - trainer guide with expected solution and demo flow

Step 1 — Run the internal API

Terminal 1:

uv run bank-api

Open the FastAPI docs:

http://127.0.0.1:8000/docs

Test the health endpoint:

curl http://127.0.0.1:8000/health

Most endpoints require the demo API key:

curl -H "x-api-key: training-demo-key" http://127.0.0.1:8000/customers/CUST-1001

PowerShell alternative:

$Headers = @{ "x-api-key" = "training-demo-key" }
Invoke-RestMethod -Uri "http://127.0.0.1:8000/customers/CUST-1001" -Headers $Headers

Step 2 — Run the MCP server

Normally VS Code starts the MCP server using .vscode/mcp.json.

For a manual smoke test, open Terminal 2:

uv run bank-mcp

The MCP server uses stdio transport, so it may look like it is waiting. That is expected.


Step 3 — Connect in Visual Studio Code

The example config is in:

.vscode/mcp.json

It starts the MCP server with:

uv run bank-mcp

Important: keep the internal API running in Terminal 1.


MCP tools

get_customer_profile(customer_id)

Example IDs:

  • CUST-1001
  • CUST-2002

Example prompt:

Use the internal MCP server to retrieve customer CUST-1001 and summarize the active products.

get_product_info(product_id)

Example IDs:

  • MORTGAGE-FLEX
  • PAYMENT-PLUS
  • BUSINESS-ACCOUNT

Example prompt:

Use the internal MCP server to explain product MORTGAGE-FLEX for a developer who needs to call the product API.

get_api_endpoint_info(api_name)

Example API names:

  • customer-onboarding
  • product-catalog

Example prompt:

Use the internal MCP server to inspect the customer-onboarding API and tell me which endpoint creates a new onboarding case.

run_architecture_check(service_name)

Example prompt:

Run an architecture check for CustomerOnboardingService and summarize the findings as action items.

MCP resources

policy://api-security

Example prompt:

Use the policy://api-security resource and summarize the security requirements for internal APIs.

architecture://event-driven-standards

Example prompt:

Use the architecture://event-driven-standards resource and explain what every event must contain.

MCP prompt

api_security_review_prompt(api_name, endpoint)

Example prompt:

Use the api_security_review_prompt for the customer-onboarding API and endpoint /onboarding/cases.

Trainer flow for 1 hour

0–10 min — Explain MCP

MCP is a standard way to let AI clients use tools, resources and prompts from approved systems.

10–20 min — Show the internal API

Open:

http://127.0.0.1:8000/docs

Show that it represents internal systems:

  • Customer API
  • Product API
  • API catalog
  • Policies
  • Architecture check

20–35 min — Show the MCP server

Open app/mcp_server.py and explain:

  • Tools perform actions or retrieve specific data
  • Resources expose readable knowledge
  • Prompts standardize repeatable tasks

35–50 min — Use GitHub Copilot in VS Code

Run the demo prompts from this README.

50–60 min — Extension exercise

Ask participants to add one new tool:

@mcp.tool
def list_customer_products(customer_id: str) -> list[str]:
    customer = internal_get(f"/customers/{customer_id}")
    return customer["active_products"]

Then ask Copilot:

Use the internal MCP server to list the active products for customer CUST-1001.

Security discussion points

This demo intentionally uses fake data. In a real organization, discuss:

  • Internal allowlist for MCP servers
  • Authentication and authorization
  • Least privilege
  • Audit logging
  • Correlation IDs
  • Output filtering
  • No direct production database access
  • API gateway usage
  • Data classification
  • Separate dev/test/prod environments

Troubleshooting

uv is not recognized

Restart the terminal after installing uv.

API endpoint returns 401

Add the demo API key header:

x-api-key: training-demo-key

MCP server seems stuck

That is normal for stdio MCP servers. It waits for the MCP client.

Port 8000 already in use

Change the port in app/run_api.py or stop the other process.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选