#!/bin/zsh
# Colors for terminal output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
echo "${BLUE}đą Starting MCP Currency Converter App${NC}\n"
# Check if API key is set (optional for this app)
if [ -z "$EXCHANGE_RATE_API_KEY" ]; then
echo "${YELLOW}âšī¸ Using free API (no key required)${NC}"
echo "${YELLOW} Free tier: 1500 requests/month${NC}"
echo "${YELLOW} Get unlimited access at: https://www.exchangerate-api.com/${NC}\n"
fi
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "${YELLOW}đĻ Installing dependencies...${NC}"
npm install
if [ $? -ne 0 ]; then
echo "${RED}â Failed to install dependencies${NC}"
exit 1
fi
echo "${GREEN}â Dependencies installed${NC}\n"
fi
# Build if dist doesn't exist or currency-server.js is missing
if [ ! -f "dist/currency-server.js" ]; then
echo "${YELLOW}đ¨ Building TypeScript...${NC}"
npm run build
if [ $? -ne 0 ]; then
echo "${RED}â Build failed${NC}"
exit 1
fi
echo "${GREEN}â Build successful${NC}\n"
fi
# Start the server
echo "${GREEN}đ Starting Currency Converter on http://localhost:3001${NC}"
echo "${BLUE}đĄ Tip: Open another terminal and run 'ngrok http 3001' to expose via ngrok${NC}\n"
node dist/currency-server.js
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