
# Gemina — MCP server
**Tag, extract, and search your documents from any MCP client. Free tier: 1,500 FileTag tags/month, no credit card.**
[](LICENSE)
[](https://www.gemina.co/filetag)
[](https://modelcontextprotocol.io)
[](https://github.com/tommyil/gemina-mcp/commits/main)
[Install](#quick-install) • [Examples](./examples) • [Product page](https://www.gemina.co/product/agents) • [Full docs](https://www.gemina.co/docs/mcp)
---
## What is this?
This repository is the **discovery, install, and examples surface** for Gemina's MCP server. The server itself is hosted at `https://api.gemina.co/api/v1/mcp/` — there is no daemon to run locally. Point your MCP-compatible client at the endpoint, sign in with your Gemina account (or paste an API key for headless use), and tag your first document in under a minute.
One server, three tool groups: **FileTag** (free tier — tag, rename, and enrich any PDF or image), **Extraction** (Core-OCR: invoice headers, line items, full text, custom templates), and **Document Intelligence** (ask questions and run spend analytics over your indexed documents — no re-upload). See [Tools](#tools) for the full list.
The server itself is closed-source (operated by Gemina). Everything in this repo — install snippets, examples, integration code — is MIT-licensed and contributions are welcome.
## What you get
One sign-in, three tool groups. Every group takes any PDF or image up to 50 MB (PDF, PNG, JPEG, GIF, WebP, HEIC/HEIF, AVIF).
**1. FileTag — tag, rename, enrich (free tier).** Send a document, get structured metadata, six suggested filenames, and a downloadable copy with the metadata embedded in the file itself. Tools: `files_create_upload` → `tag_file`, or `tag_url`.
**2. Extraction — pull the fields out (paid).** Ready-made models for invoice headers and invoice line items (plus Hebrew document details and line items); and **custom templates** — you define the fields, Gemina extracts them from any document type: contracts, forms, statements, delivery notes, IDs, anything. Tools: `files_create_upload` (`purpose='extract'`) → `extract_document` → `get_extraction_result`, `list_extractions`, `get_extraction`, `get_document`, `add_document_extractions` (run more extraction types on a stored document — no re-upload; wait for the values, or `wait=false` and just file it for later search), `submit_extraction_feedback` (send corrections back).
**3. Document Intelligence — ask your archive (paid).** Ask questions and run spend analytics across your whole indexed collection — no re-upload. Every document you tag (FileTag) or run a structured extraction on is submitted for indexing when indexing is enabled — plain OCR isn't, and a document can be skipped (no extractable fields, or no indexing credits). Search by vendor, date, amount, type or free text (`query_documents`); get sums, averages and counts grouped by vendor, currency, type or month (`aggregate_documents`) — e.g. “total spent per vendor last quarter”. Tools: `query_documents`, `aggregate_documents`, `index_document`.