Metrecept MCP server
MCP server for Metrecept, which issues a signed
Ed25519 receipt (compact JWS) for each call an autonomous AI agent makes:
model chat, compliant public-web fetch, and third-party API calls. Runs over
stdio (default) or as a stateless remote streamable-HTTP server. It is a thin
MIT client: the hosted gateway at https://api.metrecept.co.uk is
proprietary, and every real call needs a Metrecept API key.
Installed from PyPI as metrecept-mcp; the command is metrecept-mcp and
the module is metrecept_mcp.
Ohm is a sibling brand name of Metrecept; some identifiers keep the ohm prefix for compatibility. These are: the
ohm-mcpandohm-mcp-httpcommands and theohm_mcpPython import name (aliases ofmetrecept-mcp,metrecept-mcp-httpandmetrecept_mcp);OHM_*environment variables (OHM_API_KEY,OHM_BASE_URL,OHM_UPSTREAM_KEY,OHM_SERVICE_KEY,OHM_MCP_*), read by the MCP server only when the matchingMETRECEPT_*variable is unset; theapi.withohm.devandmcp.withohm.devhostnames in the MCP server's host allowlist; and theX-Ohm-*headers the hosted gateway still accepts and emits next to theirX-Metrecept-*equivalents. This client sends onlyX-Metrecept-*headers. Use the Metrecept names in new setups.
Install
pip install metrecept-mcp
Cursor attach (stdio)
{
"mcpServers": {
"metrecept": {
"command": "metrecept-mcp",
"env": {
"METRECEPT_API_KEY": "sk-at-YOUR_ISSUED_KEY",
"METRECEPT_UPSTREAM_KEY": "sk-proj-optional-byok-key",
"METRECEPT_BASE_URL": "https://api.metrecept.co.uk/v1"
}
}
}
}
Hosted streamable HTTP (no local install): https://api.metrecept.co.uk/mcp
with Authorization: Bearer sk-at-…. Stdio remains the
metrecept.co.uk/i one-click default.
Get a key from the $0 Intermediate seat at metrecept.co.uk/billing/intermediate.
Tools
14 tools. All require a Metrecept API key and are scoped to that key's tenant.
| Tool | What it does |
|---|---|
metrecept_chat |
One chat call through the gateway (OpenAI-compatible); metered and receipted; exact repeats served from cache; optional web context. |
metrecept_fetch_web |
Compliant public-web fetch (purpose-bound, robots-aware, PII-redacted); metered and receipted. |
metrecept_api_call |
Receipted, metered GET to a registered third-party API; the vendor key is forwarded, never stored. |
metrecept_register_api_service |
Register or update a third-party API (base URL, path prefix, auth header name) for metrecept_api_call. |
metrecept_api_services |
List registered third-party API services. |
metrecept_session |
One signed receipt for every call tagged with a session id, plus a verify_url anyone can open. |
metrecept_usage |
Current usage meters, plan and billing status. |
metrecept_savings |
Estimated upstream spend avoided by cache hits versus what was billed. |
metrecept_receipt |
Publish a public, signed savings snapshot page and badge (90 days). |
metrecept_models |
Model ids the gateway can route to (BYOK). |
metrecept_providers |
Which upstream vendors are configured and ready. |
metrecept_policy |
Web-fetch compliance policy: allowed purposes and limits. |
metrecept_cache_trees |
List the tenant's named cache namespaces. |
metrecept_cache_inventory |
Metadata of cached entries in one namespace (never content). |
Remote (stateless streamable HTTP)
METRECEPT_MCP_TRANSPORT=http metrecept-mcp # or: metrecept-mcp-http — serves POST /mcp on :8091
Production hosted endpoint: https://api.metrecept.co.uk/mcp.
Auth is per-request: clients send Authorization: Bearer sk-at-* (and
optional X-Metrecept-Upstream-Key) on the MCP HTTP request; METRECEPT_API_KEY env is
the stdio/local fallback.
Env
| Variable | Required | Purpose |
|---|---|---|
METRECEPT_API_KEY |
stdio: yes | Your Metrecept tenant key (sk-at-…); HTTP mode can use per-request Authorization instead |
METRECEPT_BASE_URL |
no | Defaults to https://api.metrecept.co.uk/v1 |
METRECEPT_UPSTREAM_KEY |
no | BYOK provider key for non-mock model calls |
MIT licensed. The hosted service is commercial — see Pricing and Terms.
Note for maintainers: this package is mirrored from the private Metrecept monorepo, which is the source of truth.
Metadata
Release files for metrecept-mcp 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| metrecept_mcp-0.3.2.tar.gz | 14.6 kB | Without provenance | Details for metrecept_mcp-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| metrecept_mcp-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for metrecept_mcp-0.3.2-py3-none-any.whl |
Total release size: 28.7 kB
Release files / metrecept_mcp-0.3.2.tar.gz
| Download URL | metrecept_mcp-0.3.2.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8536f53c36b43924070d84362b319e88a5cdf83efab6c6882e79fa45185cb397
|
|
BLAKE2b-256 checksum How to use checksums |
46902aa8734c7ed9efc98776ff6a5b78b5241aa8f2e7033205bc351f6b4f3d74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / metrecept_mcp-0.3.2-py3-none-any.whl
| Download URL | metrecept_mcp-0.3.2-py3-none-any.whl |
|---|---|
| Size | 14.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7aa34e5b52453dc610586ceed102eaabbe7e73033a6b4af0fbd283e5a7751923
|
|
BLAKE2b-256 checksum How to use checksums |
7caa64ec5fdc42c2c40c6c12842640e9ab51bfb6e9f6032168fe7c61d78f42d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for metrecept-mcp 0.3.2
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.