# bolivian-peru/baozi-mcp [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/bolivian-peru/baozi-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 440  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/bolivian-peru-baozi-mcp

## Description
68 tools for AI agents to interact with Solana prediction markets on Baozi.bet — browse markets, place bets, claim winnings, create markets, and earn affiliate commissions.

## Tools
Capabilities this server exposes over MCP:

- **list_markets** — List boolean markets with filtering by layer/status
- **get_market** — Get detailed market info by public key
- **get_quote** — Calculate expected payout for a bet
- **list_race_markets** — List multi-outcome race markets
- **get_race_market** — Get race market details
- **get_race_quote** — Calculate race bet payout
- **build_bet_transaction** — Build unsigned bet tx (supports affiliate)
- **build_race_bet_transaction** — Build unsigned race bet tx
- **build_claim_winnings_transaction** — Claim winnings from resolved market
- **build_claim_refund_transaction** — Claim refund from cancelled market
- **build_claim_race_winnings_transaction** — Claim race market winnings
- **build_claim_race_refund_transaction** — Claim race market refund
- **build_claim_affiliate_transaction** — Claim affiliate earnings
- **build_batch_claim_transaction** — Claim multiple positions at once
- **preview_create_market** — Validate params and show costs
- **build_create_lab_market_transaction** — Create Lab (community) market
- **build_create_private_market_transaction** — Create Private (invite-only) market
- **build_create_race_market_transaction** — Create Race (multi-outcome) market
- **get_creation_fees** — Get fee structure by layer
- **get_platform_fees** — Get platform fee rates
- **get_timing_rules** — Get v6.3 timing constraints
- **generate_invite_hash** — Generate hash for private markets
- **build_propose_resolution_transaction** — Propose market outcome
- **build_resolve_market_transaction** — Direct resolve (creator)
- **build_finalize_resolution_transaction** — Finalize after challenge period
- **build_propose_race_resolution_transaction** — Propose race outcome
- **build_resolve_race_transaction** — Resolve race market
- **build_finalize_race_resolution_transaction** — Finalize race resolution
- **build_flag_dispute_transaction** — Flag disputed resolution
- **build_flag_race_dispute_transaction** — Flag race dispute
- **build_vote_council_transaction** — Council vote on dispute
- **build_vote_council_race_transaction** — Council vote on race dispute
- **build_add_to_whitelist_transaction** — Add user to private market
- **build_remove_from_whitelist_transaction** — Remove from whitelist
- **build_create_race_whitelist_transaction** — Create race whitelist
- **build_add_to_race_whitelist_transaction** — Add to race whitelist
- **build_remove_from_race_whitelist_transaction** — Remove from race whitelist
- **build_create_creator_profile_transaction** — Create on-chain profile
- **build_update_creator_profile_transaction** — Update profile settings
- **build_claim_creator_transaction** — Claim creator fees
- **build_close_market_transaction** — Stop betting on market
- **build_extend_market_transaction** — Extend market deadline
- **build_close_race_market_transaction** — Close race market
- **build_extend_race_market_transaction** — Extend race deadline
- **build_cancel_market_transaction** — Cancel market (refunds enabled)
- **build_cancel_race_transaction** — Cancel race market
- **check_affiliate_code** — Check if code is available
- **suggest_affiliate_codes** — Generate code suggestions
- **get_affiliate_info** — Get affiliate account info
- **get_my_affiliates** — List wallet's affiliates
- **get_referrals** — List referred users
- **get_agent_network_stats** — AI agent network stats
- **format_affiliate_link** — Generate referral link
- **get_commission_info** — Commission structure
- **build_register_affiliate_transaction** — Register new affiliate
- **build_toggle_affiliate_transaction** — Activate/deactivate
- **get_positions** — Get wallet positions
- **get_claimable** — Get claimable winnings/refunds
- **validate_market_params** — Validate against v6.3 rules
- **validate_bet** — Validate bet parameters
- **simulate_transaction** — Pre-sign simulation check
- **get_resolution_status** — Market resolution state
- **get_disputed_markets** — List disputed markets
- **get_markets_awaiting_resolution** — Pending resolution markets

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "baozi-mcp": {
    "command": "npx",
    "args": ["-y","@baozi.bet/mcp-server"]
  }
}
```

## Documentation

## What bolivian-peru/baozi-mcp MCP server does

bolivian-peru/baozi-mcp MCP server exposes Baozi.bet prediction-market operations to MCP-compatible agents. The market-reading tools cover boolean markets and multi-outcome race markets, including listings, detailed market records, and payout estimates. The server also supports transaction construction for betting, claims, market creation, resolution, disputes, market administration, creator profiles, affiliate activity, and whitelist management.

Use it for agent workflows that need to discover available markets, estimate a potential payout, prepare a bet, or manage an existing position. It also supports market creators and participants who need to create markets, propose or finalize outcomes, flag disputes, or claim eligible funds.

## How it works

The agent calls an MCP tool, and the server either returns market data or builds an unsigned Solana transaction. Transaction results are represented as base64 data for a wallet or client to sign and submit to the Solana network. The documented flow keeps signing with the user: the agent builds the transaction, while the wallet authorizes it. Private keys are not sent to the agent.

Betting tools cover standard and race markets. Claim tools handle winnings, refunds for cancelled markets, affiliate earnings, and batch claims. Creation and resolution flows include validation or fee lookups, proposal and finalization steps, direct creator resolution, and dispute actions.

## Setup and configuration

Install the package globally with npm or run it through npx:

```bash
npm install -g @baozi.bet/mcp-server
npx @baozi.bet/mcp-server
```

The server uses stdio transport. Claude Desktop, Claude Code, Cursor, and Windsurf can launch it with `npx @baozi.bet/mcp-server` in their MCP configuration. Other MCP-compatible agents can point their stdio client at the same command.

## Tools and capabilities

The toolset includes capabilities for:

- Listing and inspecting boolean and race markets, with quote calculation.
- Building standard and race bet transactions.
- Claiming winnings, refunds, affiliate earnings, or multiple positions in one operation.
- Previewing market creation, checking fee and timing rules, and creating Lab, Private, or Race markets.
- Proposing, resolving, finalizing, and disputing market outcomes.
- Managing private-market invites and whitelists.
- Registering and managing affiliate accounts, referrals, links, and commission information.
- Closing, extending, or cancelling markets, plus managing creator profiles.

The documented market parameters include a 0.01–100 SOL bet range and a 0.01 SOL Lab-market creation fee. These are product rules described by the repository and may depend on the relevant market layer or current platform configuration.

## Limitations and notes

The server prepares transactions but does not sign them on the agent’s behalf. A compatible wallet or client must complete signing before a transaction can be submitted to Solana. The material describes real SOL betting and market-management actions, so agents should obtain explicit user approval before signing financial transactions.

The repository advertises both a 68-tool listing in the supplied directory data and a 76-tool README count. The capabilities above reflect the named tools and categories provided, rather than treating either count as a complete inventory.

_Full upstream README: https://allmcps.com/mcp/bolivian-peru-baozi-mcp/readme_

