Skip to main content

Backroom MCP Server

mcp-name: io.github.pardhuparimi/backroom

An MCP (Model Context Protocol) server that wraps the Backroom invoice-extraction API, so any MCP client can submit invoice PDFs and read back structured, verified extractions as tools.

Backroom never guesses: every field in a proposal carries a value, a verification status (verified / extracted / unclear), a confidence, and provenance. A field the engine could not verify comes back unclear with a null value instead of a fabricated one.

Install & run

With uv:

uvx backroom-mcp

Or with pip:

pip install backroom-mcp
backroom-mcp

The server speaks MCP over stdio — your client launches it as a subprocess. Example client configuration:

{
  "mcpServers": {
    "backroom": {
      "command": "uvx",
      "args": ["backroom-mcp"],
      "env": {
        "BACKROOM_API_KEY": "bk_test_…"
      }
    }
  }
}

Configuration

Variable Required Purpose
BACKROOM_API_KEY Yes, for all tools except check_health Your Backroom API key. Mint a free test key (100 documents/month) at https://backroom-api-wmk6.onrender.com/backroom/get-a-key. The key is only ever sent to the Backroom API as a bearer token — never logged or stored by this server.
BACKROOM_API_BASE No API base URL override (default https://backroom-api-wmk6.onrender.com), e.g. for a staging deployment.

Tools

Tool What it does
submit_invoice(pdf_path) Upload a local invoice PDF; returns the job id and a deduped flag.
submit_invoice_and_wait(pdf_path, timeout_seconds=180) Submit, then poll until the job reaches a terminal state; returns the outcome, the reason code when no proposal was issued, and the proposal_id when one was. Does not fetch the proposal (see the warning below).
get_job(job_id) A job's state and terminal payload.
get_proposal(proposal_id) The full proposal, exactly as the API serves it. Fetch exactly once — see below.
get_usage() Your meter for the current month: documents used, cap, remaining.
check_health() API health (no key required).

⚠ Proposals are fetch-exactly-once

The API runs zero-retention by default: the first successful get_proposal fetch purges the result, and a second fetch of the same id returns 404. Whatever client calls it must keep the returned proposal — it cannot be fetched again.

Errors

The API reports errors as RFC 9457 problem documents (title, code, detail, retryable, request_id). This server surfaces them verbatim as the tool error — including reason codes such as NO_EXTRACTABLE_TEXT when a document is a scan with no readable text, which the API refuses rather than guesses at.

Zero retention

This wrapper stores nothing. PDFs are read from disk at call time and sent to the API over HTTPS; no document, result, or key is written to disk or logged by the server. On the API side, zero-retention keys purge results on first fetch or after 24 hours.

Development

python -m venv .venv && .venv/bin/pip install -e ".[dev]"
.venv/bin/python -m pytest

Tests mock the HTTP layer — no network and no API key needed.

Metadata

Release files for backroom-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for backroom-mcp 0.1.1
File Size Uploaded Provenance Actions
backroom_mcp-0.1.1.tar.gz 10.4 kB Without provenance Details for backroom_mcp-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for backroom-mcp 0.1.1
File Interpreter ABI Platform Actions
backroom_mcp-0.1.1-py3-none-any.whl Python 3 none any Details for backroom_mcp-0.1.1-py3-none-any.whl

Total release size: 19.5 kB

Release files / backroom_mcp-0.1.1.tar.gz

Download URL backroom_mcp-0.1.1.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
bf5093e4849439ee886048151232484ff080680e2529b0eb4d6ab6fdaf52eb08
BLAKE2b-256 checksum
How to use checksums
b27048464d42e029f5466854d123d0d78ff991b73cdceb083972e6cc4709a9a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.12

Release files / backroom_mcp-0.1.1-py3-none-any.whl

Download URL backroom_mcp-0.1.1-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8156955fa47de16ccfeb7ec83fa1044a38198cd2b4c2903cf4ab4533cdf607bb
BLAKE2b-256 checksum
How to use checksums
7cb2b4a04b0d4caeb79f8d4e0260109f24aaa302ad067461f3d5285348dc096f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.12

Security for backroom-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page