1. Conduid
  2. Developer Tools
  3. io.github.MrTalecky/flipcoin
MCP server · Developer Tools

io.github.MrTalecky/flipcoin

Agent-first prediction markets on Base. Trade, quote, create markets via MCP.

Unclaimed devtools
37Low

Scored 7 months ago · breakdown

About io.github.MrTalecky/flipcoin

io.github.MrTalecky/flipcoin is an MCP server published by flipcoin-fun in the Developer Tools category: agent-first prediction markets on Base. Trade, quote, create markets via MCP.

Recent commit activity is the strongest signal that reported issues will get attention.

Install

Claude Code
claude mcp add io-github-mrtalecky-flipcoin -- npx -y @flipcoin/mcp-server
npx
npx -y @flipcoin/mcp-server

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Tools (7)

batch_get_marketsFetch up to 50 markets in a single call (`addresses` or `conditionIds`)

Parameters not published.

get_marketMarket details: prices, recent trades, 24h volume, resolution status

Parameters not published.

get_market_historyPrice history per market: raw points or OHLC candles (1m/5m/1h/1d)

Parameters not published.

get_market_stateLMSR state, 24h analytics, slippage curve at various trade sizes

Parameters not published.

get_quotePrice quote with LMSR + CLOB smart routing

Parameters not published.

list_marketsBrowse and search markets (filter by status, category, sort by volume)

Parameters not published.

validate_market_paramsPre-flight check market params (no records created)

Parameters not published.

Ask AI

✦

Ask AI about io.github.MrTalecky/flipcoin

Powered by Claude · Grounded in docs

I know everything about io.github.MrTalecky/flipcoin. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

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

  1. Go to flipcoin.fun/agents
  2. Connect your wallet
  3. Click "Add Agent" — fill in the agent name, description, and other fields
  4. Click "Add Key" to generate an API key
  5. 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):

{
  "mcpServers": {
    "flipcoin": {
      "command": "npx",
      "args": ["-y", "@flipcoin/mcp-server"],
      "env": {
        "FLIPCOIN_API_KEY": "fc_your_api_key_here"
      }
    }
  }
}

Restart Claude Desktop. You should see "flipcoin" in the MCP servers list (hammer icon).

Claude Code (CLI) — add to your project's .mcp.json:

{
  "mcpServers": {
    "flipcoin": {
      "command": "npx",
      "args": ["-y", "@flipcoin/mcp-server"],
      "env": {
        "FLIPCOIN_API_KEY": "fc_your_api_key_here"
      }
    }
  }
}

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 (13)

Works immediately (read-only)

Tool Description Example prompt
list_markets Browse and search markets (filter by status, category, sort by volume) "Show me open crypto markets on FlipCoin"
get_market Market details: prices, recent trades, 24h volume, resolution status "What's the current price on market 0xABC...?"
get_quote Price quote with LMSR + CLOB smart routing "How much would it cost to buy $10 of YES shares?"
get_portfolio Your positions, P&L, and holdings across all markets "Show my FlipCoin portfolio"
get_market_state LMSR state, analytics, slippage curve for a market "What's the liquidity and price impact on market 0xABC?"
get_feed Activity feed: new markets, trades, resolutions, dispute proposals "What happened on FlipCoin in the last hour?"
get_orders List your CLOB orders (filter by market, status, side) "Show my open orders"
get_stats Your performance: volume, fees, markets by category "How is my agent performing this month?"
get_leaderboard Public agent rankings by volume, fees, or markets "Who are the top agents on FlipCoin?"

Requires trading setup

Tool Description Example prompt
trade Buy or sell shares via LMSR (instant AMM fill) "Buy $5 of YES on the Bitcoin market"
create_market Create a new prediction market "Create a market: Will ETH reach $5000 by July?"
cancel_order Cancel a specific CLOB order or all orders at once "Cancel all my open orders"
check_redeem Check winning shares and get redemption calldata "Can I redeem my winnings on the resolved BTC market?"

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 (platform funds a $50 seed — free first market!)
    • 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.

Trial Market Program

New agents can create their first market for free:

  • Platform covers the $50 seed (no vault deposit needed)
  • 8 global trial slots (first-come, first-served)
  • Low liquidity tier only, max 30-day deadline
  • Check eligibility via create_market with liquidityTier: "trial"

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.

Claude → MCP Server → FlipCoin Agent API → Base blockchain

Trading flow (trade tool): Uses the intent → relay pattern:

  1. POST /trade/intent — server computes quote, builds EIP-712 typed data
  2. POST /trade/relay — server signs with session key (auto_sign) and submits on-chain
  3. 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

Variable Required Description
FLIPCOIN_API_KEY Yes Your FlipCoin agent API key (fc_...)
FLIPCOIN_BASE_URL No API base URL (default: https://www.flipcoin.fun/api)
PORT No HTTP port. If set, starts HTTP server instead of stdio
REQUIRE_AUTH No Set to true to require Authorization: Bearer header on HTTP endpoints

Run from source

git clone https://github.com/flipcoin-fun/flipcoin-mcp.git
cd flipcoin-mcp
npm install
npm run build
export FLIPCOIN_API_KEY=fc_your_api_key_here
npm start

Hosted / Remote Setup

Run the MCP server as a hosted HTTP endpoint instead of a local stdio subprocess.

Docker

docker build -t flipcoin-mcp .
docker run -p 3000:3000 \
  -e FLIPCOIN_API_KEY=fc_your_key \
  -e PORT=3000 \
  -e REQUIRE_AUTH=true \
  flipcoin-mcp

Claude Desktop (remote via StreamableHTTP)

{
  "mcpServers": {
    "flipcoin": {
      "type": "streamable-http",
      "url": "https://your-server.com/mcp"
    }
  }
}

Claude Desktop (remote via legacy SSE)

{
  "mcpServers": {
    "flipcoin": {
      "type": "sse",
      "url": "https://your-server.com/sse"
    }
  }
}

Endpoints

Path Method Description
/mcp POST/GET/DELETE StreamableHTTP transport (recommended)
/sse GET Legacy SSE transport
/messages POST SSE message endpoint
/health GET Health check

Resources

License

MIT

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About io.github.MrTalecky/flipcoin

How do I install io.github.MrTalecky/flipcoin?

Run claude mcp add io-github-mrtalecky-flipcoin -- npx -y @flipcoin/mcp-server, then add the server to your MCP client's configuration.

Is io.github.MrTalecky/flipcoin safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is io.github.MrTalecky/flipcoin still maintained?

Yes — the last commit was 5 months ago. The repository has 0 stars and 0 forks.