# π MCP ChatGPT Apps - Complete Overview
You now have **TWO** fully functional MCP ChatGPT Apps in this project!
---
## π App #1: Stock Market Top Movers
### What It Does
Displays real-time stock market data for top gainers, losers, and most actively traded stocks.
### Quick Start
```bash
./start.sh
# Opens on http://localhost:3000
```
### Features
- π Top Gainers table
- π Top Losers table
- π₯ Most Actively Traded table
- π Adjustable result limits
- π¨ Beautiful dark mode UI
- π± Responsive design
### MCP Tools
- `topMovers(limit)` - Get top stock movers
### API Used
- Alpha Vantage API (requires free API key)
### Documentation
- **START_HERE.md** - Main overview
- **QUICKSTART.md** - 3-step quick start
- **README.md** - Full documentation
- **ARCHITECTURE.md** - Technical details
### Files
- `src/server.ts` - MCP server
- `public/index.html` - Frontend
- `./start.sh` - Startup script
- Port: **3000**
---
## π± App #2: Currency Converter
### What It Does
Converts between 160+ currencies with real-time exchange rates.
### Quick Start
```bash
./start-currency.sh
# Opens on http://localhost:3001
```
### Features
- π± Real-time currency conversion
- π Auto-convert as you type
- π Live exchange rates table
- β‘ Popular currency pairs
- π¨ Beautiful dark mode UI
- π± Responsive design
- π No API key required!
### MCP Tools
- `convertCurrency(from, to, amount)` - Convert currencies
- `getSupportedCurrencies()` - List all currencies
- `getExchangeRates(base)` - Get all rates for base currency
### API Used
- exchangerate-api.com (free tier: 1500 req/month, no key needed)
### Documentation
- **CURRENCY_README.md** - Full documentation
- **CURRENCY_QUICKSTART.md** - Quick start guide
### Files
- `src/currency-server.ts` - MCP server
- `public-currency/index.html` - Frontend
- `./start-currency.sh` - Startup script
- Port: **3001**
---
## π― Both Apps Share
### Common Features
β
**MCP SDK Integration** - Uses `@modelcontextprotocol/sdk`
β
**Express REST API** - Clean REST endpoints
β
**ChatGPT Integration** - `window.openai.callTool()` support
β
**Auto-load** - Data loads automatically on page open
β
**Dark Mode UI** - DaisyUI + Tailwind CSS
β
**Smooth Animations** - Anime.js animations
β
**Responsive Design** - Mobile-friendly
β
**Error Handling** - Graceful error messages
β
**TypeScript** - Type-safe code
β
**Helper Scripts** - Easy startup
β
**Complete Docs** - Comprehensive documentation
### Common Dependencies
- TypeScript
- Express.js
- @modelcontextprotocol/sdk
- Axios
- CORS
- DaisyUI
- Tailwind CSS
- Anime.js
---
## π Quick Start Both Apps
### Start Stock Market App
```bash
export ALPHA_VANTAGE_API_KEY=your_key_here
./start.sh
# http://localhost:3000
```
### Start Currency Converter
```bash
./start-currency.sh
# http://localhost:3001
```
### Run Both Simultaneously
**Terminal 1:**
```bash
./start.sh
```
**Terminal 2:**
```bash
./start-currency.sh
```
Now you have both apps running!
- Stock Market: http://localhost:3000
- Currency: http://localhost:3001
---
## π Project Structure
```
MCPAddIn/
βββ π Documentation
β βββ APPS_OVERVIEW.md β You are here!
β βββ START_HERE.md β Stock app overview
β βββ QUICKSTART.md β Stock app quick start
β βββ README.md β Stock app full docs
β βββ ARCHITECTURE.md β Technical architecture
β βββ SETUP_COMPLETE.md β Setup guide
β βββ CURRENCY_README.md β Currency app docs
β βββ CURRENCY_QUICKSTART.md β Currency quick start
β
βββ π» Source Code
β βββ src/
β β βββ server.ts β Stock market MCP server
β β βββ currency-server.ts β Currency MCP server
β βββ public/
β β βββ index.html β Stock market frontend
β βββ public-currency/
β βββ index.html β Currency frontend
β
βββ π οΈ Scripts
β βββ start.sh β Start stock app
β βββ start-currency.sh β Start currency app
β βββ ngrok.sh β Expose stock app
β βββ test-setup.sh β Verify setup
β
βββ π§ Configuration
β βββ package.json β Dependencies & scripts
β βββ tsconfig.json β TypeScript config
β βββ env.example β Environment variables
β
βββ π¦ Build Output
βββ dist/
βββ server.js β Compiled stock server
βββ currency-server.js β Compiled currency server
```
---
## π Expose with ngrok
### Stock Market App
```bash
ngrok http 3000
```
### Currency Converter
```bash
ngrok http 3001
```
---
## π API Endpoints Comparison
### Stock Market App (Port 3000)
| Endpoint | Method | Description |
|----------|--------|-------------|
| / | GET | Stock market UI |
| /mcp/tools/list | GET | List tools |
| /mcp/tools/call | POST | Call topMovers tool |
### Currency Converter (Port 3001)
| Endpoint | Method | Description |
|----------|--------|-------------|
| / | GET | Currency converter UI |
| /mcp/tools/list | GET | List tools |
| /mcp/tools/call | POST | Call currency tools |
---
## π¨ MCP Tools Summary
### Stock Market App
**Tool:** `topMovers`
```javascript
await window.openai.callTool('topMovers', { limit: 10 });
```
**Returns:**
```json
{
"top_gainers": [...],
"top_losers": [...],
"most_actively_traded": [...]
}
```
### Currency Converter
**Tool 1:** `convertCurrency`
```javascript
await window.openai.callTool('convertCurrency', {
from: 'USD',
to: 'EUR',
amount: 100
});
```
**Returns:**
```json
{
"from": "USD",
"to": "EUR",
"amount": 100,
"result": 92.50,
"rate": 0.925
}
```
**Tool 2:** `getSupportedCurrencies`
```javascript
await window.openai.callTool('getSupportedCurrencies', {});
```
**Tool 3:** `getExchangeRates`
```javascript
await window.openai.callTool('getExchangeRates', { base: 'USD' });
```
---
## π Environment Variables
### Stock Market App
```bash
export ALPHA_VANTAGE_API_KEY=your_key_here # Required
export PORT=3000 # Optional
```
### Currency Converter
```bash
export EXCHANGE_RATE_API_KEY=your_key_here # Optional
export PORT=3001 # Optional
```
---
## π οΈ Development Commands
### Build Both Apps
```bash
npm run build
```
### Development Mode
**Stock Market:**
```bash
npm run dev
```
**Currency Converter:**
```bash
npm run dev-currency
```
### Production Mode
**Stock Market:**
```bash
npm start
```
**Currency Converter:**
```bash
npm start-currency
```
---
## π― Use Cases
### Stock Market App
- Track market performance
- Monitor top gainers/losers
- Find trading opportunities
- Market research
- Financial dashboards
### Currency Converter
- Travel planning
- International business
- E-commerce pricing
- Financial calculations
- Currency exchange
---
## π App Comparison
| Feature | Stock Market | Currency |
|---------|-------------|----------|
| **API Key Required** | β
Yes | β No (optional) |
| **Free Tier** | 5 req/min | 1500 req/month |
| **Auto-load** | β
Yes | β
Yes |
| **MCP Tools** | 1 | 3 |
| **Port** | 3000 | 3001 |
| **Data Type** | Stock prices | Exchange rates |
| **Update Frequency** | On demand | Real-time |
---
## π Documentation Navigation
### For Stock Market App
1. **START_HERE.md** - Overview
2. **QUICKSTART.md** - Quick start
3. **README.md** - Full docs
4. **ARCHITECTURE.md** - Technical details
### For Currency Converter
1. **CURRENCY_QUICKSTART.md** - Quick start
2. **CURRENCY_README.md** - Full docs
### For Both Apps
1. **APPS_OVERVIEW.md** - This file!
2. **SETUP_COMPLETE.md** - Setup guide
---
## π You're All Set!
You now have TWO production-ready MCP ChatGPT Apps:
1. **Stock Market Dashboard** - Track market movers
2. **Currency Converter** - Convert 160+ currencies
Both apps:
- β
Use MCP SDK
- β
Auto-load with `window.openai.callTool()`
- β
Have beautiful responsive UIs
- β
Are fully documented
- β
Are ready to deploy
---
## π Next Steps
1. **Try the Stock App**: `./start.sh` β http://localhost:3000
2. **Try the Currency App**: `./start-currency.sh` β http://localhost:3001
3. **Run Both**: Start in separate terminals
4. **Expose with ngrok**: Share with the world!
5. **Customize**: Edit HTML/CSS to match your style
6. **Add More Tools**: Extend with additional MCP tools
---
**Happy Building! ππ±**