# š¤ MCP Website Chatbot - Quick Start Guide
Welcome! Your production-grade website chatbot application is ready. Here's how to get started:
## š What's Included
Your app has been built with these files:
```
āāā server.js ā Express backend with chat API
āāā public/index.html ā Beautiful chat UI
āāā mcp-client.js ā MCP tool integration module
āāā system_prompt.txt ā AI system prompt
āāā package.json ā Dependencies
āāā .env.example ā Environment template
āāā README.md ā Full documentation
āāā Dockerfile ā Docker containerization
āāā docker-compose.yml ā Docker Compose setup
āāā setup.sh ā Auto-setup script
```
## š Quick Start (3 Steps)
### Step 1: Install Dependencies
```bash
cd /Users/srinivasanramanujam/Documents/AgenticAI/MCPserverForwebsite
npm install
```
### Step 2: Start the Server
```bash
npm run dev
```
You should see:
```
š¤ MCP Chatbot Server running on http://localhost:3000
š± Frontend: http://localhost:3000
š¬ Chat API: POST http://localhost:3000/api/chat
```
### Step 3: Open in Browser
Visit: **http://localhost:3000**
## š¬ Try It Out
Test the chatbot with these queries:
- "Hello!" ā Gets a welcome message
- "What is srinivasanramanujam.sbs?" ā Learns about the site
- "What's the latest news?" ā Triggers live data fetching (with MCP)
- "Can you check the current status?" ā Demonstrates real-time verification
## š§ Configuration
### Update API Keys (Production)
Edit `.env`:
```bash
cp .env.example .env
# Add your OpenAI/Claude API key
OPENAI_API_KEY=sk-...
```
### Customize System Prompt
Edit `system_prompt.txt` to change chatbot behavior, voice, or knowledge.
### Update Website Info
In `server.js`, modify:
```javascript
WEBSITE_NAME: 'srinivasanramanujam.sbs'
WEBSITE_URL: 'https://srinivasanramanujam.sbs'
```
## š Deployment Options
### **Vercel (Easiest ā Recommended)**
```bash
npm install -g vercel
vercel
```
Follow the prompts to deploy instantly.
### **Docker (Any Cloud)**
```bash
# Build image
docker build -t mcp-chatbot .
# Run container
docker run -p 3000:3000 mcp-chatbot
# Or use Docker Compose
docker-compose up
```
### **Heroku**
```bash
heroku create your-app-name
git push heroku main
```
## š API Endpoints
### Send a Chat Message
```bash
curl -X POST http://localhost:3000/api/chat \
-H "Content-Type: application/json" \
-d '{"message":"Hello!"}'
```
### Check Server Health
```bash
curl http://localhost:3000/api/health
```
### Get System Prompt
```bash
curl http://localhost:3000/api/system-prompt
```
## š Key Features
ā
**Live Data Integration** ā MCP tools for real-time retrieval
ā
**Hallucination Prevention** ā Strict guardrails against misinformation
ā
**Beautiful UI** ā Modern, responsive chat interface
ā
**Production-Ready** ā Error handling, health checks, logging
ā
**Easy to Customize** ā Change prompts, add APIs, modify UI
ā
**Containerized** ā Dockerfile for easy deployment
## š Security Highlights
- ā
System prompt not exposed to users
- ā
Input validation and sanitization
- ā
No secrets in version control (.gitignore setup)
- ā
Rate limiting ready (add middleware as needed)
- ā
Error messages don't leak internal details
## šÆ Next Steps
1. **Test locally** ā Run `npm run dev` and chat
2. **Integrate real API** ā Add OpenAI/Claude API key to `.env`
3. **Connect MCP server** ā Point to your actual MCP server in `server.js`
4. **Customize appearance** ā Edit CSS in `public/index.html`
5. **Deploy** ā Use Vercel, Docker, or your preferred host
6. **Monitor** ā Check health endpoint and error logs regularly
## š Documentation
- **Full README**: See `README.md` for detailed setup & API docs
- **System Prompt**: See `system_prompt.txt` for chatbot behavior rules
- **MCP Client**: See `mcp-client.js` for tool integration details
## š Troubleshooting
**Port 3000 already in use?**
```bash
npm run dev -- --port 3001
```
**Dependencies not installing?**
```bash
rm -rf node_modules package-lock.json
npm install
```
**Module errors?**
```bash
npm install
npm run dev
```
## š” Pro Tips
1. **Add rate limiting** ā Install `express-rate-limit` package
2. **Add CORS** ā Use `cors` package for cross-origin requests
3. **Add logging** ā Use `winston` for structured logging
4. **Add database** ā Store conversations with MongoDB/PostgreSQL
5. **Add authentication** ā Protect sensitive endpoints
## š Support & Questions
- Check `README.md` for comprehensive documentation
- Review system prompt in `system_prompt.txt`
- Examine `server.js` for implementation details
---
**Happy chatting! š**
Your chatbot is ready to serve srinivasanramanujam.sbs with intelligence and accuracy.