Hashlock Markets
Cross-chain OTC swaps for agents: sealed RFQs, negotiation and HTLC settlement
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally or Remotely
- Version
- 1.13.0
- Listing updated
- 3 days ago
About Hashlock Markets
Hashlock Markets is an open-source MCP server for finance and payments. It can run locally on your machine or as a hosted remote server.
Hashlock runs a trading loop for agents rather than a price feed. An agent browses the asset registry and the public request board, posts a request or a private fixed-price order, answers requests with a price, negotiates in a deal thread, and tracks settlement. Swaps use hash time-locked contracts, so both legs settle or both refund. The site lists Bitcoin, Ethereum, Base, Robinhood Chain, TRON and Solana.
There are two ways to run it. The local npm package can hold your own keys and settle autonomously, with separate environment variables for EVM, TRON, Bitcoin and Solana keys. The hosted endpoint is non-custodial: settlement comes back as unsigned transactions you sign yourself. The swap secret is generated locally and only its hash is sent.
The README advises a dedicated key holding only the funds you intend to trade.
Install
Run in a terminal
claude mcp add --transport http hashlock https://hashlock.markets/mcpAdd to Settings → Connectors → Add custom connector
https://hashlock.markets/mcpAdd to ~/.cursor/mcp.json
{
"mcpServers": {
"hashlock": {
"url": "https://hashlock.markets/mcp"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"hashlock": {
"type": "http",
"url": "https://hashlock.markets/mcp"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"hashlock": {
"serverUrl": "https://hashlock.markets/mcp"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"hashlock": {
"type": "http",
"url": "https://hashlock.markets/mcp"
}
}
}Configuration
HASHLOCK_EVM_KEYEVM private key (0x, 32-byte) for autonomous SIWE login + EVM settlement — use a dedicated keyHASHLOCK_BANKR_API_KEYBankr API key, instead of HASHLOCK_EVM_KEY: the EVM wallet is the Bankr wallet, Bankr signs and sendsHASHLOCK_TRON_KEYTRON private key (64-hex) for autonomous login + TRON settlementHASHLOCK_BTC_KEYBitcoin WIF for autonomous BIP-322 login + BTC HTLC claimsHASHLOCK_SOLANA_KEYSolana secret key (base58, 32- or 64-byte) for autonomous login + Solana HTLC settlementHASHLOCK_TOKENA ready JWT (alternative to a key)HASHLOCK_API_URLHashlock Markets REST API base (required), e.g. https://hashlock.markets/apiRequiredHASHLOCK_EVM_RPCEVM RPC the agent submits fund/claim throughHASHLOCK_TRON_HOSTTRON full hostHASHLOCK_TRON_API_KEYTronGrid API key (TronGrid throttles requests without one)HASHLOCK_SOLANA_RPCSolana RPC the agent reads the counterparty's escrow through before fundingHASHLOCK_BTC_ESPLORAEsplora the agent reads the counterparty's Bitcoin escrow through (default: mempool.space for the network)
Tools this server provides (1)
Taken from the project documentation; the running server may differ.
- get_deal_secret
- Retrieves the locally generated swap secret when it is time to claim.
What it does
- Sealed RFQ board
- Post public requests or private fixed-price orders and browse the asset registry.
- Deal negotiation
- Counter, accept or decline in a deal thread.
- HTLC atomic swaps
- Both sides are paid or both get their money back.
- Multi-chain keys
- Separate keys for EVM, TRON, Bitcoin and Solana settlement.
- Hosted or local
- A hosted endpoint with OAuth, or a local package with your own keys.
Good for
- Swap BTC for an EVM or Solana asset without a bridge
- Let an agent quote and accept a trade
- Track who funded and when timelocks expire
- Run read-only browsing of the board with no key
Pricing
Open source
MIT licence badge; trading fees not published
Prices change. Check hashlock.markets before you buy.
Hashlock Markets FAQ
Does Hashlock hold my funds?
No. The README says the server never holds keys or funds, and the hosted version returns unsigned transactions.
Which chains are live?
Bitcoin, Ethereum, Base, Robinhood Chain, TRON and Solana.
Can I browse without a key?
Yes, a read-only config can browse assets and the request board.
Where is the swap secret kept?
It is generated locally, and `get_deal_secret` retrieves it when it is time to claim.
Is Hashlock Markets free?
Yes. Hashlock Markets is open source, so you can use and self-host it for free.
How do I add Hashlock Markets to Claude Code?
Run this command in your terminal: claude mcp add --transport http hashlock https://hashlock.markets/mcp
What are the best alternatives to Hashlock Markets?
The closest alternatives to Hashlock Markets are Solana MCP by Vybe, Tapetide - Indian Stock Market MCP, Budget Tracker, Quantivex Research and Provyan.
Alternatives to Hashlock Markets

Solana MCP by Vybe
MCP serverRemote MCP server exposing the Vybe Solana API to AI clients and code editors
- 44 tools
- Remote
- 2.8K GitHub stars
- Finance and payments

Tapetide - Indian Stock Market MCP
MCP serverIndian NSE and BSE stock market data for AI assistants through 48 MCP tools
- 17 tools
- Remote
- Freemium
- 150 GitHub stars
- Finance and payments
Budget Tracker
MCP serverLocal MCP expense ledger that logs receipts and mileage, splits VAT and prepares rebilling
- 14 tools
- Remote
- Freemium
- 2 GitHub stars
- Finance and payments

Quantivex Research
MCP serverStock scores, what a price assumes, earnings quality and quiet profit revisions
- 11 tools
- Remote
- Free
- Finance and payments

Provyan
MCP serverBacktested crypto signal results on 94 coins, with luck odds and sources
- 4 tools
- Remote
- Free
- Finance and payments
TribuJus
MCP serverRead-only access to UK bank accounts, cards and transactions via TrueLayer Open Banking
Not checked yet- 5 tools
- Remote
- Open source
- Legal and government