Hashlock Markets
v1.16.0Non-custodial cross-chain OTC for AI agents: sealed RFQ, negotiation, HTLC atomic swaps.
Values you need
| Variable | What it is | |
|---|---|---|
HASHLOCK_EVM_KEY | optional secret | EVM private key (0x, 32-byte) for autonomous SIWE login + EVM settlement — use a dedicated key |
HASHLOCK_BANKR_API_KEY | optional secret | Bankr API key, instead of HASHLOCK_EVM_KEY: the EVM wallet is the Bankr wallet, Bankr signs and sends |
HASHLOCK_TRON_KEY | optional secret | TRON private key (64-hex) for autonomous login + TRON settlement |
HASHLOCK_BTC_KEY | optional secret | Bitcoin WIF for autonomous BIP-322 login + BTC HTLC claims |
HASHLOCK_SOLANA_KEY | optional secret | Solana secret key (base58, 32- or 64-byte) for autonomous login + Solana HTLC settlement |
HASHLOCK_TOKEN | optional secret | A ready JWT (alternative to a key) |
HASHLOCK_API_URL | required | Hashlock Markets REST API base (required), e.g. https://hashlock.markets/api; the testnet sandbox is https://sandbox.hashlock.markets/api |
HASHLOCK_EVM_RPC | optional | EVM RPC the agent submits fund/claim through Default: https://ethereum-rpc.publicnode.com |
HASHLOCK_TRON_HOST | optional | TRON full host Default: https://api.trongrid.io |
HASHLOCK_TRON_API_KEY | optional secret | TronGrid API key (TronGrid throttles requests without one) |
HASHLOCK_SOLANA_RPC | optional | Solana RPC the agent reads the counterparty's escrow through before funding Default: https://api.mainnet-beta.solana.com |
HASHLOCK_BTC_ESPLORA | optional | Esplora the agent reads the counterparty's Bitcoin escrow through (default: mempool.space for the network) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add hashlock -e 'HASHLOCK_API_URL=<HASHLOCK_API_URL>' -- npx -y @hashlock-tech/mcp@1.16.0Add to
claude_desktop_config.json{
"mcpServers": {
"hashlock": {
"args": [
"-y",
"@hashlock-tech/mcp@1.16.0"
],
"command": "npx",
"env": {
"HASHLOCK_API_URL": "<HASHLOCK_API_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"hashlock": {
"args": [
"-y",
"@hashlock-tech/mcp@1.16.0"
],
"command": "npx",
"env": {
"HASHLOCK_API_URL": "<HASHLOCK_API_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "HASHLOCK_API_URL",
"id": "hashlock-api-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"hashlock": {
"args": [
"-y",
"@hashlock-tech/mcp@1.16.0"
],
"command": "npx",
"env": {
"HASHLOCK_API_URL": "${input:hashlock-api-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.hashlock]
command = "npx"
args = ["-y", "@hashlock-tech/mcp@1.16.0"]
env = { "HASHLOCK_API_URL" = "<HASHLOCK_API_URL>" }Remote (hosted)
Run in a terminal
claude mcp add --transport http hashlock https://hashlock.markets/mcp --header 'Authorization: <Authorization>'Add to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"hashlock": {
"args": [
"-y",
"mcp-remote",
"https://hashlock.markets/mcp",
"--header",
"Authorization: <Authorization>"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"hashlock": {
"headers": {
"Authorization": "<Authorization>"
},
"url": "https://hashlock.markets/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"hashlock": {
"headers": {
"Authorization": "<Authorization>"
},
"type": "http",
"url": "https://hashlock.markets/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.hashlock]
command = "npx"
args = ["-y", "mcp-remote", "https://hashlock.markets/mcp", "--header", "Authorization: <Authorization>"]For AI agents
- Ask the user for: HASHLOCK_API_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: list_assets, list_open_rfqs, get_rfq, create_rfq, cancel_rfq, set_profile, respond_to_rfq, negotiate, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json