HashLock OTC
OTC crypto trading with HTLC atomic settlement on Ethereum and Bitcoin — create trades, lock assets, and settle trustlessly via AI agents
@hashlock/mcp
MCP (Model Context Protocol) server for HashLock OTC trading. Enables AI agents (Claude, GPT, etc.) to create HTLCs, submit RFQs, and settle atomic swaps.
Tools
| Tool | Description |
|---|---|
create_htlc | Create and fund an HTLC for atomic settlement |
withdraw_htlc | Claim an HTLC by revealing the preimage |
refund_htlc | Refund an HTLC after timelock expiry |
get_htlc | Query HTLC status for a trade |
create_rfq | Create a Request for Quote (buy/sell crypto) |
respond_rfq | Submit a price quote for an open RFQ |
Setup — Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"hashlock": {
"command": "npx",
"args": ["-y", "@hashlock/mcp"],
"env": {
"HASHLOCK_ENDPOINT": "http://142.93.106.129/graphql",
"HASHLOCK_ACCESS_TOKEN": "your-jwt-token"
}
}
}
}
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop after editing.
Setup — Claude Code
Add to your project's .claude/settings.json:
{
"mcpServers": {
"hashlock": {
"command": "npx",
"args": ["-y", "@hashlock/mcp"],
"env": {
"HASHLOCK_ENDPOINT": "http://142.93.106.129/graphql",
"HASHLOCK_ACCESS_TOKEN": "your-jwt-token"
}
}
}
}
Or run from source:
git clone https://github.com/Hashlock-Tech/hashlock-mcp
cd hashlock-mcp
pnpm install && pnpm build
Then in settings:
{
"mcpServers": {
"hashlock": {
"command": "node",
"args": ["/path/to/hashlock-mcp/dist/index.js"],
"env": {
"HASHLOCK_ENDPOINT": "http://142.93.106.129/graphql",
"HASHLOCK_ACCESS_TOKEN": "your-jwt-token"
}
}
}
}
Tool Examples
Create an RFQ
"Create an RFQ to sell 2 ETH for USDT"
Tool: create_rfq
Input: { baseToken: "ETH", quoteToken: "USDT", side: "SELL", amount: "2.0" }
Respond to an RFQ
"Quote 3400 USDT per ETH on RFQ abc-123"
Tool: respond_rfq
Input: { rfqId: "abc-123", price: "3400.00", amount: "2.0" }
Check HTLC Status
"What's the HTLC status for trade xyz-789?"
Tool: get_htlc
Input: { tradeId: "xyz-789" }
Fund an HTLC
"Record my ETH lock transaction for trade xyz-789"
Tool: create_htlc
Input: { tradeId: "xyz-789", txHash: "0xabc...", role: "INITIATOR", chainType: "evm" }
Claim with Preimage
"Claim the HTLC using the preimage"
Tool: withdraw_htlc
Input: { tradeId: "xyz-789", txHash: "0xdef...", preimage: "0x1234..." }
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
HASHLOCK_ENDPOINT | No | http://142.93.106.129/graphql | GraphQL API URL |
HASHLOCK_ACCESS_TOKEN | Yes | — | JWT authentication token |
MCP Registry
This server is designed for submission to the Anthropic MCP Registry.
Server info:
- Name: hashlock
- Description: OTC crypto trading with HTLC atomic settlement
- Transport: stdio
- Auth: Bearer token via environment variable
License
MIT
相關伺服器
Cast
MCP server for Google Cast — discover devices, play media, control volume, launch apps, and manage queues over stdio
Context Lens
Semantic search knowledge base for MCP-enabled AI assistants
Android-Mobile-MCP
This MCP server enabling AI agents to control Android devices.
mcp-server-ollama-bridge
Bridge to local Ollama LLM server. Run Llama, Mistral, Qwen and other local models through MCP.
Gaggiuino MCP
An MCP server for the Gaggiuino open-source espresso machine, providing real-time local network access to machine status and shot data.
IcoGenie MCP
MCP server for AI-powered SVG icon generation. Generate production-ready icons from text descriptions. Supports single icons, bundles, style customization, and regeneration.
MCP HUB
The Ultimate Control Plane for MCP Unlock the full power of Model Context Protocol with zero friction. One-Click GPT Integration: Bridge the gap between MCP servers and ChatGPT/LLMs instantly. No more manual config hunting. Pro-Level Orchestration: Manage, monitor, and toggle multiple MCP tools from a single, intuitive dashboard. Secure by Design: Built-in support for complex auth flows and 2FA, making enterprise-grade tool integration seamless. Streamlined Debugging: Test queries and inspect tool responses in real-time without leaving the hub. Stop wrestling with JSON configs. Start building agentic workflows that actually work.
GuessMarket MCP
Prediction market trading server for GuessMarket. Browse markets, buy/sell shares, add/remove liquidity, check portfolios, and build on-chain transactions. 20+ tools.
Amazon Ads MCP Server
Connect Amazon Ads to Claude or ChatGPT via Two Minute Reports MCP and get accurate insights on sponsored products, ACOS, keywords, and budget.
Stock Analysis
An MCP server for stock analysis, offering tools for chip distribution, pattern analysis, trend reversal detection, and market scanning.