Skip to main content
Glama
bobhuff0

MCP ChatGPT Multi-Server Suite

by bobhuff0
CURRENCY_QUICKSTART.mdโ€ข3.41 kB
# ๐Ÿ’ฑ Currency Converter - Quick Start ## ๐Ÿš€ Get Started in 2 Steps ### Step 1: Start the Server ```bash ./start-currency.sh ``` ### Step 2: Open Browser ``` http://localhost:3001 ``` **That's it!** ๐ŸŽ‰ No API key required! --- ## ๐Ÿ’ก How It Works 1. **Auto-loads** on page open 2. **Calls** `window.openai.callTool('convertCurrency', { from: 'USD', to: 'EUR', amount: 100 })` 3. **Displays** real-time conversion results 4. **Updates** as you type or change currencies --- ## ๐ŸŽฏ Features - โœ… Convert between 160+ currencies - โœ… Real-time exchange rates - โœ… Auto-convert as you type - โœ… Popular currency pair shortcuts - โœ… Live exchange rates table - โœ… Beautiful dark mode UI - โœ… Responsive mobile design - โœ… No API key required (free tier) --- ## ๐Ÿ”„ Usage Examples ### Basic Conversion 1. Select **From** currency (e.g., USD) 2. Enter **Amount** (e.g., 100) 3. Select **To** currency (e.g., EUR) 4. See instant result! ### Quick Conversions Click any popular pair button: - **USD โ†’ EUR** - **EUR โ†’ USD** - **GBP โ†’ USD** - **USD โ†’ JPY** ### Swap Currencies Click the **๐Ÿ”„ Swap** button to reverse the conversion --- ## ๐Ÿ“Š Example API Calls ### JavaScript (in ChatGPT app) ```javascript // Convert 100 USD to EUR const result = await window.openai.callTool('convertCurrency', { from: 'USD', to: 'EUR', amount: 100 }); console.log(result); // { from: 'USD', to: 'EUR', amount: 100, result: 92.50, rate: 0.925, ... } ``` ### cURL ```bash curl -X POST http://localhost:3001/mcp/tools/call \ -H "Content-Type: application/json" \ -d '{ "name": "convertCurrency", "arguments": { "from": "USD", "to": "EUR", "amount": 100 } }' ``` --- ## ๐ŸŒ Expose with ngrok **Terminal 1** (Keep running): ```bash ./start-currency.sh ``` **Terminal 2**: ```bash ngrok http 3001 ``` You'll get a public URL like: `https://abc123.ngrok.io` --- ## ๐Ÿ†“ Free vs Paid API ### Free Tier (Default - No Key Required) - โœ… 1500 requests/month - โœ… 160+ currencies - โœ… Real-time rates - โœ… No registration needed ### Unlimited (Optional API Key) - โœ… Unlimited requests - โœ… Higher reliability - โœ… Priority support **To upgrade:** 1. Get free key: https://www.exchangerate-api.com/ 2. Set it: `export EXCHANGE_RATE_API_KEY=your_key` 3. Restart server --- ## ๐Ÿ’ฑ Supported Currencies Major currencies include: - ๐Ÿ‡บ๐Ÿ‡ธ USD - US Dollar - ๐Ÿ‡ช๐Ÿ‡บ EUR - Euro - ๐Ÿ‡ฌ๐Ÿ‡ง GBP - British Pound - ๐Ÿ‡ฏ๐Ÿ‡ต JPY - Japanese Yen - ๐Ÿ‡ฆ๐Ÿ‡บ AUD - Australian Dollar - ๐Ÿ‡จ๐Ÿ‡ฆ CAD - Canadian Dollar - ๐Ÿ‡จ๐Ÿ‡ญ CHF - Swiss Franc - ๐Ÿ‡จ๐Ÿ‡ณ CNY - Chinese Yuan - ๐Ÿ‡ฎ๐Ÿ‡ณ INR - Indian Rupee - And 150+ more! --- ## ๐ŸŽจ UI Features - **Dark Mode**: Beautiful gradient theme - **Live Updates**: Auto-refresh every 60 seconds - **Smooth Animations**: Anime.js transitions - **Responsive**: Works on all devices - **Color Coding**: Success green for results --- ## ๐Ÿ”ง Troubleshooting **Port 3001 already in use?** ```bash PORT=3002 ./start-currency.sh ``` **Dependencies missing?** ```bash npm install npm run build ./start-currency.sh ``` **Rate limit exceeded?** - Get a free API key (unlimited) - Or wait for the monthly reset --- ## ๐Ÿ“š Learn More - **Full Documentation**: See `CURRENCY_README.md` - **API Details**: https://www.exchangerate-api.com/docs - **MCP SDK**: https://modelcontextprotocol.io/ --- **Happy Converting! ๐Ÿ’ฑ**

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bobhuff0/MCPAddIn'

If you have feedback or need assistance with the MCP directory API, please join our Discord server