@mseep/mcp-cv-server
v1.0.0
Published
MCP server for CV chat and email notifications
Downloads
167
Maintainers
Readme
MCP CV Backend
A Model Context Protocol (MCP) server for CV data and email functionality, now available as both an MCP server and a REST API.
Features
- 📄 CV data parsing from PDF
- 🔍 Search functionality across CV content
- 📧 Email notifications via Gmail SMTP
- 🌐 REST API endpoints for web integration
- 🛠 MCP tools for AI assistant integration
Quick Start
Local Development
Install dependencies:
npm installSet up environment variables in
.env:[email protected] GMAIL_PASS=your-app-password MCP_SERVER_PORT=3001 DEBUG=trueStart the web server:
npm startOr start the MCP server:
npm run start:mcp
Deployment Options
Option 1: Railway (Recommended - Free & Simple)
Railway is perfect for Node.js applications and offers free hosting:
Push to GitHub (if not already done):
git add . git commit -m "Add web server and deployment config" git push origin mainDeploy to Railway:
- Go to railway.app
- Sign up/login with GitHub
- Click "New Project" → "Deploy from GitHub repo"
- Select your
mcp-cv-backendrepository - Railway will automatically detect the Dockerfile and deploy
Set Environment Variables in Railway dashboard:
GMAIL_USER: Your Gmail addressGMAIL_PASS: Your Gmail app passwordPORT: 3001 (Railway will set this automatically)
Your API will be available at:
https://your-app-name.railway.app
Option 2: Render (Alternative Free Option)
- Go to render.com
- Connect your GitHub repository
- Choose "Web Service"
- Use these settings:
- Build Command:
npm install - Start Command:
npm start - Environment: Add your environment variables
- Build Command:
Option 3: Vercel (For serverless deployment)
- Install Vercel CLI:
npm i -g vercel - Deploy:
vercel --prod - Set environment variables in Vercel dashboard
API Endpoints
Once deployed, your backend will have these endpoints:
GET /- Server info and statusGET /health- Health checkGET /api/personal- Get personal informationGET /api/experience- Get work experienceGET /api/education- Get education detailsGET /api/skills- Get skills listPOST /api/search- Search CV contentPOST /api/email- Send email notification
Frontend Integration
Update your frontend to use the deployed backend URL:
const API_BASE_URL = 'https://your-app-name.railway.app';
// Example API call
const response = await fetch(`${API_BASE_URL}/api/personal`);
const data = await response.json();Environment Variables
Required environment variables:
GMAIL_USER- Your Gmail addressGMAIL_PASS- Gmail app password (not your regular password)PORT- Port number (set automatically by most platforms)DEBUG- Set totruefor development
Security Notes
- Never commit your
.envfile - Use Gmail App Passwords, not regular passwords
- The backend is configured for CORS with your frontend domain
Testing
Run tests with:
npm testSupport
If you encounter issues:
- Check the deployment logs
- Verify environment variables are set correctly
- Ensure your Gmail app password is working
- Test the health endpoint:
GET /health
