nyinyi164/mcp-demo-with-exchange-rate-api
3.1
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 dayong@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