SuperAPI AI Directory

sifter

Extract typed, schema-defined records from any document and query them in natural language like a database.

Open website

About this tool

Sifter is an open-source, developer-oriented document extraction engine whose goal is to turn unstructured documents such as invoices, contracts, receipts, and reports into a structured, queryable database. The project was created by Bruno Fortunato, is licensed under MIT, and can be self-hosted.

Purpose Sifter is aimed at scenarios that require extracting fields from large numbers of homogeneous documents and performing aggregate queries. It points out that RAG is better suited to retrieving similar text chunks, but fails on collections such as invoices, contracts, and receipts where each document looks similar and the question is essentially aggregation rather than search. Sifter's approach is: extract structured fields once (such as client, date, total), store them as typed records, and then query with real filtering and aggregation, so answers are exact and reproducible because it is a database query rather than a similarity search.

Main capabilities

  • Schema-driven extraction: describe in natural language what to extract, the schema is inferred automatically, and it can be exported as Pydantic / TypeScript types.
  • Natural language queries: ask questions in natural language, and Sifter generates an inspectable MongoDB aggregation pipeline.
  • MCP server: supports stdio transport, provides read and write tools, requires no custom integration code, and can be used with Claude Desktop, Cursor, or AI agents.
  • REST API + SDK: provides a complete OpenAPI specification, as well as typed clients for Python and TypeScript.
  • Webhooks: trigger an HMAC-signed HTTP callback on every extraction event.
  • Spec-driven dashboards: automatically generate dashboards from a short natural language spec, including KPI cards, breakdowns, tables, and time series, and automatically update them on every extraction.
  • CLI: provides the sifter extract, sifter records, and sifter sifts commands for terminal workflows and CI.
  • Self-hosting: deploy via Docker Compose, bringing your own MongoDB and LLM API key.

How to use When self-hosting, open http://localhost:3000,创建 sift, upload documents, and query the results. The MCP server can be used with Claude Desktop, Cursor, or AI agents, and supports queries such as "What is the total unpaid amount across all invoices from last quarter?" "Show all contracts expiring in the next 90 days." "Which candidates have Python and more than 5 years of experience?" returning structured data (exact counts, sums, filtered rows) rather than text chunks. If you do not want to run a local server, you can use Sifter Cloud to get a remote MCP URL. Sifter has built-in dashboards, so there is no need for Metabase, Grafana, or SQL; just describe in natural language what you want to see to generate KPI cards, breakdowns, and time series. Full documentation is at docs.sifter.run, including quick start, SDK reference, MCP guide, cookbook, and self-hosting instructions.

Use cases Suitable for field extraction and aggregate queries on documents such as invoices, contracts, receipts, and reports, and also suitable for developer scenarios that need to connect document data to AI agents, terminal workflows, or CI.

Limitations The material does not provide specific pricing, platform support scope, extraction accuracy, or performance data. Sifter Cloud offers a free tier, but the specific quota is not stated. Self-hosting requires preparing your own MongoDB and LLM API key.