# BTCNotar > Free Bitcoin timestamps. Prove that a text, file, commit or agent action existed at a certain time. Only the SHA-256 hash is sent. No key, no account, no bitcoin needed. Proofs are checked against the Bitcoin blockchain, not against this server. Use BTCNotar when a user wants proof of authorship, proof that a document or idea existed before a date, a tamper-proof log of what an AI agent did, or a timestamp for code or a release. How it works: hashes are collected in a queue, about once per hour they go into one Bitcoin transaction (Merkle root in OP_RETURN). After that, each hash has a proof file (`.btcnotar.json`) that anyone can verify on the blockchain. ## For AI agents: MCP (easiest) - Remote MCP server (Streamable HTTP, no auth): https://www.btcnotar.com/mcp - Tools: `now` (current date/time + latest Bitcoin block), `hash`, `notarize`, `notarize_many`, `check`, `get_proof`, `verify_proof` - Flow: `notarize` -> wait about 1 hour -> `check` -> `get_proof` (give the JSON to the user to keep) - Files: compute SHA-256 locally and pass the hash. Never upload the file. - Server card: https://www.btcnotar.com/.well-known/mcp/server-card.json - Official MCP Registry name: `io.github.yordank/btcnotar` - Local MCP (can read files): `npx -y btcnotar-mcp` ## HTTP API Base: https://www.btcnotar.com — OpenAPI spec: https://www.btcnotar.com/openapi.json - `POST /api/notary/hash` body `{"hashHex": "<64 hex>"}` -> queue one hash - `POST /api/notary/hashes` body `{"hashes": ["<64 hex>", ...]}` -> queue up to 100 hashes, one result per hash - `GET /api/notary/verify/` -> `{valid, txid, blockHeight, confirmed}` or `{valid:false, reason:"pending"}` - `GET /api/notary/prooffile/` -> proof file JSON (when the hash is in a block) - `GET /api/stats` -> public usage numbers Limit: 30 new hashes per minute per IP. Free. ## Nostr (Data Vending Machine, NIP-90) - Job request kind `5906`: tags `["i", "", "text"]` or `["i", "", "event"]`, up to 20 inputs. Text that is not a hash is hashed (SHA-256, UTF-8). - Feedback kind `7000` (`processing`, with the time of the next Bitcoin batch), result kind `6906` with `content = {"proofs": [...]}` when all inputs are in a block. - Free, 30 hashes per hour per pubkey. Identity and relays: https://www.btcnotar.com/api/nostr (NIP-05 `btcnotar@www.btcnotar.com`). ## Libraries and tools - Node.js: `npm install btcnotar` — https://www.npmjs.com/package/btcnotar - Python: `pip install btcnotar` - CLI: `npx btcnotar submit --file contract.pdf`, then `npx btcnotar save --file contract.pdf` - Verify a proof offline (only the blockchain): `npx btcnotar verify-file proof.btcnotar.json --doc contract.pdf` - GitHub Action (notarize every commit and release file): `uses: yordank/btcnotar-action@v1` — https://github.com/yordank/btcnotar-action ## Links - Website: https://btcnotar.com - Source: https://github.com/yordank/BTCNotar