vikashkuma/portfolio-builder-mcp-server
If you are the rightful owner of portfolio-builder-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This document provides a comprehensive guide to setting up and running an AI server for a portfolio builder using the Model Context Protocol (MCP) technology.
š¤ AI Server for Portfolio Builder - Simple Setup Guide
This is the AI server that powers your portfolio builder. It runs locally on your computer and provides AI suggestions without any external costs!
šÆ What This Does
- Generates professional content for your portfolio sections
- Runs completely locally - no internet needed after setup
- Completely free - no API costs or subscriptions
- Privacy-focused - all data stays on your computer
- Multiple AI models - choose what works best for you
š Super Quick Start (3 Steps)
Step 1: Install Dependencies
# Run this command in the mcp-server folder
npm install
Step 2: Run Setup Script
# This will set everything up automatically
./setup.sh
Step 3: Start the Server
# Start the AI server
npm run start:http
That's it! The server will be running on http://localhost:3002
š Detailed Setup (For Beginners)
What You Need
- Node.js: Download from nodejs.org (choose "LTS" version)
- At least 4GB RAM on your computer
- About 5GB free disk space for AI models
Step-by-Step Instructions
1. Install Node.js
- Go to nodejs.org
- Click the big green "LTS" button to download
- Run the installer and click "Next" through all steps
- Restart your computer after installation
2. Open Terminal/Command Prompt
- Mac: Press
Cmd + Space
, type "Terminal", press Enter - Windows: Press
Win + R
, type "cmd", press Enter - Linux: Press
Ctrl + Alt + T
3. Navigate to the AI Server Folder
# If you're in the main portfolio-builder folder:
cd mcp-server
# You should see files like package.json, setup.sh, etc.
ls
4. Install Dependencies
npm install
Wait for this to finish - you'll see a progress bar and lots of text.
5. Run the Setup Script
./setup.sh
This will:
- ā Check if Node.js is installed
- ā Install AI dependencies
- ā Download AI models (this takes 10-15 minutes)
- ā Create configuration files
- ā Test everything works
6. Start the Server
npm run start:http
You should see:
MCP HTTP Server running on port 3002
Health check: http://localhost:3002/health
Generate content: http://localhost:3002/generate
Available models: http://localhost:3002/models
Keep this terminal window open! The server needs to keep running.
š® How to Use
Starting the Server
# Quick start
npm run start:http
# Development mode (auto-restarts when you make changes)
npm run dev
Stopping the Server
- Press
Ctrl + C
in the terminal where the server is running - Or close the terminal window
Checking if Server is Working
# Test the server
curl http://localhost:3002/health
# Should return something like:
# {"status":"ok","model":{"name":"llama2","provider":"ollama"}}
š¤ AI Models Explained
š¦ Ollama (Recommended)
- What it is: AI that runs on your computer
- Cost: Completely free
- Speed: Fast (no internet needed)
- Privacy: All data stays on your computer
- Setup: One-time download (about 4GB)
š Mock Model
- What it is: Pre-written professional responses
- Cost: Free
- Speed: Instant
- Setup: No setup needed
- Use case: Testing and development
š¤ OpenAI
- What it is: Cloud-based AI (like ChatGPT)
- Cost: ~$0.002 per 1,000 words
- Speed: Depends on internet
- Setup: Requires API key
- Use case: If you want the highest quality
š§ Troubleshooting
"Command not found: npm"
Solution: Install Node.js from nodejs.org
"Permission denied: ./setup.sh"
Solution:
chmod +x setup.sh
./setup.sh
"Port 3002 is already in use"
Solution:
# Find what's using the port
lsof -i :3002
# Kill the process (replace XXXX with the number you see)
kill -9 XXXX
"Ollama not available"
Solution:
- Install Ollama: ollama.ai
- Start Ollama:
ollama serve
- Download model:
ollama pull llama2
"Server won't start"
Solution:
- Check if you're in the right folder:
ls
should showpackage.json
- Try:
npm install
again - Check the error message and look it up online
"AI generation not working"
Solution:
- Make sure server is running:
curl http://localhost:3002/health
- Check the AI Model Status panel in your portfolio builder
- Try switching to a different model
- Restart the server:
Ctrl + C
, thennpm run start:http
š What Each File Does
mcp-server/
āāā package.json # Lists all the software needed
āāā setup.sh # Automated setup script
āāā src/
ā āāā http-server.ts # The main server file
ā āāā models/ # Different AI models
ā ā āāā ollama.ts # Local AI model
ā ā āāā mock.ts # Pre-written responses
ā ā āāā openai.ts # Cloud AI model
ā āāā prompts.ts # Templates for AI requests
āāā README.md # This file
šÆ Tips for Best Performance
For Faster AI Responses
- Use Ollama: It's faster than cloud APIs
- Close other apps: Free up RAM for AI models
- Use smaller models:
llama2:7b
is faster thanllama2
For Better AI Suggestions
- Be specific: "React Developer" instead of "Developer"
- Include context: Mention your experience level
- Use keywords: Include relevant technologies
š Getting Help
Common Questions
Q: Do I need to understand AI to use this? A: No! The setup script handles everything automatically.
Q: What if the setup script fails? A: Check the error message and try the manual setup steps above.
Q: Can I use this without internet? A: Yes! Once set up, everything works offline.
Q: Is this safe to use? A: Yes! All AI processing happens on your computer, no data is sent anywhere.
Q: What if I get an error? A: Check the troubleshooting section above, or restart the server.
Debug Mode
# Start server with detailed logs
DEBUG=* npm run dev
Check Server Status
# Test if server is working
curl http://localhost:3002/health
# Check available models
curl http://localhost:3002/models
š Success!
When everything is working, you should see:
- ā Server running on port 3002
- ā AI models available
- ā Portfolio builder can connect to the server
- ā AI generation working in your portfolio builder
Your AI server is now ready to help create amazing portfolios! š
This AI server is designed to be simple and reliable. If you follow the steps above, it should work perfectly!