build_add_liquidity_tx
Build an unsigned transaction to add liquidity to a prediction market. Requires prior stablecoin approval. Returns LP tokens.
Read prediction markets, check your wallet's positions, and get the trade built as an unsigned transaction you sign yourself.
LABSCO SUMMARY
Trading servers usually ask for a private key. This one draws the line at building the transaction: research, balances, allowances and the encoded call all happen automatically, and the irreversible step stays with you.
A server over GuessMarket, a prediction market live on Ethereum, Base, Polygon, BSC and PulseChain. It splits cleanly in two: reads that come from the API or straight off-chain over public RPC, and builders that return unsigned EVM transactions. The server never holds a key — you sign and broadcast.
A wallet you sign with — every trading call returns an unsigned transaction, so nothing moves without your signature. The on-chain reads go through public RPC endpoints and need no API key. Amounts are human-readable and converted to the right decimals per chain, including the stablecoins that use different decimals depending on which chain they are on.
One command — npx -y guessmarket-mcp
USE CASES
List the active markets on the chain you use, then read the one that interests you — odds, volume, liquidity and when it closes.
Pull the timestamped price history and look at the trend before the current number.
Read the wallet's stablecoin balance and what the market is already approved to spend.
Take the approve-and-buy pair as two ordered transactions, or build the approval and the buy separately if you prefer to see them apart.
Read the position, then build the sale, or claim the winnings once the market has resolved.
Add or withdraw liquidity against a market, or create a new one through the MarketFactory with the question and end time you set.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
build_add_liquidity_txBuild an unsigned transaction to add liquidity to a prediction market. Requires prior stablecoin approval. Returns LP tokens.
build_approve_txBuild 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.
build_buy_shares_txBuild an unsigned transaction to buy YES or NO shares on a prediction market. Requires prior stablecoin approval. Returns shares based on CPMM pricing.
build_buy_with_approval_txBuild 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.
build_claim_winnings_txBuild an unsigned transaction to claim winnings from a resolved prediction market. Only works after the market has been resolved. Returns stablecoin.
build_create_market_txBuild an unsigned transaction to create a new prediction market via the MarketFactory. Returns the address of the new market contract in the transaction receipt.
build_remove_liquidity_txBuild an unsigned transaction to remove liquidity from a prediction market. Burns LP tokens and returns stablecoin.
build_sell_shares_txBuild an unsigned transaction to sell YES or NO shares on a prediction market. Returns stablecoin based on CPMM pricing.
get_abiGet 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.
get_allowanceCheck 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.
get_balanceGet a wallet's stablecoin (USDC/USDT) balance on a specific chain. Returns balance in both raw and human-readable format.
get_marketGet 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.
get_market_historyGet price history for a market. Returns timestamped YES/NO price data points for charting and trend analysis. Optionally specify chain_id and limit.
get_networksGet all blockchain networks GuessMarket is deployed on, with contract addresses (MarketFactory, FeeManager, Oracle, Stablecoin) for each chain. Essential for on-chain trading.
get_portfolioGet a wallet's trading activity across all GuessMarket markets. Returns trades with market address, outcome, shares, cost, and timestamp.
get_positionGet a wallet's share holdings on a specific prediction market. Returns YES shares, NO shares, and LP tokens.
list_marketsList prediction markets on GuessMarket. Filter by status (active/resolved/all) and chain_id. Returns market address, question, odds, volume, and end time.
BEFORE YOU INSTALL
17 tools when we connected.
CONTEXT COST
Rated by the size of the 17 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
Add the block to your client, or run the command directly.
{
"mcpServers": {
"guessmarket-mcp": {
"command": "npx",
"args": [
"-y",
"guessmarket-mcp"
]
}
}
}npx -y guessmarket-mcp