Manifold Markets

io.github.jbeshir由 GitHub 帳號 jbeshir 發布v1.0.2更新於 Oct 29, 2026

Search, read, bet on, create, and resolve prediction markets on Manifold.

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

Manifold Markets MCP 伺服器,讓助理用 Manifold 帳號搜尋、讀取、下注、建立與結算預測市場。

可以做什麼
  • 依關鍵字與篩選條件搜尋市場,讀取市場詳情、答案、說明與留言
  • 查詢使用者資料、目前登入帳號、下注紀錄與持倉
  • 下注與掛限價單(支援試運行)、賣出份額、取消未成交訂單
  • 建立、結算與關閉市場,發表留言,為市場增加 mana 流動性
  • 傳送 mana 給其他使用者,並檢視投資組合損益、24 小時變化與基準機率
適用情境
適合想讓助理在聊天客戶端內研究 Manifold 預測市場、模擬或執行交易、管理自己建立的市場,或檢視投資組合表現的人。
執行需求
以 stdio 方式在本機執行,可用預先編譯的執行檔、Go 1.27.3+ 原始碼或 Docker 部署。需要 Manifold Markets API 金鑰,透過環境變數 MANIFOLD_API_KEY 提供;可選的 MANIFOLD_API_URL 可覆寫預設 API 位址。需要能連線至 Manifold API 的網路。
安裝前請注意
MANIFOLD_API_KEY 可存取你的 Manifold 帳號,應妥善保管。多個工具會動用平台貨幣:place_bet、sell_shares、add_liquidity 與 send_mana 會花費或轉出 mana,create_market、resolve_market、close_market、add_comment 與 cancel_bet 會變更平台資料。測試下注時優先使用試運行選項,並留意市場資料與帳號操作會傳送到 Manifold API。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Manifold Markets,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Manifold Markets MCP Server

An MCP server for interacting with Manifold Markets, a prediction market platform. Provides 18 tools covering market discovery, trading (bets and limit orders), market management (creation, resolution, comments, liquidity), and portfolio analytics. Communicates over stdio and works with any MCP-compatible client such as Claude Desktop or Claude Code.

Getting Started

Requirements

Configuration

VariableRequiredDescription
MANIFOLD_API_KEYYesYour Manifold Markets API key
MANIFOLD_API_URLNoCustom API URL (default: https://api.manifold.markets)

Install from source

Requires Go 1.27.3+.

go install github.com/jbeshir/mcp-servers/manifold/cmd/manifold-mcp@latest

Pre-built binaries

Download from Releases.

Docker

docker build -t manifold-mcp ./manifolddocker run -e MANIFOLD_API_KEY=<your-key> manifold-mcp

Claude Desktop

json
{  "mcpServers": {    "manifold": {      "command": "/path/to/manifold-mcp",      "env": { "MANIFOLD_API_KEY": "<your-key>" }    }  }}

Claude Code

claude mcp add manifold -- env MANIFOLD_API_KEY=<your-key> /path/to/manifold-mcp

Tools

Read operations

ToolDescription
search_marketsSearch markets by keyword and filters
get_marketGet full market details including answers and description
get_userGet a user's profile by username
get_meGet the authenticated user's profile
list_betsList bets with optional filters
get_commentsGet comments on markets
get_positionsGet user positions for a specific market

Trading

ToolDescription
place_betPlace a bet or limit order (supports dryRun)
sell_sharesSell shares in a market
cancel_betCancel a pending limit order

Market management

ToolDescription
create_marketCreate a new market (binary, multiple choice, or numeric)
resolve_marketResolve a market you created
close_marketClose a market or change its closing time
add_commentComment on a market
add_liquidityAdd mana liquidity to a market
send_manaSend mana to other users

Analytics

ToolDescription
get_baselineGet deterministic baseline probability for a market at a past time (default: 24h)
get_portfolio_pnlGet full portfolio P&L summary with 24h changes for all positions

Key Concepts

  • Markets -- Questions that users trade on. Each market has a type (binary yes/no, multiple choice, pseudo-numeric, etc.), a probability or set of answer probabilities, and a closing time after which no new bets are accepted.
  • Mana -- The platform currency used for betting and trading. Users receive mana through deposits, trading profits, and transfers from other users. Mana is also used to add liquidity to markets or to send to other users.
  • Bets and shares -- Placing a bet on an outcome buys shares in that outcome. The price per share reflects the market's current probability. Shares can be sold back at any time before resolution.
  • Limit orders -- Instead of buying at the current price, a limit order specifies a probability threshold. The order stays open until it fills, expires, or is cancelled. Use place_bet with a limitProb parameter to create one.
  • Positions -- A user's current holdings in a market: which outcomes they hold shares in, how many, and their profit/loss.
  • Resolution -- The market creator decides the outcome (YES, NO, MKT for partial, or CANCEL). For multiple choice markets, a specific answer ID is resolved. Resolution triggers payouts to shareholders.
  • Liquidity -- Mana added to a market's pool to reduce slippage (the price impact of large bets). Higher liquidity means prices move less per bet.
  • Market types -- BINARY (yes/no), MULTIPLE_CHOICE (several named answers), FREE_RESPONSE (open-ended answers), PSEUDO_NUMERIC (numeric range mapped to a probability), BOUNTY, POLL, and NUMBER.
  • Dry runs -- The place_bet tool supports dryRun=true to simulate a bet without executing it, showing what the outcome and cost would be.

Architecture Overview

mermaid
graph LR    Client["MCP Client<br/>(Claude Desktop, Claude Code)"]    Server["manifold-mcp<br/>MCP Server"]    HTTP["HTTP Client"]    API["Manifold Markets<br/>REST API"]
    Client -- "JSON-RPC over stdio" --> Server    Server --> HTTP    HTTP -- "HTTPS + API key auth" --> API

The server has three internal layers:

  • cmd/manifold-mcp -- Entry point. Reads configuration from environment variables, creates the HTTP client and MCP server, and starts the stdio transport.
  • internal/server -- Registers all 18 MCP tools, routes incoming requests to handlers, and formats responses. Tool definitions are split across tools.go (read operations), tools_trading.go (trading), and tools_manage.go (market management).
  • internal/client -- REST client for the Manifold Markets API. Handles authentication (API key in the Authorization header), JSON serialization, and error handling.

Data Flow

A typical trading workflow: search for a market, inspect it, simulate a bet, then execute.

mermaid
sequenceDiagram    participant C as MCP Client    participant S as manifold-mcp    participant A as Manifold API
    C->>S: search_markets(term: "AI")    S->>A: GET /v0/search-markets?term=AI    A-->>S: Market list    S-->>C: Formatted results
    C->>S: get_market(marketId: "abc123")    S->>A: GET /v0/market/abc123    A-->>S: Full market details    S-->>C: Question, probability, answers
    C->>S: place_bet(contractId, amount, outcome, dryRun: true)    S->>A: POST /v0/bet (dryRun)    A-->>S: Simulated bet result    S-->>C: Expected shares, probability change
    C->>S: place_bet(contractId, amount, outcome)    S->>A: POST /v0/bet    A-->>S: Executed bet    S-->>C: Bet confirmation

來源:manifold/README.md,提交 27dc1b2

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v1.0.2最新Oct 29, 2026
  2. v1.0.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分