PDF MCP server: let an AI query the tables in your PDFs
A PDF MCP server gives an AI app tools to work with a PDF without pasting it into the chat. This page is for people whose PDFs are mostly tables, such as bank statements and reports: Fileshape pulls those tables out, lets you mask personal details first, and serves them to Claude, ChatGPT or Cursor as data they can filter and total.
The short answer
It depends on whether you need the words or the numbers. If you want a summary of a contract, you probably don't need a server, because Claude and ChatGPT read PDFs you attach (Claude takes up to 1,000 pages, see the upload limits).
Numbers are where attaching falls down. A statement PDF is a table chopped into pages, with the header repeated, totals carried forward and amounts written as text. Ask a chat for "total debits in March" across forty pages and it has to read all of it and add in its head, which is how you get a confident wrong answer. That's the job a table-aware server is for.
What Fileshape does with a PDF
When you add a PDF on your files page, Fileshape reads the text and its positions, rebuilds the tables, and types the columns so that dates are dates and "₹1,23,456.00" is a number. If the PDF holds several tables, each becomes its own file. The feature is marked beta, since PDF layouts vary a lot.
Your AI app then connects to one URL:
https://mcp.fileshape.app/mcp
and gets tools to list the files, describe columns, fetch, search and filter rows, and aggregate by day, month, quarter or year. Totals are computed over every row on the server, and each row carries its position so you can check an answer against the page.
Mask first, then connect
PDF statements carry more personal detail than a CSV export does: your name and address in the header, the account number on every page, and names and UPI IDs inside the narrations.
Fileshape looks for these before anything is stored. It lists what it found, such as emails, phone numbers, account and card numbers, PAN and Aadhaar numbers and names after a label, and you choose to share, mask or hide each one. A masked value is replaced everywhere it appears, including inside table cells. For closer control, Review and mask opens the text line by line so you can select anything else. Only the tables are added, with those values already taken out, and the PDF itself isn't uploaded.
If you just want a clean copy to send to someone, the mask editor does the same without an account and gives you a masked PDF back. I wrote more about that in how to redact a PDF.
How to set it up
The whole flow:
- 1. Go to your files page and add the PDF. If it's password-protected, enter the password when asked.
- 2. Choose what the AI sees: share, mask or hide each detail and column.
- 3. Add the URL above to your AI app as a custom connector and sign in. Steps for each app are in the docs.
- 4. Ask your question. Start with something you can verify, like the closing balance.
What it can't do
Scanned PDFs don't work. A scan is a picture of a page with no text in it, and Fileshape doesn't do OCR yet. If you can't select text in the PDF with your mouse, it's a scan.
PDFs with no tables don't work either. Fileshape answers questions about rows and columns, so for a contract or a letter, attach the file to the chat (after masking it, if it's personal). And it's read-only, so the AI can't change the PDF or fill in a form.
Ask AI about this file
Ask ChatGPT, Claude or Cursor about your file. Fileshape cleans it, masks personal columns and gives your AI one link, so totals come from every row.
FAQ
Questions
What is a PDF MCP server?
An MCP server that gives AI apps tools to work with PDF files. Some extract text, some fill forms. Fileshape's extracts the tables and lets the AI query them like a spreadsheet.
Can Claude read a PDF without MCP?
Yes. You can attach a PDF to a chat. A server helps when the PDF is a long table and you need exact totals, or when you want the same file in several AI apps.
Does it work with scanned PDFs?
No. Scanned PDFs are pictures of pages and Fileshape has no OCR yet. It works with PDFs that contain real text.
Does it open password-protected PDFs?
Yes. You're asked for the password when you add the file.
Is my PDF uploaded?
The PDF file itself isn't. The tables are built first, the values you masked or hid are taken out, and only those tables are stored.
More from the blog
Keep reading
- Claude MCP: how to add connectors in claude.ai, Claude Desktop and Claude CodeThe three ways to add an MCP server to Claude: custom connectors in claude.ai, the Claude Desktop config file and claude mcp add in Claude Code.
- ChatGPT MCP: how to add an MCP server (what used to be a custom connector)Which ChatGPT plans can add a custom MCP server, the steps on the Plugins page, sign-in options and limits, with a spreadsheet server as the example.
- Filesystem MCP server: what it is, how to set it up, and where it stopsWhat the official Filesystem MCP server does, the Claude Desktop config for it, its tools and limits, and what to use in claude.ai or ChatGPT instead.
- The best MCP servers for files, by what you need them to doAn honest list of MCP servers for files, picked by job: local folders, CSV and Excel, Google Sheets, PDFs, databases and cloud drives.
Updated 2026-12-06