mcp-demo-with-exchange-rate-api

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

  1. Install dependencies
    npm install
    
  2. Start the server
    node app.js
    
    You should see:
    Exchange Rate MCP Server is running...
    
    Once running, the server listens over stdio and exposes the following MCP tool: ๐Ÿ”ง MCP Tool: get-fx-rates

๐Ÿงช Testing

You can interact with this server using any MCP-compatible agent, including:

  • ๐Ÿง  Cursor IDE
  • ๐Ÿง  Claude Desktop
  • Any custom MCP client