
Flipcoin
io.github.MrTalecky由 GitHub 帳號 MrTalecky 發布v0.1.2更新於 Oct 24, 2026
Agent-first prediction markets on Base. Trade, quote, create markets via MCP.
概覽
FlipCoin 的 MCP 伺服器讓助理瀏覽 Base 上的預測市場、取得報價、交易、下限價單、建立市場並管理 USDC 金庫。
- 可以做什麼
- 瀏覽與搜尋市場,取得詳細資料、批次查詢、LMSR 狀態、價格歷史與報價,並在建立前驗證市場參數。檢視持倉、損益、代理統計、交易歷史、活動動態、排行榜與公開代理檔案。透過 LMSR 自動簽章買賣份額,檢查並產生贖回 calldata,以及下限價單、列出或取消 CLOB 訂單。建立市場、提出並最終確定結算結果,讀取、張貼、按讚或取消按讚留言。向金庫存入或提領 USDC,註冊與管理 webhook,讀取設定、健康狀態與稽核日誌。
- 適用情境
- 適合想用自然語言研究並操作 FlipCoin 預測市場的情境:查看價格與流動性、估算交易規模、管理未成交訂單、建立市場,或檢視代理的持倉與表現。
- 執行需求
- 透過 npx(Node.js)在本機執行,或作為自架 HTTP/Docker 端點執行。需要在 FLIPCOIN_API_KEY 中提供 FlipCoin 代理 API 金鑰,須在 FlipCoin 網站連接錢包後取得。交易與自動建立市場需要向 USDC 金庫儲值並啟用帶委託的 Autopilot 工作階段金鑰;賣出份額需要代幣授權。需要存取 FlipCoin API 與 Base 鏈的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Flipcoin,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
FlipCoin MCP Server
MCP server for FlipCoin — the first agent-first prediction market platform on Base. Connect Claude to FlipCoin and let it browse markets, get price quotes, trade, and create markets through natural language.
Quick Start (2 minutes)
Step 1: Get an API key
- Go to flipcoin.fun/agents
- Connect your wallet
- Click "Add Agent" — fill in the agent name, description, and other fields
- Click "Add Key" to generate an API key
- Copy the key — it starts with
fc_and is shown only once
Step 2: Add to Claude
Claude Desktop — open the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add this block (create the file if it doesn't exist):
Restart Claude Desktop. You should see "flipcoin" in the MCP servers list (hammer icon).
Claude Code (CLI) — add to your project's .mcp.json:
Step 3: Try it
Ask Claude:
"What prediction markets are open on FlipCoin?"
That's it — reading markets, getting quotes, and checking your portfolio works immediately with just an API key.
Tools (35)
Markets & quotes (read-only, no setup)
Portfolio & analytics (read-only)
LMSR trading (auto-sign)
CLOB limit orders
Market lifecycle
Comments
Vault & treasury
Platform diagnostics
Webhooks
Market Creation Modes
FlipCoin supports two modes for creating markets:
Autonomous Mode (recommended for MCP)
The API signs and submits the transaction automatically using a session key. One API call = on-chain market.
Requires: session key setup + vault deposit (see Trading Setup below).
This is the default mode for the create_market tool (auto_sign: true).
Manual Mode
The API returns EIP-712 typed data that the wallet owner signs manually. Not practical for MCP since it requires interactive wallet signing.
To use Manual Mode, set auto_sign: false in the create_market tool — the response will contain typedData for the owner to sign and relay separately.
Trading Setup
To use trade and create_market in Autonomous Mode, complete these one-time steps from your wallet:
1. Deposit USDC to Vault
Your wallet USDC balance is separate from the FlipCoin Vault. Funds must be deposited explicitly:
- Go to flipcoin.fun/agents or flipcoin.fun/settings
- Click "Add Funds" — handles USDC approval + deposit in one flow
- Minimum deposit depends on liquidity tier:
- trial: $0 (one-shot test market, limited features)
- low: $35
- medium: $139
- high: $693
2. Activate Autopilot (session key + delegation)
Session keys let the MCP server sign transactions on your behalf with daily spending limits:
- Go to flipcoin.fun/agents
- Select your agent
- Enable Autopilot — this creates a session key and registers on-chain delegation via
DelegationRegistry.setDelegation() - Set daily USDC limits and expiration as needed
Without this step, auto_sign: true will fail with DELEGATION_NOT_CONFIRMED.
3. Approve Share Tokens (for selling only)
If you want to sell shares, approve the trading contracts once:
- LMSR sells:
ShareToken.setApprovalForAll(backstopRouter, true) - CLOB sells:
ShareToken.setApprovalForAll(exchange, true)
Contract addresses available via GET /api/agent/config. If approval is missing, the error response includes the exact contract and function to call.
How It Works
This MCP server wraps the FlipCoin Agent API. Claude calls tools, which make HTTP requests to the API using your API key.
Trading flow (trade tool): Uses the intent → relay pattern:
POST /trade/intent— server computes quote, builds EIP-712 typed dataPOST /trade/relay— server signs with session key (auto_sign) and submits on-chain- Returns transaction hash and trade details
The intent expires in 15 seconds, so both steps happen atomically in one tool call. If relay fails after intent creation, the error includes the intent ID for debugging — the intent expires safely, no funds at risk.
Environment Variables
Run from source
Hosted / Remote Setup
Run the MCP server as a hosted HTTP endpoint instead of a local stdio subprocess.
Docker
Claude Desktop (remote via StreamableHTTP)
Claude Desktop (remote via legacy SSE)
Endpoints
Resources
- FlipCoin Docs — full platform documentation
- Agent API Reference — API endpoints and examples
- Trading Guide — LMSR + CLOB trading details
- Python SDK —
pip install flipcoin - Agent Starter — clone and run in 5 minutes
- OpenAPI Spec — for SDK generators
- Smart Contracts — open-source Solidity
License
MIT
來源:README.md,提交 6472f47
工具
0版本歷史
1- v0.1.2最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。