mcp-server-demo

mcp-server-demo

3.4

This MCP server connects to a desktop to scan for files and uses a resume file and a job description file to create a new LaTeX file of a resume.

The Model Context Protocol (MCP) server is designed to streamline the process of resume creation by connecting to a desktop environment, scanning for relevant files, and utilizing a resume file alongside a job description file to generate a new LaTeX formatted resume. This server automates the tedious task of resume customization, ensuring that the resume is tailored to specific job descriptions. The server is particularly useful for job seekers who frequently need to update their resumes for different job applications. By leveraging the power of LaTeX, the server ensures that the final output is professionally formatted and aesthetically pleasing. The current implementation works but may require some adjustments to enhance its functionality and user experience.

Features

  • Automated File Scanning: Connects to the desktop to identify and retrieve relevant resume and job description files.
  • LaTeX Resume Generation: Utilizes LaTeX to create a professionally formatted resume.
  • Customizable Output: Allows for modifications to tailor the resume to specific job descriptions.
  • Desktop Integration: Seamlessly integrates with desktop environments for easy file access.
  • User-Friendly Interface: Designed to be intuitive and easy to use, even for those with limited technical skills.

Usage with Different Platforms

desktop

python
import os
from latex import build_pdf

# Function to scan for files
def scan_for_files(directory):
    files = []
    for filename in os.listdir(directory):
        if filename.endswith('.txt') or filename.endswith('.docx'):
            files.append(filename)
    return files

# Function to create LaTeX resume
def create_latex_resume(resume_file, job_description_file):
    # Read files and process content
    with open(resume_file, 'r') as rf, open(job_description_file, 'r') as jf:
        resume_content = rf.read()
        job_description_content = jf.read()
    
    # LaTeX template
    latex_template = f"""
    \documentclass{{article}}
    \begin{{document}}
    {resume_content}
    \section*{{Job Description}}
    {job_description_content}
    \end{{document}}
    """
    
    # Build PDF
    pdf = build_pdf(latex_template)
    pdf.save_to('new_resume.pdf')

# Example usage
files = scan_for_files('/path/to/directory')
create_latex_resume('resume.txt', 'job_description.txt')