cv-tailor-mcp

cv-tailor-mcp

Enables users to tailor a one-page LaTeX CV to a job posting by fetching relevant facts from a YAML file, rendering a LaTeX document from id-based selections, and compiling it to PDF, without wasting tokens on repetitive CV reads or compiler logs.

Category
访问服务器

README

cv-tailor-mcp

An MCP server that tailors a one-page LaTeX CV to a specific job posting without burning tokens on repetitive work: re-reading your whole CV source, writing the same LaTeX boilerplate over and over, or pasting pdflatex compiler logs into the chat.

It works identically from Claude Code and Cursor (or any other MCP-compliant client) -- MCP is an open protocol, so the same server binary is just registered in each client's own config file.

This repo contains no personal data. You keep your own cv_facts.yaml (your real experience/projects/skills) in your own private repo, and point this server at it via environment variables. See examples/cv_facts.example.yaml for a fictional but complete example, and docs/SCHEMA.md for the full schema.

What it does

Instead of:

  1. Reading your entire CV source file into the model's context every time,
  2. reading a previous tailored variant as a style reference,
  3. having the model write ~150-250 lines of near-identical LaTeX by hand, and
  4. pasting compiler output into the chat 3-5 times while manually tightening spacing to fit one page...

...you get 5 small tool calls:

Tool Purpose
list_tags Discover the tags in your cv_facts.yaml
get_facts(tags=[...]) Get only the relevant slice of your experience/projects/skills
list_variants See CVs you've already generated (tagline, tags) without re-reading each file
render_cv(payload) Generate cv_<variant>.tex from bullet/project/skill-group ids -- never fabricates, errors on unknown ids
compile_cv(variant) Run pdflatex, get back {success, pages, first_error}, auto-cleans .aux/.log/etc.

There's no automatic "shrink until it fits one page" tool in v1 -- if compile_cv reports 2 pages, call render_cv again with spacing_profile: "compact" or "tight" (see docs/SCHEMA.md).

Install

Requires Python 3.10+ and a LaTeX distribution (pdflatex on your PATH, or set PDFLATEX_PATH explicitly).

git clone https://github.com/<you>/cv-tailor-mcp.git
cd cv-tailor-mcp
./setup.sh

This creates a local .venv/ and installs the server into it.

Set up your own CV data

  1. Copy the example somewhere outside this repo (e.g. into your own private CV repo) and fill it in with your real information:
    cp examples/cv_facts.example.yaml ~/my-cv/cv_facts.yaml
    
  2. Edit it -- see docs/SCHEMA.md for the full field reference. Only put things that are actually true; the point of render_cv's id-based lookup is that it can't fabricate content that isn't in this file.

Register the server

Both Claude Code and Cursor read the same shape of config -- just a different file path:

Claude Code -- .mcp.json in your project root (or ~/.claude.json for a user-wide server):

{
  "mcpServers": {
    "cv-tailor": {
      "command": "/absolute/path/to/cv-tailor-mcp/.venv/bin/python",
      "args": ["/absolute/path/to/cv-tailor-mcp/server.py"],
      "env": {
        "CV_FACTS_PATH": "/absolute/path/to/your/cv_facts.yaml",
        "CV_OUTPUT_DIR": "/absolute/path/to/where/you/want/generated/cvs"
      }
    }
  }
}

Cursor -- the same mcpServers block in .cursor/mcp.json (project) or ~/.cursor/mcp.json (global).

Environment variables

Variable Required Default
CV_FACTS_PATH yes --
CV_OUTPUT_DIR yes --
CV_TEMPLATE_PATH no bundled templates/default_cv_template.tex.j2
PDFLATEX_PATH no resolved via PATH (shutil.which("pdflatex"))

The server fails fast with a clear message on startup if a required variable is missing or points at something that doesn't exist -- it never silently falls back to guessing.

Example session

> list_tags
{"tags": [{"name": "backend", "experience": 1, "projects": 1, ...}, ...]}

> get_facts(tags=["backend", "cloud"])
{... only the entries/bullets tagged backend or cloud ...}

> render_cv({
    "variant": "acme",
    "tagline": "Backend Engineering Intern Candidate",
    "summary": "...",
    "skill_group_ids": ["languages", "backend_cloud"],
    "experience": [{"id": "acme_backend_intern", "bullet_ids": ["acme_api_bullet", "acme_pipeline_bullet"]}],
    "projects": [{"id": "proj_taskflow", "bullet_ids": ["taskflow_realtime_bullet"]}]
  })
{"tex_path": ".../cv_acme.tex", "line_count": 118, "spacing_profile": "default"}

> compile_cv("acme")
{"success": true, "pages": 1, "first_error": null}

Bring your own template

If the bundled one-page style doesn't match yours, write your own .tex.j2 (Jinja2, using << >> for variables and <% %> for blocks/loops instead of the default {{ }}/{% %}, since LaTeX already uses {/}) and point CV_TEMPLATE_PATH at it. It must accept the same context documented in docs/SCHEMA.md -- see templates/default_cv_template.tex.j2 for a working reference.

Scope / non-goals for v1

  • No auto-fit-to-one-page spacing tool -- three manual spacing_profile presets instead (see above).
  • cv_facts.yaml is a second source of truth: if your real experience changes, update it yourself. Nothing syncs it from anywhere automatically.
  • compile_cv only confirms the page count pdflatex reports -- it doesn't check whether the result looks good. Open the PDF yourself before you send it anywhere.

License

MIT, see LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选