BNM-MCP logo

BNM-MCP

Community
meisin

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

Publishermeisin
Repositorybnm-mcp
LanguagePython
Forks
5
Stars
21
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    BNM-MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    21 stars and 5 forks from the linked repository.

💹💹 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.

Installation

TypingMind
Prerequisites:

Node.js 18+

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

Use BNM-MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once BNM-MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add BNM-MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the BNM-MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "meisin-bnm-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "bnm-mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the BNM-MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the BNM-MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use BNM-MCP to help me with this task?
BNM-MCP
Sure. I read it.
Here is what I found using BNM-MCP.

Frequently asked questions

What is the BNM-MCP MCP server used for?

BNM-MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use BNM-MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use BNM-MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use BNM-MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With BNM-MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect BNM-MCP MCP to TypingMind?

BNM-MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does BNM-MCP MCP provide in TypingMind?

BNM-MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use BNM-MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If BNM-MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇