GuessMarket MCP Server
Provides access to GuessMarket prediction markets deployed on Ethereum, enabling market discovery, price history and portfolio reads, on-chain balance/position checks, and building unsigned transactions for trading, liquidity provision, winnings claims, and market creation.
Provides access to GuessMarket prediction markets deployed on Polygon, enabling market discovery, price history and portfolio reads, on-chain balance/position checks, and building unsigned transactions for trading, liquidity provision, winnings claims, and market creation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GuessMarket MCP Server show active prediction markets on Base with their YES and NO odds"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GuessMarket MCP Server
MCP server for GuessMarket prediction markets. Gives AI agents full access to discover markets, analyze prices, check on-chain balances and positions, build trading transactions, and get smart contract ABIs.
Live on 5 EVM chains: Ethereum, Base, Polygon, BSC, and PulseChain.
Tools
Read-Only (API)
Tool | Description |
| List prediction markets with filters for status and chain |
| Get detailed market info: question, YES/NO odds, volume, liquidity, end time |
| Get timestamped price history for trend analysis |
| Get all supported chains with contract addresses |
| Get a wallet's trading activity across all markets |
| Get smart contract ABI for custom integrations |
Read-Only (On-Chain)
Tool | Description |
| Get a wallet's stablecoin (USDC/USDT) balance on any chain |
| Check how much stablecoin a market is approved to spend from a wallet |
| Get a wallet's YES shares, NO shares, and LP tokens on a specific market |
These tools read directly from the blockchain via public RPC endpoints. No API keys required.
Transaction Builders
All transaction builders return unsigned EVM transaction objects. Sign with your wallet and broadcast to the chain. Amounts are human-readable (e.g. "10.5") and automatically converted to the correct decimals per chain (6 for USDC, 18 for BSC USDT).
Tool | Description | Key Parameters |
| Approve stablecoin spending for a market |
|
| Buy YES or NO outcome shares |
|
| Sell YES or NO outcome shares |
|
| Add stablecoin liquidity, receive LP tokens |
|
| Burn LP tokens, receive stablecoin back |
|
| Claim winnings from a resolved market |
|
| Create a new prediction market |
|
| Approve + buy in one call (returns 2 ordered transactions) |
|
Slippage Protection
build_buy_shares_tx and build_sell_shares_tx accept optional slippage parameters (min_shares and min_usdc). When set to 0 (default), the server returns a warning. Set a minimum to protect against front-running.
Related MCP server: telekash-mcp-server
Trading Flow
Buy Shares
1. list_markets → Find a market to trade
2. get_market → Check current odds and liquidity
3. get_balance → Check your stablecoin balance
4. get_allowance → Check if approval is needed
5. build_approve_tx → Approve stablecoin spending (if needed)
6. build_buy_shares_tx → Buy YES or NO shares
7. Sign and broadcast transactions with your wallet
8. get_position → Verify your sharesOr combine steps 5-6 with build_buy_with_approval_tx which returns both transactions in order.
Sell Shares
1. get_position → Check your share holdings
2. build_sell_shares_tx → Sell shares back to the market
3. Sign and broadcast the transaction
4. get_balance → Verify stablecoin receivedProvide Liquidity
1. build_approve_tx → Approve stablecoin spending
2. build_add_liquidity_tx → Deposit stablecoin, receive LP tokens
3. get_position → Verify LP tokens received
4. build_remove_liquidity_tx → Later: burn LP tokens to withdrawCreate a Market
1. build_create_market_tx → Deploy a new prediction market
2. Sign and broadcast — the new market address is in the tx receiptTransaction Response Format
{
"transaction": {
"to": "0x...",
"data": "0x...",
"chainId": 8453,
"value": "0x0"
},
"description": "Buy YES shares for 10 USDC on market 0x... (Base Mainnet)",
"meta": {
"chain": "Base Mainnet",
"stablecoin": "USDC",
"outcome": "YES",
"function": "buyShares(uint8,uint256,uint256)"
},
"warnings": []
}Quickstart
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"guessmarket": {
"command": "npx",
"args": ["-y", "guessmarket-mcp"]
}
}
}Claude Code
Add to your project with the CLI:
claude mcp add guessmarket -- npx -y guessmarket-mcpOr add to .mcp.json in your project root:
{
"mcpServers": {
"guessmarket": {
"command": "npx",
"args": ["-y", "guessmarket-mcp"]
}
}
}VS Code
Add to your VS Code settings or .vscode/mcp.json:
{
"mcp": {
"servers": {
"guessmarket": {
"command": "npx",
"args": ["-y", "guessmarket-mcp"]
}
}
}
}Supported Chains
Chain | Chain ID | Stablecoin |
Ethereum | 1 | USDC (6 decimals) |
Base | 8453 | USDC (6 decimals) |
Polygon | 137 | USDC (6 decimals) |
BSC | 56 | USDT (18 decimals) |
PulseChain | 369 | USDC (6 decimals) |
Configuration
No API keys required — the server uses the public GuessMarket REST API.
Custom API URL
By default the server connects to https://guessmarket.com/api/guessmarket/v1. Override with an environment variable:
{
"mcpServers": {
"guessmarket": {
"command": "npx",
"args": ["-y", "guessmarket-mcp"],
"env": {
"GUESSMARKET_API_URL": "https://your-instance.com/api/guessmarket/v1"
}
}
}
}Architecture
AI Agent <--> MCP Server <--> GuessMarket REST API (market data)
| |
| └───────> Public RPCs (on-chain reads)
| |
| 5 EVM Chains
| (Ethereum, Base, Polygon,
| BSC, PulseChain)
|
└── Signs & broadcasts unsigned transactions on-chainThe MCP server provides market data (via REST API), reads on-chain state (via public RPC endpoints), and builds unsigned transactions (via local ABI encoding). The agent signs transactions with its own wallet and broadcasts directly to the blockchain.
Requirements
Node.js 18 or later (uses native
fetch)
Development
npm install
npm run build
node build/index.jsLicense
MIT
Available Tools
17 toolsbuild_add_liquidity_txA
Build an unsigned transaction to add liquidity to a prediction market. Requires prior stablecoin approval. Returns LP tokens.
Inputs: amount (required), chain_id (required), market_address (required).
build_approve_txA
Build an unsigned ERC-20 approve transaction to let a prediction market spend your stablecoin. Must be signed and broadcast before buying shares or adding liquidity.
Inputs: amount (required), chain_id (required), market_address (required).
build_buy_with_approval_txA
Build TWO unsigned transactions: (1) approve stablecoin spending and (2) buy shares. Convenience tool that combines approve + buyShares. Both must be signed and sent in order.
Inputs: amount (required), outcome (required), chain_id (required), market_address (required), +1 more.
build_claim_winnings_txA
Build an unsigned transaction to claim winnings from a resolved prediction market. Only works after the market has been resolved. Returns stablecoin.
Inputs: chain_id (required), market_address (required).
build_create_market_txB
Build an unsigned transaction to create a new prediction market via the MarketFactory. Returns the address of the new market contract in the transaction receipt.
Inputs: chain_id (required), end_time (required), question (required).
build_remove_liquidity_txA
Build an unsigned transaction to remove liquidity from a prediction market. Burns LP tokens and returns stablecoin.
Inputs: chain_id (required), lp_tokens (required), market_address (required).
get_abiA
Get the ABI (Application Binary Interface) for a GuessMarket smart contract. Use this to build transactions for on-chain trading. Valid contracts: PredictionMarket, MarketFactory, ERC20, FeeManager, Oracle, SimpleOracle.
Inputs: contract (required).
get_allowanceA
Check how much stablecoin a prediction market contract is approved to spend from a wallet. Use this before buying shares to see if an approve transaction is needed.
Inputs: wallet (required), chain_id (required), market_address (required).
get_balanceA
Get a wallet's stablecoin (USDC/USDT) balance on a specific chain. Returns balance in both raw and human-readable format.
Inputs: wallet (required), chain_id (required).
get_marketB
Get detailed info for a single prediction market by its contract address. Returns question, current YES/NO odds, volume, liquidity, end time, resolution status, and chain.
Inputs: address (required).
get_market_historyB
Get price history for a market. Returns timestamped YES/NO price data points for charting and trend analysis. Optionally specify chain_id and limit.
Inputs: address (required), limit, chain_id.
get_networksA
Get all blockchain networks GuessMarket is deployed on, with contract addresses (MarketFactory, FeeManager, Oracle, Stablecoin) for each chain. Essential for on-chain trading.
Inputs: no named parameters.
get_portfolioB
Get a wallet's trading activity across all GuessMarket markets. Returns trades with market address, outcome, shares, cost, and timestamp.
Inputs: wallet (required), limit, offset.
get_positionA
Get a wallet's share holdings on a specific prediction market. Returns YES shares, NO shares, and LP tokens.
Inputs: wallet (required), chain_id (required), market_address (required).
list_marketsA
List prediction markets on GuessMarket. Filter by status (active/resolved/all) and chain_id. Returns market address, question, odds, volume, and end time.
Inputs: page, status, chain_id, per_page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
The set splits cleanly into read tools (get_*) and transaction builders (build_*_tx), and each targets a distinct resource or action. The only real overlap is build_buy_with_approval_tx, which duplicates the combination of build_approve_tx + build_buy_shares_tx, and the approve/allowance pair could momentarily confuse an agent, but descriptions clarify the convenience role.
Two predictable patterns are used throughout: get_<resource> for queries and build_<action>_tx for unsigned transaction builders. Every tool follows its family's convention with no camelCase mixing or vague verbs.
At 17 tools it sits just above the ideal range, but every tool maps to a concrete DeFi operation (query, approve, buy, sell, add/remove liquidity, claim, create market). The one arguably redundant tool is build_buy_with_approval_tx, which is a convenience wrapper rather than a new capability.
The surface covers the full prediction-market lifecycle: network/contract discovery, market listing and detail, price history, ABI retrieval, balance/allowance/position queries, plus approve, buy, sell, add/remove liquidity, claim winnings, and market creation. No obvious dead ends for an agent executing an on-chain trading workflow.
Maintenance
Related MCP Connectors
Trading tools for AI agents: token risk checks, swap quotes, unsigned swaps, holdings on 5 chains.
Sports prediction markets for AI agents — live prices, quotes, orders, and positions.
Polymarket in your AI: market rules, real fill costs, who is trading, top traders. Read-only.
Verified EVM, Aptos and finance tools for AI agents; gas for 14 chains. Pay per call (x402).
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceTrade and monitor prediction markets across Polymarket, Kalshi, Opinion, Limitless, and PredictFun from any AI agent. Unified real-time data, live orderbook streaming, and order execution — one API key, one interface, five exchanges.-
- AlicenseAqualityDmaintenancePrediction market probability oracle for AI agents. 26 tools across 500+ live markets from Kalshi and Polymarket. Cross-source arbitrage detection, structured TPF signals, Kelly Criterion sizing, agent performance tracking, and webhook alerts.970 npm1MIT
- AlicenseBqualityDmaintenanceEnables AI agents to trade Solana prediction markets, including market creation, betting, claims, and affiliate management, all without exposing private keys.7699 npm1MIT

Veynor MCP Serverofficial
FlicenseNot gradedqualityDmaintenancePrediction market intelligence for AI agents, enabling real-time access to whale trades, market data, signals, and AI-synthesized analysis from Kalshi and Polymarket via a standardized protocol.-