nyinyi164/mcp-demo-with-exchange-rate-api
3.2
If you are the rightful owner of mcp-demo-with-exchange-rate-api and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server that provides real-time exchange rates for foreign currencies, based on data from the Central Bank of Myanmar API.
Tools
1
Resources
0
Prompts
0
๐ฑ mcp-demo-with-exchange-rate-api
A Model Context Protocol (MCP) server that provides real-time exchange rates for foreign currencies, based on data from the Central Bank of Myanmar API.
It uses the MCP SDK to expose a simple tool: get-fx-rates
, which returns the MMK (Myanmar Kyat) exchange rate for a given three-letter currency code (e.g., USD, THB).
๐ Features
- โ
Built using
@modelcontextprotocol/sdk
- ๐ Runs over stdio transport for easy integration with AI agents
- ๐ Fetches live exchange rates from the Central Bank of Myanmar
- ๐งช Validates inputs using
zod
๐ Usage
- Install dependencies
npm install
- Start the server
You should see:
node app.js
Once running, the server listens over stdio and exposes the following MCP tool: ๐ง MCP Tool:Exchange Rate MCP Server is running...
get-fx-rates
๐งช Testing
You can interact with this server using any MCP-compatible agent, including:
- ๐ง Cursor IDE
- ๐ง Claude Desktop
- Any custom MCP client