bank-postgres-mcp
bank-postgres-mcp
HTTP MCPサーバーで、PostgreSQLデータベース(bankdb)からの読み取りおよび書き込みを行います。
デプロイ済みで、以下のURLからアクセス可能です:https://armored-backspace-angles.ngrok-free.dev/mcp
エンドポイント
パス | メソッド | 目的 |
| POST | MCP Streamable HTTP エンドポイント |
| GET | 生存確認 |
Related MCP server: db-mcp
ツール
読み取りツール(bankdb を直接クエリ)
ツール | 説明 |
| データベース内の全顧客を一覧表示 |
| customer_id で顧客プロフィール+全口座を取得 |
| 口座番号(例: |
| account_id または account_number で最近の取引を取得 |
書き込みツール(MCPダンプテーブルにupsert)
ツール | アクション |
| 取得した顧客レコードを |
| 新しく作成した顧客を |
| 銀行支店レコードを |
テーブルは初回使用時に自動生成されます。
セットアップ
1. 前提条件
Node.js ≥ 18
PostgreSQL がローカルで動作していること
2. インストールとビルド
cd bank-postgres-mcp
npm install
npm run build3. 環境設定
cp env.example .env
# .env is gitignored — edit credentials there提供された認証情報:
DATABASE_URL=postgresql://bankuser:bankpassword@localhost:5432/bankdb
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=bankdb
POSTGRES_USER=bankuser
POSTGRES_PASSWORD=bankpassword4. サーバーの起動
# Export env vars, then start
export DATABASE_URL=postgresql://bankuser:bankpassword@localhost:5432/bankdb
node build/index.js
# Or with all vars:
export POSTGRES_HOST=localhost POSTGRES_PORT=5432 POSTGRES_DB=bankdb \
POSTGRES_USER=bankuser POSTGRES_PASSWORD=bankpassword
node build/index.jsデフォルトではサーバーは http://localhost:3100 で起動します。PORT=XXXX で上書き可能です。
5. 確認
curl http://localhost:3100/health
# → {"status":"ok","server":"bank-postgres-mcp","version":"1.0.0"}watsonx Orchestrate への登録
Orchestrate で、新しい MCP Server ツール統合を追加します:
フィールド | 値 |
トランスポート | Streamable HTTP |
URL |
|
Orchestrate がリモート(ノートパソコン以外)で動作している場合は、トンネルを使用してサーバーを公開します:
npx localtunnel --port 3100 # Use the returned https URL instead of localhost
Bob への登録(.bob/mcp.json)
{
"mcpServers": {
"bank-postgres-mcp": {
"url": "http://localhost:3100/mcp"
}
}
}データベーススキーマ
customers
カラム | 型 | 備考 |
| TEXT PK | |
| TEXT | |
| TEXT | |
| TEXT | |
| TEXT | |
| TEXT | 個人情報 |
| TEXT | 個人情報 |
| TEXT | 個人情報 |
| TEXT | |
| TEXT | line1, line2, city, state, postal_code, country |
| TEXT | |
| TEXT | |
| NUMERIC | |
| INT | |
| TEXT | |
| TEXT |
|
| TIMESTAMPTZ | 自動 |
| TIMESTAMPTZ | 自動 |
bank_branches
カラム | 型 | 備考 |
| TEXT PK | |
| TEXT | |
| TEXT | |
| TEXT | |
| TEXT | |
| TEXT[] | |
| TIMESTAMPTZ | 自動 |
| TIMESTAMPTZ | 自動 |
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Demo banking MCP server: accounts, transactions and payments. OAuth 2.1 with DPoP.
MCP server for Modern Treasury — payment orders, transactions, counterparties and ledgers.
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
MCP server for the vaulink iPhone finance app: read accounts, queue changes you confirm on the phone
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA minimal banking system MCP server that allows account management, deposits, withdrawals, balance inquiries, and transaction history via REST endpoints.-
- AlicenseAqualityCmaintenanceA lightweight MCP server for relational databases, enabling dynamic connections to PostgreSQL and MySQL, SQL execution, and transaction control.71MIT
- AlicenseAqualityCmaintenanceFull-featured MCP server that exposes 36 tools for interacting with PostgreSQL databases, covering schema introspection, query execution, data exploration, performance monitoring, security auditing, and maintenance.365 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for PostgreSQL that enables Cursor and other MCP clients to execute SQL queries, list tables, and explore database schemas via HTTP.MIT