BNM-MCPのロゴ

BNM-MCP

コミュニティ
meisin

A Model Context Protocol (MCP) Server for connecting to the Bank Negara Malaysia (BNM) Open API.

公開者meisin
リポジトリbnm-mcp
言語Python
フォーク
5
スター
21
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    BNM-MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 利用可能なツール(0個)

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースプロジェクトの注目度

    リンク先のリポジトリには21件のスターと5件のフォークがあります。

💹💹 BNM-MCP 📊📊

A Model Context Protocol (MCP) Server for connecting to the Bank Negara Malaysia (BNM) Open API. This project provides tools to fetch various financial data from BNM, such as exchange rates, base rates, gold prices, and more.

Disclaimer

This MCP server is neither affiliated with BNM nor endorsed by BNM; the server leverages on BNM's OpenAPI endpoints and contains just a subset of BNM's API.

Available Tools 📊💰🏦💹

Exchange Rates & Currency 🪙

get_exchange_rate - Get currency exchange rates from the Interbank Foreign Exchange Market in Kuala Lumpur. Prices of selected countries' currencies are quoted in relation to Ringgit.

get_usd_myr_intraday_rate - Get latest USD/MYR (US Dollar - Malaysian Ringgit) interbank intraday highest and lowest exchange rate. Rates are obtained from the best U.S. dollar against Malaysian ringgit interbank highest and lowest dealt rates by commercial banks.

get_usd_myr_reference_rate - Get latest reference rate that is computed based on weighted average volume of the interbank USD/MYR FX spot rate transacted by the domestic financial institutions and published daily at 3:30 p.m.

get_daily_FX_turnover - Get daily foreign exchange turnover for all currencies including interbank and customer deals.

Interest Rates 🪙

get_base_rate - Get current Base Rates or Base Lending Rates for retail loans or financing facilities and Indicative Effective Lending Rates for a standard housing loan/home financing offered by financial institutions in Malaysia.

get_overnight_policy_rate - Get Overnight Policy Rate (OPR) decided by the Monetary Policy Committee.

get_malaysia_overnight_rate_i - Get Malaysia overnight rate from Bank Negara Malaysia.

get_islamic_interbank_rate - Get daily weighted average of Islamic interbank deposit rates for various tenures.

get_interest_rates_banking_institution - Get interest rates by banking institution.

Money & Banking 🪙

get_reserve_money - Get latest reserve money data by Bank Negara Malaysia.

get_currency_circulation_by_denomination - Get Currency in Circulation by Denomination of:

  • Coins: one cent, five cent, ten cent, twenty cent, fifty cent, one ringgit
  • Notes: one ringgit, five ringgit, ten ringgit, twenty ringgit, fifty ringgit, one hundred ringgit

get_monetary_aggregates_M1_M2_M3 - Get monetary aggregates M1, M2, and M3 data by Bank Negara Malaysia.

get_broad_money_M3 - Get Broad Money M3 data by Bank Negara Malaysia.

get_bnm_statement_assets - Get statement of assets of Bank Negara Malaysia.

get_banking_system_statement_assets - Get statement of assets for banking systems. Available banking institution types: commercial, islamic, investment, total.

Market Data 🪙

get_interbank_swap - Get daily interbank swap volume by tenure.

get_kijang_emas - Get daily trading prices of Malaysia gold bullion coin.

get_malaysian_government_securities_market_indicative_yield - Get Malaysian Government securities Market Indicative Yield from Bank Negara Malaysia.

get_volume_transaction_interbank_money_market - Get Volume of Transaction in Interbank Money Market from Bank Negara Malaysia.

get_volume_transaction_kl_foreign_exchange_market - Get Volume of Interbank Transactions in the Kuala Lumpur Foreign Exchange Market from Bank Negara Malaysia.

get_bond_market_highlights - Get market highlights for the bond market.

Government & Economy🪙

get_federal_government_finance - Get Federal Government Finance data.

get_external_reserves - Get information of External Reserves from Bank Negara Malaysia.

get_labour_market_indicators_financial_services_sector - Get Labour Market Indicators for the Financial Services Sector from Bank Negara Malaysia.

Consumer Protection🪙

get_financial_consumer_alert - Get list of companies and websites which are neither authorised nor approved under the relevant laws and regulations administered by BNM.

Islamic Finance🪙

** get_takaful_key_indicators** - Get Takaful Key Indicators from Bank Negara Malaysia.

Requirements

  • Python >=3.11
  • MCP SDK 1.2.0 or higher
  • uv package manager

Install uv Package Manager

Method 1: Using pip (Recommended for most users)

sh
pip install uv

Method 2: For Unix systems (Linux, macOS):

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

Getting Started 🛠️🛠️🛠️

  1. Clone this repository.
sh
git clone https://github.com/meisin/bnm-mcp.git
  1. Install dependencies.
sh
uv sync
  1. Run the MCP server:
sh
uv run main.py

The server will start and expose the tools via the MCP interface.

Connecting to Claude Desktop

  1. Install Claude Desktop from the official website
  2. Configure Claude Desktop to use your MCP server:
sh
{
    "mcpServers": {
        "mcp-server": {
            "command": "uv",  # It's better to use the absolute path to the uv command
            "args": [
                "--directory",
                "/ABSOLUTE/PATH/TO/YOUR/bnm-mcp",
                "run",
                "main.py"
            ]
        }
    }
}

License

This project is for research and educational purposes. Please refer to Bank Negara Malaysia's API terms of use for data usage policies.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "meisin-bnm-mcp": {
      "command": "",
      "args": []
    }
  }
}

BNM-MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度BNM-MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」→「詳細設定」→「Model Context Protocol」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「Model Context Protocol」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

BNM-MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. BNM-MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタのステータスが「準備完了」のままか確認するには、画面を更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "meisin-bnm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bnm-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてBNM-MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. BNM-MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
BNM-MCPを使ってこのタスクを手伝ってもらえますか?
BNM-MCP
はい、読みました。
BNM-MCPで調べた結果をお伝えします。

よくある質問

BNM-MCP MCPサーバーは何に使いますか?

BNM-MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでは、複数のAIモデルでBNM-MCP MCPを利用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでBNM-MCPを利用できます。

TypingMindでBNM-MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けのトップクラスのフロントエンドです。BNM-MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

BNM-MCP MCPをTypingMindに接続するにはどうすればよいですか?

BNM-MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでBNM-MCP MCPのどのようなツールを利用できますか?

BNM-MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

BNM-MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。BNM-MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇