An MCP server that takes your CV PDF as input and behaves like your digital twin, answering questions about you based on your CV content.
- Single Tool Interface: One simple
chat_with_metool handles everything - Automatic CV Loading: CV is loaded automatically on first use
- AI-Powered Digital Twin: Uses OpenAI GPT models to answer questions naturally and conversationally
- Intelligent Q&A: Ask about work experience, skills, education, contact info, and more
- Install dependencies:
pip install -r requirements.txt- Set up your OpenAI API key:
export OPENAI_API_KEY='your-api-key-here'Or create a .env file:
OPENAI_API_KEY=your-api-key-here
The server provides a single tool:
chat_with_me: Chat with your digital twin based on your CV
- Parameters:
message(required): Your message or questioncv_path(optional): Path to your CV PDF file (only needed on first call)
- Examples:
- First call:
chat_with_me("Tell me about yourself", cv_path="path/to/my_cv.pdf") - Subsequent calls:
chat_with_me("What is your work experience?") chat_with_me("What are your skills?")chat_with_me("How can I contact you?")
- First call:
You can also test the server locally:
python cv_digital_twin.py path/to/your_cv.pdfThe digital twin can answer questions like:
- "What is your work experience?"
- "What are your skills?"
- "Tell me about your education"
- "What technologies do you know?"
- "How can I contact you?"
- "Tell me about yourself"
cv_digital_twin.py- Main CV Digital Twin MCP serverecho.py- Original echo server example (for reference)requirements.txt- Python dependencies
fastmcp- FastMCP frameworkopenai- OpenAI API client for AI-powered responsespdfplumber- PDF text extraction (preferred)PyPDF2- Alternative PDF library (fallback)
The server uses OpenAI's GPT models to generate responses.
- Default:
gpt-4o-mini(cost-efficient) - Can be changed via environment variable:
export OPENAI_MODEL="gpt-4o"
gpt-4o-mini- Fast and cost-efficient (default)gpt-4o- More capable, higher costgpt-4- Legacy GPT-4gpt-3.5-turbo- Fast and economicalgpt-4-turbo- Enhanced GPT-4
Note: You'll need an OpenAI API key. Get one at https://platform.openai.com/api-keys
This repository is ready to be deployed!
- Create a new FastMCP Cloud account
- Connect your GitHub account
- Select
Clone our templateand a deployment will be created for you!
This repository was created from the FastMCP quickstart template and extended with CV Digital Twin functionality.