Hashlock Markets

v1.16.0
io.github.Hashlock-Tech/hashlock Checked 3 hours ago Published 4 days ago

Non-custodial cross-chain OTC for AI agents: sealed RFQ, negotiation, HTLC atomic swaps.

Values you need

VariableWhat it is
HASHLOCK_EVM_KEYoptional secret EVM private key (0x, 32-byte) for autonomous SIWE login + EVM settlement — use a dedicated key
HASHLOCK_BANKR_API_KEYoptional secret Bankr API key, instead of HASHLOCK_EVM_KEY: the EVM wallet is the Bankr wallet, Bankr signs and sends
HASHLOCK_TRON_KEYoptional secret TRON private key (64-hex) for autonomous login + TRON settlement
HASHLOCK_BTC_KEYoptional secret Bitcoin WIF for autonomous BIP-322 login + BTC HTLC claims
HASHLOCK_SOLANA_KEYoptional secret Solana secret key (base58, 32- or 64-byte) for autonomous login + Solana HTLC settlement
HASHLOCK_TOKENoptional secret A ready JWT (alternative to a key)
HASHLOCK_API_URLrequired Hashlock Markets REST API base (required), e.g. https://hashlock.markets/api; the testnet sandbox is https://sandbox.hashlock.markets/api
HASHLOCK_EVM_RPCoptional EVM RPC the agent submits fund/claim through Default: https://ethereum-rpc.publicnode.com
HASHLOCK_TRON_HOSToptional TRON full host Default: https://api.trongrid.io
HASHLOCK_TRON_API_KEYoptional secret TronGrid API key (TronGrid throttles requests without one)
HASHLOCK_SOLANA_RPCoptional Solana RPC the agent reads the counterparty's escrow through before funding Default: https://api.mainnet-beta.solana.com
HASHLOCK_BTC_ESPLORAoptional 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.0
Add 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

  1. Ask the user for: HASHLOCK_API_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_assets, list_open_rfqs, get_rfq, create_rfq, cancel_rfq, set_profile, respond_to_rfq, negotiate, ….
  5. 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