CVforgecvforge.Create a token →
API MCPv1.0 · spec 2025-03-26Expert Pack required

API & Integrations

Connect CVforge to Claude Desktop, n8n, Cursor and your automations via the MCP API. Resume uploads, retrieving optimizations, managing your profile — everything is accessible programmatically.

Endpoint

api.cvforge.co/mcp

Protocol

MCP · JSON-RPC 2.0

Transport

HTTP POST

Auth

PAT or OAuth2

1. Prerequisites

Access to the MCP API is included in the Expert pack.

Generate my token →

2. Authentication

CVforge supports two authentication methods. For most personal integrations (n8n, scripts, Claude Desktop), use a PAT. For third-party applications, use the OAuth 2.0 Authorization Code + PKCE flow.

2.1 Personal Access Token (PAT)

A PAT is an opaque token prefixed with mcp_pat_. It is shown only once when created — store it safely.

Usage in every request:

Authorization: Bearer mcp_pat_XXXXXXXXXXXXXXXXXXXX
Security — Never commit your token to a git repository. Use environment variables or a secrets manager (e.g. HashiCorp Vault, 1Password, n8n secrets).

2.2 OAuth 2.0 (Authorization Code + PKCE)

For applications serving multiple user accounts, use the standard OAuth 2.0 flow.

EndpointURL
Discoveryhttps://api.cvforge.co/.well-known/oauth-authorization-server
Authorizationhttps://api.cvforge.co/oauth/authorize
Token exchangehttps://api.cvforge.co/oauth/token
Revocationhttps://api.cvforge.co/oauth/revoke

2.3 Scopes

ScopeDescription
read:profileRead the profile, plan and credit balance
read:cvList, view and download resumes and generations
write:cvUpload resumes, submit job offers and launch optimizations

3. Making an MCP call

The MCP API uses the JSON-RPC 2.0 protocol over HTTP. Each request is a POST to https://api.cvforge.co/mcp.

Request format

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXXXXXXXXXXXXXXXXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "<nom_de_l_outil>",
    "arguments": { /* paramètres de l'outil */ }
  }
}

Response format (success)

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{ ...données... }"
      }
    ]
  }
}

Response format (error)

{
  "jsonrpc": "2.0",
  "id": 1,
  "error": {
    "code": -32001,
    "message": "Token invalide ou révoqué",
    "data": { "error_code": "MCP_TOKEN_INVALID" }
  }
}

4. Available tools

The API exposes 10 tools. Read tools require read:profile or read:cv. Uploads, offer submissions and optimizations require write:cv.

get_profileread:profile

Returns the account information: name, email, subscription plan.

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "get_profile", "arguments": {} }
}

Response (excerpt)

{
  "id": "uuid",
  "email": "alice@example.com",
  "full_name": "Alice Martin",
  "subscription_plan": "Expert",
  "subscription_status": "active"
}
get_creditsread:profile

Returns the detailed credit balance (subscription, paid, free).

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "get_credits", "arguments": {} }
}

Response (excerpt)

{
  "total": 7,
  "subscription_credits": 5,
  "paid_credits": 2,
  "free_credits": 0
}
list_cvsread:cv

Lists the uploaded resume profiles (without the content).

Parameters

NameTypeDescription
limitinteger?Max number (default: 20, max: 50)
offsetinteger?Pagination (default: 0)

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "list_cvs", "arguments": { "limit": 10, "offset": 0 } }
}

Response (excerpt)

{
  "cvs": [
    {
      "id": "uuid",
      "original_filename": "CV_Alice_2026.pdf",
      "created_at": "2026-04-10T14:30:00Z",
      "generation_count": 3
    }
  ],
  "total": 1
}
get_cvread:cv

Returns the full content (extracted text) of a resume.

Parameters

NameTypeDescription
cv_idstringUUID of the resume profile

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "get_cv", "arguments": { "cv_id": "uuid" } }
}

Response (excerpt)

{
  "id": "uuid",
  "original_filename": "CV_Alice_2026.pdf",
  "extracted_text": "Alice Martin — Product Manager...",
  "created_at": "2026-04-10T14:30:00Z"
}
upload_cvwrite:cv

Uploads a resume in base64. Accepted formats: PDF, DOCX (max 10 MB). Returns the cv_profile_id to use with optimize_cv.

Parameters

NameTypeDescription
filenamestringFile name (with extension)
file_base64stringFile content encoded in base64
mime_typestringapplication/pdf | application/vnd.openxmlformats-officedocument.wordprocessingml.document

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "upload_cv", "arguments": {
  "filename": "mon_cv.pdf",
  "file_base64": "JVBERi0xLjQ...",
  "mime_type": "application/pdf"
} }
}

Response (excerpt)

{
  "cv_profile_id": "uuid",
  "message": "CV uploaded and parsed successfully."
}
submit_offerwrite:cv

Submits a job offer URL (LinkedIn, Indeed, WTTJ, etc.) for scraping and storage. Returns the offer_id to use with optimize_cv. Limit: 5 calls/min. Supported sites: LinkedIn, Indeed, WTTJ, France Travail, HelloWork, APEC, Cadremploi, Glassdoor, Meteojob, LeBonCoin, JobTeaser, Collective Work.

Parameters

NameTypeDescription
offer_urlstringFull URL of the job offer

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "submit_offer", "arguments": {
  "offer_url": "https://www.linkedin.com/jobs/view/1234567890/"
} }
}

Response (excerpt)

{
  "offer_id": "uuid",
  "offer_url": "https://www.linkedin.com/jobs/view/1234567890/",
  "job_title": "Product Manager Senior",
  "company_name": "Acme Corp"
}
optimize_cvwrite:cv

Launches the AI optimization of a resume for a job offer. Consumes 1 credit. The operation is asynchronous: use get_generation to track progress (pending → processing → completed/failed).

Parameters

NameTypeDescription
cv_profile_idstringUUID of the resume profile (obtained via upload_cv or list_cvs)
offer_idstringUUID of the job offer (obtained via submit_offer)

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "optimize_cv", "arguments": {
  "cv_profile_id": "uuid-du-cv",
  "offer_id": "uuid-de-l-offre"
} }
}

Response (excerpt)

{
  "generation_id": "uuid",
  "status": "processing",
  "message": "CV optimization started"
}
list_generationsread:cv

Lists the generated optimized resumes, with their status and ATS scores.

Parameters

NameTypeDescription
limitinteger?Max number (default: 20, max: 100)
offsetinteger?Pagination (default: 0)

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "list_generations", "arguments": { "limit": 5 } }
}

Response (excerpt)

{
  "generations": [
    {
      "id": "uuid",
      "cv_id": "uuid",
      "job_title": "Product Manager Senior",
      "ats_score": 87,
      "status": "completed",
      "created_at": "2026-04-11T09:00:00Z"
    }
  ],
  "total": 1
}
get_generationread:cv

Returns the details of a generation: analysis, optimized text, score.

Parameters

NameTypeDescription
generation_idstringUUID of the generation

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "get_generation", "arguments": { "generation_id": "uuid" } }
}

Response (excerpt)

{
  "id": "uuid",
  "job_title": "Product Manager Senior",
  "ats_score": 87,
  "optimized_text": "Alice Martin — Product Manager Senior...",
  "analysis": { "missing_keywords": ["OKR", "roadmap"], "strengths": [...] },
  "status": "completed",
  "created_at": "2026-04-11T09:00:00Z"
}
download_generationread:cv

Downloads the final PDF of a generation in base64.

Parameters

NameTypeDescription
generation_idstringUUID of the generation

Example call

POST https://api.cvforge.co/mcp
Content-Type: application/json
Authorization: Bearer mcp_pat_XXXX

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": { "name": "download_generation", "arguments": { "generation_id": "uuid" } }
}

Response (excerpt)

{
  "filename": "CV_Alice_PM_Senior.pdf",
  "content_b64": "JVBERi0xLjQ...",
  "mime_type": "application/pdf",
  "size_bytes": 124580
}

5. Integration examples

5.1 Full flow: upload → offer → optimization → download

Python example illustrating the complete journey in 4 steps.

import requests, base64, time, json, os

PAT     = os.environ["CVFORGE_PAT"]
MCP     = "https://api.cvforge.co/mcp"
HEADERS = {"Content-Type": "application/json", "Authorization": f"Bearer {PAT}"}

def mcp(tool: str, args: dict = {}):
    r = requests.post(MCP, json={
        "jsonrpc": "2.0", "id": 1, "method": "tools/call",
        "params": {"name": tool, "arguments": args}
    }, headers=HEADERS, timeout=60)
    r.raise_for_status()
    data = r.json()
    if "error" in data:
        raise RuntimeError(data["error"]["message"])
    return json.loads(data["result"]["content"][0]["text"])

# Étape 1 — Upload du CV
with open("mon_cv.pdf", "rb") as f:
    b64 = base64.b64encode(f.read()).decode()

cv = mcp("upload_cv", {
    "filename": "mon_cv.pdf",
    "file_base64": b64,
    "mime_type": "application/pdf",
})
cv_id = cv["cv_profile_id"]
print(f"CV uploadé : {cv_id}")

# Étape 2 — Soumission de l'offre
offer = mcp("submit_offer", {
    "offer_url": "https://www.linkedin.com/jobs/view/1234567890/"
})
offer_id = offer["offer_id"]
print(f"Offre : {offer['job_title']} @ {offer['company_name']} ({offer_id})")

# Étape 3 — Lancement de l'optimisation (1 crédit consommé)
gen = mcp("optimize_cv", {"cv_profile_id": cv_id, "offer_id": offer_id})
gen_id = gen["generation_id"]
print(f"Génération démarrée : {gen_id}")

# Étape 4 — Attente + téléchargement
for _ in range(20):
    time.sleep(5)
    details = mcp("get_generation", {"generation_id": gen_id})
    print(f"  statut : {details['status']}")
    if details["status"] == "completed":
        dl = mcp("download_generation", {"generation_id": gen_id})
        print(f"Téléchargement : {dl['download_url']} (valide 15 min)")
        break
    if details["status"] == "failed":
        raise RuntimeError("Optimisation échouée")

5.2 curl

# Remplacez YOUR_PAT par votre Personal Access Token
export PAT="mcp_pat_XXXXXXXXXXXXXXXXXXXX"

# Récupérer le profil
curl -X POST https://api.cvforge.co/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $PAT" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_profile","arguments":{}}}'

# Vérifier le solde de crédits
curl -X POST https://api.cvforge.co/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $PAT" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"get_credits","arguments":{}}}'

5.3 Claude Desktop / Claude.ai

Add the following block to your Claude Desktop configuration file (~/Library/Application Support/Claude/claude_desktop_config.json on macOS).

{
  "mcpServers": {
    "cvforge": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://api.cvforge.co/mcp",
        "--header",
        "Authorization: Bearer mcp_pat_XXXXXXXXXXXXXXXXXXXX"
      ]
    }
  }
}

Once restarted, Claude will have access to the CVforge tools directly in the conversation. Say for example: "List my resumes on CVforge" or "Upload the file MyResume.pdf to CVforge".

5.4 n8n — HTTP Request node

In n8n, create an HTTP Request node with the following parameters:

MethodPOST
URLhttps://api.cvforge.co/mcp
AuthenticationHeader Auth · Name: Authorization · Value: Bearer mcp_pat_XXX
Content-Typeapplication/json
Body (JSON){ "jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": { "name": "list_cvs", "arguments": {} } }

The JSON result is available in the next node via {{ $json.result.content[0].text }}. Parse it with a Set or Function node to extract the fields.

5.5 Cursor / Windsurf

In .cursor/mcp.json (or the equivalent for Windsurf):

{
  "mcpServers": {
    "cvforge": {
      "url": "https://api.cvforge.co/mcp",
      "headers": {
        "Authorization": "Bearer mcp_pat_XXXXXXXXXXXXXXXXXXXX"
      }
    }
  }
}

6. Error codes

error_codeJSON-RPC codeDescription
MCP_TOKEN_INVALID-32001Token missing, malformed or revoked
MCP_TOKEN_EXPIRED-32001Token expired — generate a new one in Settings
MCP_SUBSCRIPTION_REQUIRED-32003Expert plan required — see /pricing
MCP_SCOPE_INSUFFICIENT-32004Token does not have the required scope
MCP_TOOL_NOT_FOUND-32601Unknown tool
MCP_INVALID_PARAMS-32602Invalid or missing parameters
MCP_INTERNAL_ERROR-32603Internal error — retry or contact support
PARSE_ERROR-32700Invalid JSON in the request
INVALID_REQUEST-32600Invalid JSON-RPC structure

7. Limits & best practices

Rate limiting

LimitValue
Requests per minute (per IP)60 req/min
submit_offer (per user)5 req/min
Max size of an uploaded file10 MB
Accepted resume formatsPDF, DOCX
Simultaneously active PAT tokens10 per account

If exceeded, the API returns an HTTP 429 with the Retry-After header. Implement exponential backoff in your automations.

Best practices

Discoverability

CVforge publishes an MCP manifest readable by LLMs and search engines:

Ready to integrate CVforge?

Create your first token in 30 seconds from the Settings.