
Manifold Markets
STDIOMCP server for Manifold Markets prediction markets integration and interaction
MCP server for Manifold Markets prediction markets integration and interaction
An MCP server for interacting with Manifold Markets prediction markets. This server provides comprehensive access to Manifold's features through a clean MCP interface, enabling sophisticated market interactions and collective intelligence mechanisms.
The server implements a complete mapping of Manifold Markets' API capabilities through a structured tool system:
create_market
: Create markets (BINARY, MULTIPLE_CHOICE, PSEUDO_NUMERIC, POLL)unresolve_market
: Revert resolved marketsclose_market
: Close markets for tradingadd_answer
: Add options to multiple choice marketsfollow_market
: Track markets of interestreact
: Like/dislike markets and commentsadd_bounty
: Add bounties for analysisaward_bounty
: Reward valuable contributionsplace_bet
: Execute market tradescancel_bet
: Cancel limit orderssell_shares
: Liquidate positionsadd_liquidity
: Provide market liquidityremove_liquidity
: Withdraw provided liquiditysearch_markets
: Find markets with filtersget_market
: Detailed market informationget_user
: User profile dataget_positions
: Portfolio trackingsend_mana
: Transfer mana between usersThe server has been tested through comprehensive interaction trajectories:
Market Discovery & Following
Trading Operations
Permission Management
These operations are implemented but require specific user roles:
npm install manifold-mcp-server
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
:
{ "mcpServers": { "manifold": { "command": "node", "args": ["/path/to/manifold-mcp-server/build/index.js"], "env": { "MANIFOLD_API_KEY": "your_api_key_here" } } } }
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
:
{ "mcpServers": { "manifold": { "command": "node", "args": ["/path/to/manifold-mcp-server/build/index.js"], "env": { "MANIFOLD_API_KEY": "your_api_key_here" } } } }
Create a new prediction market:
{ outcomeType: 'BINARY' | 'MULTIPLE_CHOICE' | 'PSEUDO_NUMERIC' | 'POLL' | 'BOUNTIED_QUESTION' question: string description?: string | { type: 'doc' content: any[] } closeTime?: number // Unix timestamp ms visibility?: 'public' | 'unlisted' initialProb?: number // Required for BINARY (1-99) min?: number // Required for PSEUDO_NUMERIC max?: number // Required for PSEUDO_NUMERIC isLogScale?: boolean initialValue?: number // Required for PSEUDO_NUMERIC answers?: string[] // Required for MULTIPLE_CHOICE/POLL addAnswersMode?: 'DISABLED' | 'ONLY_CREATOR' | 'ANYONE' shouldAnswersSumToOne?: boolean totalBounty?: number // Required for BOUNTIED_QUESTION }
Unresolve a previously resolved market:
{ contractId: string answerId?: string // For multiple choice markets }
Close a market for trading:
{ contractId: string closeTime?: number // Optional close time }
Follow or unfollow a market:
{ contractId: string follow: boolean }
React to markets or comments:
{ contentId: string contentType: 'comment' | 'contract' remove?: boolean reactionType: 'like' | 'dislike' }
Place a bet on a market:
{ marketId: string amount: number outcome: 'YES' | 'NO' limitProb?: number // 0.01-0.99 }
Sell shares in a market:
{ marketId: string outcome?: 'YES' | 'NO' shares?: number // Defaults to all }
Add liquidity to market pool:
{ marketId: string amount: number }
Remove liquidity from market pool:
{ contractId: string amount: number }
The server implements comprehensive error handling:
Input Validation
API Communication
Business Logic
Error Response Format
{ code: ErrorCode message: string details?: any }
# Clone the repository git clone https://github.com/bmorphism/manifold-mcp-server.git cd manifold-mcp-server # Install dependencies npm install # Build npm run build # Run tests npm test
Contributions welcome! Areas of interest:
MIT