Pritset MCP server
The Pritset Model Context Protocol (MCP) server lets an assistant use the Word templates in your Pritset account. Start by asking for your usage or searching for a template. When you need a PDF, your assistant can fill that template with JSON and send the result to your application.
Connect your client
- In an MCP client that supports remote servers and OAuth, add a server named
pritset. Choose Streamable HTTP and enterhttps://mcp.pritset.com/mcp. - Sign in with your verified Pritset account in the browser. If your client requests a scope, enter
mcp:tools. Clients that require a preconfigured OAuth client ID should use the public client ID registered for their redirect URI. - Ask “Show my Pritset usage this month.” This calls
get_statisticsand returns the request count for the current UTC calendar month. Clients that support MCP Apps can also display a dashboard with the last 12 hours, six months of usage, and the three most-used templates this calendar year.
If you see Token expired, sign in again through the client's OAuth flow and repeat the usage request.
Generate a PDF from a Word template
For a small first test, create a Word document containing Delivery note: {{title}} and save it as delivery-note.docx. Give your assistant access to that file in your MCP client, then ask:
Upload delivery-note.docx to Pritset as “Delivery note demo” and show me the template ID and fields.
The assistant can call create_template and then get_template to confirm that Pritset recognized the title field. If you already have a template, use list_templates to find its ID and skip the upload.
To deliver a PDF to your application, call generate_pdf_webhook with the following arguments. Replace the template ID and callback URL with your own. The dataJson argument is a string containing a JSON object.
{
"id": "YOUR_TEMPLATE_ID",
"dataJson": "{\"title\":\"Order 1042\"}",
"callbackUrl": "https://your-app.example/webhooks/pritset"
}
The tool returns a request ID when Pritset queues the job. Your endpoint receives the PDF in a multipart POST field named data, with the same request ID in the id query parameter. To confirm delivery, match that ID on the incoming POST.
For generation on the MCP server itself, call generate_pdf with the same id and dataJson. It returns the file size in bytes and an absolute path on the server. To download a PDF directly in your own application, use the REST API's direct response.
Tool reference
| Tool | Arguments | Result |
|---|---|---|
list_templates | Optional query, page (starts at 1), and pageSize (1–100) | Matching templates in your account and the total match count |
get_template | id | Template metadata, detected fields, and file details |
create_template | name, fileName, fileBase64, optional tags | New template ID and metadata |
edit_template | id, desired name and tags, optional fileName and fileBase64 | Updated template metadata |
generate_pdf | id, dataJson | Server-side PDF path and byte count |
generate_pdf_webhook | id, dataJson, callbackUrl | Request ID for asynchronous delivery |
get_balance | {} | Current account balance |
get_statistics | {} | Usage summary and structured dashboard data |
For uploads, choose a unique template name of at least four characters. Supply a bare filename ending in lowercase .docx or .doc and the file's plain base64 encoding. The decoded file limit is 5,000 KiB. Separate tags with commas. To edit metadata only, omit both file arguments. To replace the Word document, supply both. An empty tags string clears the tags.
Both PDF generation tools use your account's processing quota. You can find the current generation rates on the Pritset homepage.