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.0

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.0
File Size Uploaded Provenance Actions
backroom_mcp-0.1.0.tar.gz 9.0 kB Without provenance Details for backroom_mcp-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.3 kB

Release files / backroom_mcp-0.1.0.tar.gz

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

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

Download URL backroom_mcp-0.1.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b460aa34140ab4bd638de3e1bc3486e2a98a40e9e7d9f9df1e91d52abc71f3aa
BLAKE2b-256 checksum
How to use checksums
e6219eba1a65735456b3b5e796c6777e449eaf90886669ed9d8c445cd095d614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.12

Security for backroom-mcp 0.1.0

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.0 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