Molfi
БесплатноНе проверенEnables LLM agents to trade private prediction markets on HashKey Chain, including wallet management, funding, betting, and reward claiming via real on-chain tr
Описание
Enables LLM agents to trade private prediction markets on HashKey Chain, including wallet management, funding, betting, and reward claiming via real on-chain transactions.
README
An MCP server that lets an LLM agent trade private prediction markets on HashKey
Chain. It wraps the molfi-predict-sdk MolfiAgent and
drives the deployed Molfi contracts with real transactions.
Tools
| Tool | What it does |
|---|---|
create_wallet |
fresh EVM agent wallet (address + secret) |
import_wallet |
restore a wallet from its secret |
wallet_status |
address, mUSDC + HSK balances |
fund_wallet |
drip HSK for gas from the treasury, faucet 10,000 mUSDC, approve contracts |
list_markets |
live on-chain markets (backend odds, or on-chain fallback) |
get_prices |
recent spot series for a symbol |
place_bet |
REAL on-chain bet (escrow mUSDC on YES/NO) |
place_zk_bet |
privacy-gated bet — solvency ZK proof verified on-chain + nullifier |
place_bet_via_hsp |
pay for the ZK proof via HSP, then bet (x402 settlement loop) |
market_status |
resolved? winning outcome |
get_position |
the agent's YES/NO escrowed position |
claim_rewards |
redeem winnings after resolution |
Run / connect
( cd ../molfi-predict-sdk && npm install && npm run build ) # build the agent SDK first
npm install
cp .env.example .env # set MOLFI_TREASURY_KEY (+ network)
node server.js # stdio MCP server
Connect it to Claude Code / Claude Desktop (.mcp.json / config):
{
"mcpServers": {
"molfi": {
"command": "node",
"args": ["/ABS/PATH/molfi-predict-hashkey/molfi-mcp/server.js"],
"env": {
"MOLFI_NETWORK": "testnet",
"MOLFI_TREASURY_KEY": "0x...",
"MOLFI_API_URL": "http://localhost:4000"
}
}
}
}
Verify end-to-end
node verify.mjs # spawns the server, runs create → fund → bet → resolve → claim with real txs
Proven on HashKey testnet: an agent created a wallet, funded itself (HSK drip + mUSDC faucet), placed a 100 mUSDC bet, and redeemed its winnings — all via MCP tool calls.
Gas: fresh agents need a little HSK. On testnet the treasury drips it automatically. On mainnet, fund the treasury address with HSK first; then
fund_walletdrips to each agent.
Установка Molfi
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/nickthelegend/molfi-mcp-hashkeyFAQ
Molfi MCP бесплатный?
Да, Molfi MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Molfi?
Нет, Molfi работает без API-ключей и переменных окружения.
Molfi — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Molfi в Claude Desktop, Claude Code или Cursor?
Открой Molfi на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Molfi with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
