Sign and register statements on a Forestrie log MCP Server
Sign and register statements on a Forestrie log, verify receipts, buy grants via x402 within caps
Sign and register statements on a Forestrie log scores 66 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 7 tools. Filed under Finance. GitHub shows 0 stars. Package registries report about 99 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "forestrie-mcp-register": { "command": "npx", "args": [ "-y", "@forestrie/mcp-register@0.3.0" ], "env": { "FORESTRIE_BASE_URL": "", "FORESTRIE_ROOT_LOG_ID": "", "FORESTRIE_GRANT": "YOUR_FORESTRIE_GRANT", "FORESTRIE_AUTHORITY_GRANT": "YOUR_FORESTRIE_AUTHORITY_GRANT", "FORESTRIE_COORDINATOR_URL": "", "FORESTRIE_KNOWN_SEALER_KEY": "", "MCP_REGISTER_HOME": "", "MCP_REGISTER_KEY_FILE": "", "MCP_REGISTER_AUTHORITY_KEY_FILE": "", "MCP_REGISTER_PAYER_KEY_FILE": "", "MCP_REGISTER_PAY_MAX_PER_CALL": "", "MCP_REGISTER_PAY_MAX_PER_DAY": "", "MCP_REGISTER_PAY_NETWORK": "", "MCP_REGISTER_PAY_ASSET": "", "MCP_REGISTER_PAY_TO": "", "MCP_REGISTER_PAY_ALLOW_MAINNET": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
FORESTRIE_BASE_URL | Optional | Canopy SCRAPI base URL used when a call omits baseUrl; also the only origin a payer will pay. No default. |
FORESTRIE_ROOT_LOG_ID | Optional | The forest's root log id (R in /register/{R}/entries) when a call omits rootLogId. |
FORESTRIE_GRANTSecret | Optional | Your Forestrie-Grant for the data log, as base64 or a file path, when a call omits grant. |
FORESTRIE_AUTHORITY_GRANTSecret | Optional | Your authority log's creation grant, for issue_grant, register_grant and delegate_sealing as authority. |
FORESTRIE_COORDINATOR_URL | Optional | Delegation coordinator URL, for delegate_sealing. |
FORESTRIE_KNOWN_SEALER_KEY | Optional | The registrar's sealer voucher key, base64 x||y, for delegate_sealing. |
MCP_REGISTER_HOME | Optional | Directory for key files, grants, registrations and the spend ledger; default ~/.config/forestrie/mcp-register. |
MCP_REGISTER_KEY_FILE | Optional | The log key file (ES256 JWK, mode 600); created on first use if missing. |
MCP_REGISTER_AUTHORITY_KEY_FILE | Optional | The authority key file (ES256 JWK, mode 600) that signs child grants; created on first use if missing. |
MCP_REGISTER_PAYER_KEY_FILE | Optional | Optional payer: a file holding your EVM key (0x + 64 hex, mode 600). Unset means relay mode: nothing is spent, your own x402 wallet pays. |
MCP_REGISTER_PAY_MAX_PER_CALL | Optional | Most one payment may be, in the asset's atomic units. Required with a payer. |
MCP_REGISTER_PAY_MAX_PER_DAY | Optional | Most all payments in one UTC day may total, in atomic units. Required with a payer. |
MCP_REGISTER_PAY_NETWORK | Optional | The one network it pays on; default eip155:84532 (Base Sepolia). |
MCP_REGISTER_PAY_ASSET | Optional | The one asset it pays in; default USDC on Base Sepolia. Required off the default network. |
MCP_REGISTER_PAY_TO | Optional | Optional: the only payee address it will pay. |
MCP_REGISTER_PAY_ALLOW_MAINNET | Optional | Set to 1 to allow paying on a network that is not a testnet; off by default. |
Tools7Tool docs quality grade B
All capabilitiesDoes one status check: pending, awaitingseal or sealed. Once sealed, it saves the receipt.
delegate_sealingtoolAuthorises the operator's sealer for your data log. Runs canopy's prepare with the same grant first if the coordinator does not know the log's public root yet. Once per log.
get_log_keytoolReturns the log key's public half (x‖y). Your grant must name this key. The key is created on first use.
issue_granttoolAs the requester, signs a child data-log grant with the authority key, naming a log key (by default this server's), sized with maxHeight. Sends nothing.
register_granttoolRegisters the child grant with canopy, pays its 402 within the caps or relays the requirements, and follows it to its receipt. Resumable by child log id; never pays twice.
Signs a payload (inline base64 or a file path, up to 4 MiB, with an explicit content type) and registers it.
Verifies the receipt over the statement with mcp-verify's verifier and returns its four answers unaltered.
About
@forestrie/mcp-register
An MCP server that signs a statement and registers it on a Forestrie transparency log under a Forestrie-Grant, then waits for the seal and verifies the receipt. It can also buy the grant: as the requester, it signs a child grant under your own authority log and registers it with canopy, paying canopy's x402 charge within hard caps. It is the write path of the Forestrie MCP trio:
@forestrie/mcp-verifyverifies receipts offline.@forestrie/mcp-resolvefetches receipts and the material to verify them.- This package writes. It uses the other two as libraries.
The statement is signed with a log key the server holds. The default backend for that key is an ES256 key file the server creates. Child grants are signed with a separate authority key, held the same way. The model never handles signature bytes: you pass the payload and the server signs it. No tool takes a signature or a key as input.
Paying is optional, and the payer is yours. The server never creates a payer key and holds no funds of its own: you choose how payment happens (see Choosing a payer). Whichever you choose, a payer key never crosses the MCP boundary, and the spending caps are configuration, not tool arguments. With no payer configured, the server spends nothing: it returns canopy's payment requirements, and you pay from your own x402 wallet (relay mode).
Status
Version 0.1.1 on npm, published with provenance from publish.yml. 0.1.0 was published by hand and has no provenance attestation; use 0.1.1 or later.
Tools
| Tool | What it does |
|---|---|
get_log_key | Returns the log key's public half (x‖y). Your grant must name this key. The key is created on first use. |
delegate_sealing | Authorises the operator's sealer for your data log. Runs canopy's prepare with the same grant first if the coordinator does not know the log's public root yet. Once per log. |
register_statement | Signs a payload (inline base64 or a file path, up to 4 MiB, with an explicit content type) and registers it. |
check_registration | Does one status check: pending, awaiting_seal or sealed. Once sealed, it saves the receipt. |
verify_registration | Verifies the receipt over the statement with mcp-verify's verifier and returns its four answers unaltered. |
issue_grant | As the requester, signs a child data-log grant with the authority key, naming a log key (by default this server's), sized with maxHeight. Sends nothing. |
register_grant | Registers the child grant with canopy, pays its 402 within the caps or relays the requirements, and follows it to its receipt. Resumable by child log id; never pays twice. |
The prompts walk an agent through the work:
registercovers the key and the grant, sealing, registering, waiting, verifying and keeping the receipt.auditexplains which trust questions a receipt answers under which trust root.issue-and-paycovers buying a grant as the requester: sizing it, issuing it, paying within the caps or relaying the payment, and handing the completed grant to the performer.
Configuration
Every value can be overridden per call.
| Variable | Meaning |
|---|---|
FORESTRIE_BASE_URL | the canopy SCRAPI base URL |
FORESTRIE_ROOT_LOG_ID | the forest's root log id (R in /register/{R}/entries) |
FORESTRIE_GRANT | your Forestrie-Grant, as base64 or a file path |
FORESTRIE_COORDINATOR_URL | the delegation coordinator, for delegate_sealing |
FORESTRIE_KNOWN_SEALER_KEY | the registrar's voucher key, base64 x‖y, for delegate_sealing |
FORESTRIE_AUTHORITY_GRANT | your authority log's grant, for issue_grant and register_grant |
MCP_REGISTER_HOME | key files, grants, registrations and the spend ledger, default ~/.config/forestrie/mcp-register |
MCP_REGISTER_KEY_FILE | the log key file, default $MCP_REGISTER_HOME/log-key.jwk |
MCP_REGISTER_AUTHORITY_KEY_FILE | the authority key file, default $MCP_REGISTER_HOME/authority-key.jwk |
Choosing a payer
Whoever wants the work done pays for it: the requester, paying canopy directly. The server supports three ways to do that and prefers none of them.
| Setup | What you configure | Who holds the key |
|---|---|---|
| Relay | nothing | your own x402 wallet: register_grant returns canopy's payment requirements and resumes on a call that carries your X-PAYMENT |
| Key file | MCP_REGISTER_PAYER_KEY_FILE and the caps below | a file on the machine that runs the server |
| Your own backend | createServer({ payer }) from @forestrie/mcp-register/server, when you embed the server | whatever your PayerBackend uses: a hosted wallet, a KMS, a remote signer |
A backend of your own must sign an EIP-3009 authorisation with the nonce it is given. That nonce is what stops one grant being paid for twice (see Payment settings).
Example: a dedicated key file
This is one way to set up the key-file payer, not the way. Any EVM account works; what matters is that it pays for this and nothing else.
-
Create a private key in a file only you can read. Any wallet tool that exports a raw private key will do. With no extra tools:
( umask 077; printf '0x%s\n' "$(openssl rand -hex 32)" > payer.key )The server accepts one line,
0xand 64 hex digits, in a regular file (not a symlink) that no other user can read. -
Find the account's address with a tool you already trust to derive one from a private key, or by importing the key into a wallet you use.
-
Fund the address with the asset canopy charges in. On the default network, Base Sepolia, that is testnet USDC, from Circle's faucet. The account needs no ETH: it only signs an authorisation, and the x402 facilitator submits the transfer and pays its gas.
-
Point the server at the file and set the caps:
MCP_REGISTER_PAYER_KEY_FILE=/path/to/payer.key MCP_REGISTER_PAY_MAX_PER_CALL=100000 # $0.10 MCP_REGISTER_PAY_MAX_PER_DAY=1000000 # $1.00
Keep one account per requester. Payments settle on chain, so anyone can link
a payer address to the grants it paid for. To rotate the key, create a new
one, move what is left to it, and point MCP_REGISTER_PAYER_KEY_FILE at the
new file.
Payment settings
These are read from the environment only. No tool argument can set or raise them.
| Variable | Meaning |
|---|---|
MCP_REGISTER_PAYER_KEY_FILE | an EVM private key (0x + 64 hex, mode 600) that pays; unset means relay mode |
MCP_REGISTER_PAY_MAX_PER_CALL | the most one payment may be, in the asset's atomic units (required with a payer) |
MCP_REGISTER_PAY_MAX_PER_DAY | the most all payments in one UTC day may total (required with a payer) |
MCP_REGISTER_PAY_NETWORK | the one network it pays on, default eip155:84532 (Base Sepolia) |
MCP_REGISTER_PAY_ASSET | the one asset it pays in, default USDC on Base Sepolia |
MCP_REGISTER_PAY_TO | optional: the only payee |
MCP_REGISTER_PAY_ALLOW_MAINNET | 1 to pay on a network that is not a testnet; off by default |
The server pays only the canopy named in FORESTRIE_BASE_URL, and only for
the request it made. Every payment it signs for a grant uses a nonce derived
from that grant, so the token contract can settle at most one of them: a
retry or two overlapping calls never pay for one grant twice. Each signed
payment is written to the spend ledger before it is sent and counts toward
the daily cap whether or not it settles. The daily cap is approximate when
calls overlap. USDC has 6 decimals, so 10000 is $0.01.
Where grants come from
Forestrie runs no grant issuer. Whoever owns the authority log above yours
issues your grant, naming the key that get_log_key returns. Canopy
sequences grants; it does not issue them.
That owner can be you. If the owner of the root above you creates an
authority log for your authority key (get_log_key with
which: "authority" returns it as a PEM for forestrie-cli's
create-log --auth-log --signer-pem), issue_grant and register_grant
let you issue and register your own child grants. If that authority log
carries the child-payment-required flag, each registration is paid for over
x402, straight to the transparency operator.
Install
npx -y @forestrie/mcp-register
Layers
src/coreis browser-safe and works on bytes only.src/netis the only placefetchis called, always through an injectedfetchImpl.src/nodeholds the MCP SDK, stdio, the filesystem, the key files and the payer.
See AGENTS.md.
Licence
MIT.
Frequently asked questions
What is Sign and register statements on a Forestrie log MCP Server?
Sign and register statements on a Forestrie log, verify receipts, buy grants via x402 within caps
How do I install Sign and register statements on a Forestrie log MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Sign and register statements on a Forestrie log MCP Server runs locally from the npm package @forestrie/mcp-register with the command npx -y @forestrie/mcp-register@0.3.0.
Is Sign and register statements on a Forestrie log MCP Server free and open source?
Yes. Sign and register statements on a Forestrie log MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Sign and register statements on a Forestrie log MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Sign and register statements on a Forestrie log MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does Sign and register statements on a Forestrie log MCP Server provide?
Sign and register statements on a Forestrie log MCP Server provides 7 tools, including check_registration, delegate_sealing, get_log_key, and issue_grant. See the full tool list for descriptions and parameters.
How is Sign and register statements on a Forestrie log MCP Server's trust score calculated?
Sign and register statements on a Forestrie log MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.