We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/chakradharkalle03-arch/MCP2'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
# Node.js Frontend for Semiconductor Component Search
## π Quick Start
### 1. Install Dependencies
```bash
cd frontend
npm install
```
### 2. Start Frontend Server
```bash
npm start
```
Or for development with auto-reload:
```bash
npm run dev
```
### 3. Access the UI
**Open in your browser:**
```
http://localhost:3000
```
## π Prerequisites
- **Node.js** (v14 or higher)
- **npm** (comes with Node.js)
- **Backend running** on `http://localhost:8001`
## π§ Configuration
Edit `frontend/.env` to configure:
```env
PORT=3000
BACKEND_URL=http://localhost:8001
```
## π¨ Features
- β
**Modern UI Design** - Beautiful dark theme interface
- β
**File Upload** - Drag & drop Excel files
- β
**Question Answering** - Interactive Q&A interface
- β
**Real-time Status** - Connection and collection info
- β
**Toast Notifications** - User feedback messages
- β
**Responsive Design** - Works on all devices
## π Project Structure
```
frontend/
βββ server.js # Express server (proxies to backend)
βββ package.json # Node.js dependencies
βββ .env # Configuration
βββ public/
β βββ index.html # Main UI page
β βββ styles.css # Beautiful styling
β βββ script.js # Frontend logic
βββ uploads/ # Temporary uploads (auto-cleaned)
```
## π API Endpoints
The frontend proxies these endpoints to the backend:
- `GET /api/health` - Health check
- `GET /api/info` - Collection information
- `POST /api/upload` - Upload Excel document
- `POST /api/ask` - Ask questions
## π― Usage
1. **Make sure backend is running** on port 8001
2. **Start frontend**: `npm start`
3. **Open browser**: http://localhost:3000
4. **Upload file**: Drag & drop Excel file
5. **Ask questions**: Type question or click quick buttons
6. **View answers**: See formatted answers with context
## π οΈ Development
```bash
# Install dependencies
npm install
# Start with auto-reload
npm run dev
# Start production
npm start
```
## π Notes
- Frontend runs on port 3000
- Backend should run on port 8001
- Frontend proxies all API calls to backend
- File uploads are temporarily stored and auto-cleaned