Build PDF features with Claude Code and DocSpring
With DocSpring's MCP server, Claude Code can work in your DocSpring account while it works in your repository. It creates a template from a PDF in your project, writes the code that fills it with one of DocSpring's API clients, and makes a test PDF to check the result.
What you can do with Claude Code
While it writes your code
- Templates from your PDFs
- Create a template from a PDF in your repository and set up its fields.
- Types for your data
- Generate types for a template's data in your project's language, for code that calls the API.
- Test PDFs to check its work
- Validate data against a template and make free test PDFs, then look at the pages to see where the data landed.
- Template changes
- Rename or move fields, see what changed since the last version, and publish a new one.
You stay in control
- You choose the access
- When you sign in, choose whether Claude Code can only read your templates and PDFs or also make changes.
- Its own connection
- Claude Code signs in with OAuth, so there's no API token to copy into your project.
- Disconnect at any time
- Each connected app is listed on the Integrations page in DocSpring, where anyone in the account can disconnect it.
Set up the Claude Code integration
Read the setup guide- Run claude mcp add --transport http --scope user docspring https://mcp.docspring.com/mcp (accounts in the EU use https://mcp-eu.docspring.com/mcp).
- Run /mcp in Claude Code, select docspring, and sign in to DocSpring.
- Ask Claude Code to work with your templates, or to write the code that fills one.
Example workflows
A new integration
Point Claude Code at a PDF form and ask for the template, typed models and the code that fills it from your data.
Fixing a template
Ask it to compare your app's data with the template's fields, rename what doesn't match and publish a new version.
Test data for every case
Have it make test PDFs from your fixtures to check long names, empty fields and every option.
Try DocSpring with Claude Code
Upload a PDF or a Word document, design a page, or write HTML, then connect Claude Code. No credit card needed.

