About Mervext
mervext-mcp is a stateless MCP server for sending documents to Mervext and receiving structured JSON. It is intended for agents that process documents such as invoices, receipts, and contracts, with confidence reported for extracted fields.
Key features
- 01Extract structured fields from PDFs, photos, or text
- 02Report confidence per extracted field
- 03Classify document types without extraction
- 04List built-in extraction schemas
- 05Check balance and delete documents
Use cases
- 01Extract invoice fields into JSON
- 02Process receipt photos and scanned documents
- 03Classify a document before field extraction
MCP support
The server exposes five tools for document extraction, classification, schema listing, balance checks, and document deletion. It is available over stateless Streamable HTTP and stdio; the MCP client supplies an API key per request.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.vstudiodigital.com/mcpclaude mcp add --transport http com-vstudiodigital-mervext https://mcp.vstudiodigital.com/mcp{"mcpServers":{"com-vstudiodigital-mervext":{"type":"http","url":"https://mcp.vstudiodigital.com/mcp"}}}Open in Cursor{"servers":{"com-vstudiodigital-mervext":{"type":"http","url":"https://mcp.vstudiodigital.com/mcp"}}}Open in VS Code{"mcpServers":{"com-vstudiodigital-mervext":{"type":"http","url":"https://mcp.vstudiodigital.com/mcp"}}}{"mcpServers":{"com-vstudiodigital-mervext":{"serverUrl":"https://mcp.vstudiodigital.com/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMEmervext-mcp
MCP server for Mervext — documents in, structured JSON out, for AI agents (Claude, Claude Code, Codex, Cursor, Hermes, Gemini CLI, …).
Thin wrapper over the deployed Mervext engine (https://api.vstudiodigital.com).
Standalone: no changes to the engine repo, no state, no stored secrets.
Hosted endpoint (live)
https://mcp.vstudiodigital.com/mcp — Streamable HTTP, stateless, on
Cloudflare Workers (scale-to-zero). Health: GET /healthz.
Client config (any MCP client that supports HTTP + headers):
{
"mcpServers": {
"mervext": {
"type": "http",
"url": "https://mcp.vstudiodigital.com/mcp",
"headers": { "X-API-Key": "fw_…your key…" }
}
}
}
The API key is supplied per request by the client — the worker stores
nothing, keeps no sessions, and holds no secrets. Get a key with free trial
credits at https://mervext.com, or mint a device key: POST /v1/keys/device.
Tools
| Tool | What it does |
|---|---|
extract_document | One document (PDF / photo / text) → structured JSON with per-field confidence. Built-in schema id or your own schema_json. |
classify_document | Detect document type without extracting fields. |
list_schemas | The built-in schemas (id + what each extracts). |
check_balance | Plan, remaining credits, usage. |
delete_document | Explicit zero-retention delete by document id. |
Auth
The MCP client supplies the Mervext API key; the server never stores it:
- stdio:
MERVEKT_API_KEY=fw_live_… - HTTP:
X-API-Key: fw_…orAuthorization: Bearer fw_…header per request
Run locally
npm install
npm run build
# stdio (local clients)
MERVEKT_API_KEY=fw_live_… node dist/stdio.js
# HTTP (local / testing)
node dist/http.js # :8787 — POST /mcp, GET /healthz
Engine base URL override: MERVEKT_API_URL (default https://api.vstudiodigital.com).
Deploy (Cloudflare Workers)
npx wrangler deploy
wrangler.toml: workermervext-mcp, routemcp.vstudiodigital.com/*(zone vstudiodigital.com).workers_devis off — route only (no workers.dev subdomain on the account).- Run from WSL — wrangler OAuth lives there (skill:
cloudflare-pages-deploys).
Smoke tests
# stdio, against the live engine (1–2 credits)
node scripts/mcp-smoke.ts [--image path.jpg] [--schema invoice]
# hosted worker, real Streamable-HTTP client
MERVEKT_API_KEY=… node scripts/mcp-http-smoke.ts [https://…/mcp]
Status
- v0 — five tools, stateless HTTP + stdio, tested against the live engine
- Hosted on Cloudflare Workers — live at
mcp.vstudiodigital.com, verified end-to-end through the hosted stack: text invoice 2.1 s (confidence 1.0, source-grounded); scanned receipt without a text layer (vision path) 7.6 s; clean 422 naming valid schemas for raw images. - Official MCP registry:
com.vstudiodigital/mervext(DNS-verified publisher) - Static server card at
/.well-known/mcp/server-card.json(metadata for registries/scanning) - Smithery:
contact-3yen/mervext— published - mcp.so / Glama (public-repo listings)
License
MIT — see LICENSE.
Not in the Mervext product repo on purpose — that repo runs its own deploy pipeline.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.