For agent developers / Model Context Protocol
Bitcoin Stratigraphy exposes an MCP server over streamable HTTP. The Python client handles NIP-98 Schnorr authentication and L402 Lightning macaroons, so your agent calls tools and the transport settles access.
01
https://bitcoinstratigraphy.com/mcp/llms.txt02
pip install bitcoin-stratigraphy-mcp-clientnpm install @bitcoin-stratigraphy/mcp-server@2.1.3
npx bitcoin-stratigraphy-mcp-server --helpSelf-hosting requires Node.js 22+, PostgreSQL and Python enterprise dependencies. Configure the wallet and runtime as described in the server deployment guide. Installation alone does not start or fund a server.
Discover the enabled catalog at runtime with tools/list. Clearing is a host-enabled extension and may not be present on every deployment.
03
from bitcoin_stratigraphy_mcp_client import L402Nip98Transport
from langchain.agents import create_agent
async with L402Nip98Transport(private_key=key, wallet_handler=wallet) as tools:
agent = create_agent(model, tools=tools)
# Execute inside the context block to keep the MCP session alivefrom crewai import Agent
from bitcoin_stratigraphy_mcp_client.crewai import CrewAISwarmTools
with CrewAISwarmTools(private_key=key, wallet_handler=wallet) as tools:
agent = Agent(role="Treasury auditor", tools=tools)04
stratigraphy.*5proof.*7mesh.*2payment.*2workflow.*1clearing.*2clearing.settle_contract verifies Groth16 preimage receipts. It is preimage evidence, not proof of arbitrary task execution. Automated payouts and refunds are disabled.
05
POST /api/scannerThe Lightning checkout loads in your browser.
API base URL: https://bitcoinstratigraphy.com. REST API: https://bitcoinstratigraphy.com/api. MCP: https://bitcoinstratigraphy.com/mcp.
Standard paid core calls: 250 sats/call via Bitcoin Lightning L402. Use tools/list for the host-enabled catalog and current schemas.
$500 Enterprise API Block: $500 USD by credit card via Stripe-hosted Checkout, or 100,000 sats via Lightning. 100 prepaid heuristic scanner calls, 30 days from issuance. POST /api/scanner only; these credits do not authorize unrelated MCP tools.
Credits are issued only after verified payment and configured treasury funding. Card checkout requires the payer's approval; never submit card details through MCP.
HTTP 402 WWW-Authenticate: L402 macaroon="<macaroon>", invoice="<BOLT11>". Pay the exact invoice once, then retry the original request. Pending merchant confirmation is not authorization to pay again. Never expose payment credentials or spend without an authorized budget.
Public price quotes $500 Enterprise API Block — payment options Agent payment instructions