Skip to main content
Glama
bobhuff0

MCP ChatGPT Multi-Server Suite

by bobhuff0
CURRENCY_START_HERE.mdโ€ข7.05 kB
# ๐Ÿ’ฑ Currency Converter App - START HERE ## ๐ŸŽ‰ Your Currency Converter is Ready! A fully functional **TypeScript ChatGPT App** using the **Model Context Protocol SDK** for real-time currency conversion. --- ## ๐Ÿš€ Quick Start (2 Steps) ### Step 1: Start Server ```bash ./start-currency.sh ``` ### Step 2: Open Browser ``` http://localhost:3001 ``` **Done!** ๐ŸŽ‰ No API key needed! --- ## โœจ What You Get ### ๐Ÿ’ฑ Currency Converter - **Real-time conversion** between 160+ currencies - **Auto-convert** as you type - **Popular pairs** quick-access buttons - **Swap** currencies with one click - **No API key required** (free tier: 1500 req/month) ### ๐Ÿ“Š Live Exchange Rates - **Real-time rates** for major currencies - **Auto-refresh** every 60 seconds - **Base currency** selector ### ๐ŸŽจ Beautiful UI - **Dark mode** with gradient theme - **Responsive design** works on all devices - **Smooth animations** with Anime.js - **Color-coded results** in success green --- ## ๐Ÿ› ๏ธ MCP Tools Available ### 1. `convertCurrency` ```javascript await window.openai.callTool('convertCurrency', { from: 'USD', to: 'EUR', amount: 100 }); // Returns: { from: 'USD', to: 'EUR', amount: 100, result: 92.50, rate: 0.925, ... } ``` ### 2. `getSupportedCurrencies` ```javascript await window.openai.callTool('getSupportedCurrencies', {}); // Returns: { currencies: {...}, count: 161 } ``` ### 3. `getExchangeRates` ```javascript await window.openai.callTool('getExchangeRates', { base: 'USD' }); // Returns: { base: 'USD', rates: {...}, timestamp: '...' } ``` --- ## ๐Ÿ’ก How It Works 1. **Page loads** โ†’ Frontend auto-calls `window.openai.callTool('convertCurrency', ...)` 2. **MCP Server** receives request via Express 3. **Exchange Rate API** provides real-time rates 4. **Results displayed** in beautiful responsive tables --- ## ๐ŸŒ Expose with ngrok **Terminal 1:** ```bash ./start-currency.sh ``` **Terminal 2:** ```bash ngrok http 3001 ``` Share the public URL! --- ## ๐Ÿ“š Documentation - **CURRENCY_QUICKSTART.md** - Quick start guide - **CURRENCY_README.md** - Full documentation - **APPS_OVERVIEW.md** - Compare with stock market app --- ## ๐ŸŽฏ Popular Features ### Quick Conversions One-click buttons for: - USD โ†’ EUR - EUR โ†’ USD - GBP โ†’ USD - USD โ†’ JPY - USD โ†’ CNY - And more! ### Supported Currencies 160+ currencies including: - ๐Ÿ‡บ๐Ÿ‡ธ 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 --- ## ๐Ÿ”ง Optional: Unlimited Access **Free tier:** 1500 requests/month (no key required) **Upgrade to unlimited:** 1. Get free API key: https://www.exchangerate-api.com/ 2. Set environment variable: ```bash export EXCHANGE_RATE_API_KEY=your_key_here ``` 3. Restart server --- ## ๐Ÿ“ Files ``` MCPAddIn/ โ”œโ”€โ”€ src/currency-server.ts # MCP server with 3 tools โ”œโ”€โ”€ public-currency/index.html # ChatGPT app frontend โ”œโ”€โ”€ start-currency.sh # Easy startup โ”œโ”€โ”€ CURRENCY_README.md # Full docs โ””โ”€โ”€ CURRENCY_QUICKSTART.md # Quick guide ``` --- ## ๐ŸŽจ UI Screenshot Preview ``` โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ ๐Ÿ’ฑ Currency Converter โ”‚ โ”‚ Real-time exchange rates for 160+... โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Convert Currency โ”‚ โ”‚ โ”‚ โ”‚ From: [USD โ–ผ] To: [EUR โ–ผ] โ”‚ โ”‚ Amount: [100] Result: 92.50 EUR โ”‚ โ”‚ โ”‚ โ”‚ [๐Ÿ”„ Swap] [Convert] โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Exchange Rate: 0.925000 โ”‚ โ”‚ 100.00 USD = 92.50 EUR โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Popular Conversions โ”‚ โ”‚ [USDโ†’EUR] [EURโ†’USD] [GBPโ†’USD] [USDโ†’JPY]โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚ Live Exchange Rates (Base: USD) โ”‚ โ”‚ EUR: 0.925 | 1 USD = 0.9250 EUR โ”‚ โ”‚ GBP: 0.790 | 1 USD = 0.7900 GBP โ”‚ โ”‚ JPY: 149.50 | 1 USD = 149.50 JPY โ”‚ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ ``` --- ## ๐Ÿ”ฅ Features Summary โœ… **3 MCP Tools** - convertCurrency, getSupportedCurrencies, getExchangeRates โœ… **Auto-load** - Calls `window.openai.callTool()` on page load โœ… **Real-time rates** - Up-to-date exchange rates โœ… **160+ currencies** - Comprehensive coverage โœ… **No API key** - Free tier works out of the box โœ… **Beautiful UI** - Dark mode with DaisyUI + Tailwind โœ… **Responsive** - Mobile-friendly design โœ… **Animations** - Smooth Anime.js transitions โœ… **Popular pairs** - Quick-access buttons โœ… **Live rates table** - Auto-refresh every 60s โœ… **Swap function** - Reverse conversion easily โœ… **TypeScript** - Type-safe code โœ… **Express** - Clean REST API โœ… **MCP SDK** - Standard protocol --- ## ๐Ÿ†š Compare with Stock Market App | Feature | Currency | Stock Market | |---------|----------|--------------| | **Port** | 3001 | 3000 | | **API Key** | Optional | Required | | **Tools** | 3 | 1 | | **Free Tier** | 1500/mo | 5/min | | **Startup** | ./start-currency.sh | ./start.sh | --- ## ๐Ÿ’ช What's Next? 1. โœ… App is running 2. ๐ŸŽจ Customize the UI (edit `public-currency/index.html`) 3. ๐Ÿ› ๏ธ Add more MCP tools (edit `src/currency-server.ts`) 4. ๐Ÿš€ Deploy to production 5. ๐Ÿ“Š Add charts for historical rates 6. โญ Add favorite currency pairs --- ## ๐Ÿ› Troubleshooting **Port in use?** ```bash PORT=3002 ./start-currency.sh ``` **Dependencies missing?** ```bash npm install npm run build ``` **Rate limit?** - Get free unlimited API key - Or wait for monthly reset --- **Happy Converting! ๐Ÿ’ฑ** Questions? Check **CURRENCY_README.md** for full documentation!

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