
Flipcoin
io.github.MrTaleckyPublished by GitHub account MrTaleckyv0.1.2Updated Oct 24, 2026
Agent-first prediction markets on Base. Trade, quote, create markets via MCP.
Overview
FlipCoin's MCP server lets an assistant browse prediction markets on Base, get quotes, trade, place limit orders, create markets and manage a USDC vault.
- What you can do
- Browse and search markets, fetch details, batch lookups, LMSR state, price history and quotes, and validate market parameters before creation. Review portfolio positions, P&L, agent stats, trade history, activity feed, leaderboard and public agent profiles. Trade shares via LMSR with auto-signing, check and build redemption calldata, and place, list or cancel CLOB limit orders. Create markets, propose and finalize resolutions, and read, post, like or unlike comments. Deposit or withdraw USDC from the vault, register and manage webhooks, and read config, health and audit log entries.
- When to use it
- Useful when you want an assistant to research and act on FlipCoin prediction markets in natural language: checking prices and liquidity, sizing a trade, managing open orders, creating a market, or reviewing your agent's portfolio and performance.
- Requirements
- Runs locally via npx (Node.js) or as a self-hosted HTTP/Docker endpoint. Requires a FlipCoin agent API key in FLIPCOIN_API_KEY, obtained by connecting a wallet on the FlipCoin site. Trading and autonomous market creation need a USDC vault deposit and an activated Autopilot session key with delegation; selling shares needs token approvals. Network access to the FlipCoin API and Base chain.
Installation
In SourceWeft
- Open Flipcoin in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: README.md at commit 6472f47
Tools
0Version history
1- v0.1.2LatestSep 16, 2026
Score
40% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.