Oracle3 prediction-market agent tools

Finance and commerceDocs and learning

Kalshi and Polymarket data, venue fees, no-arbitrage checks and paper execution for AI agents.

Your AI app calls the Oracle3 prediction-market agent tools MCP server, which does the finance and commerce and docs and learning work and sends the result back to the chat.

About Oracle3 prediction-market agent tools

Oracle3 prediction-market agent tools is a community MCP server from YichengYang-Ethan, filed in our directory under finance and commerce and docs and learning. Kalshi and Polymarket data, venue fees, no-arbitrage checks and paper execution for AI agents.

Oracle3 prediction-market agent tools runs on your own machine: your AI app starts it with the command uvx oracle3==1.3.0 mcp and talks to it over standard input and output.

Oracle3 prediction-market agent tools is listed in the official MCP registry as io.github.YichengYang-Ethan/oracle3, version 1.3.0.

At a glance

Publisher
YichengYang-Ethan (community)
Runs
Locally on your machine
Install from
Python package on PyPI: oracle3
Written in
Python
License
Apache-2.0
GitHub stars
574
Official MCP registry
io.github.YichengYang-Ethan/oracle3

How to set up Oracle3 prediction-market agent tools

  1. Install uv on the machine that runs your AI app, because Oracle3 prediction-market agent tools starts with uvx and fetches its Python package on first run.
  2. Check the Oracle3 prediction-market agent tools README for keys or settings; the registry lists none that Oracle3 prediction-market agent tools requires.
  3. Add Oracle3 prediction-market agent tools to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Oracle3 prediction-market agent tools to confirm the connection.
  5. Run one read-only task with Oracle3 prediction-market agent tools first, and keep your app asking before each tool call until the results look right.

Oracle3 prediction-market agent tools compared with similar servers

  • Agent Trade Kit by okx has fewer GitHub stars than Oracle3 prediction-market agent tools (526 against 574); both are community servers, and both run locally.
  • AlphaSift by ZhuLinsen has more GitHub stars than Oracle3 prediction-market agent tools (653 against 574); both are community servers, and both run locally.
  • Risk-Aware Trading Agents by jackson-cmd has fewer GitHub stars than Oracle3 prediction-market agent tools (521 against 574); both are community servers, and both run locally.

Before you connect Oracle3 prediction-market agent tools

  • Give Oracle3 prediction-market agent tools its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Oracle3 prediction-market agent tool call until you trust what it does with them.
  • Treat text that Oracle3 prediction-market agent tools fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Oracle3 prediction-market agent tools on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Oracle3 prediction-market agent tools

How marketing and sales teams put Oracle3 prediction-market agent tools to work, by company size. Pick the size closest to yours and start Oracle3 prediction-market agent tools on one use case.

Small business

  • A small business can ask Oracle3 prediction-market agent tools which products and customers drive margin, then plan promotions around them.
  • Owners can use Oracle3 prediction-market agent tools to check refunds, failed payments and churn reasons without opening three dashboards.
  • A small business can use Oracle3 prediction-market agent tools to keep help docs and how-tos current, answering customer questions before they become tickets.
  • Oracle3 prediction-market agent tools runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Oracle3 prediction-market agent tools to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Oracle3 prediction-market agent tools to check spend against budget each week and move money to what's working.
  • Marketing teams can connect Oracle3 prediction-market agent tools so agents write from current product docs, keeping launch copy accurate.
  • Start Oracle3 prediction-market agent tools on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Oracle3 prediction-market agent tools read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Oracle3 prediction-market agent tools to answer revenue questions by channel and region with figures finance signs off on.
  • Enterprises can serve approved docs through Oracle3 prediction-market agent tools, so every agent answers from the same source of truth.
  • Oracle3 prediction-market agent tools is a community server, so have security review the code and pin a version before Oracle3 prediction-market agent tools touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Oracle3 prediction-market agent tools README

From YichengYang-Ethan/oracle3-prediction-market-agent on GitHub, shared under its Apache-2.0 license. Images are left out; the original has them.

README.md

Oracle3

Build prediction-market agents that discover markets, analyze opportunities, and test strategies.

Connect AI agents to Kalshi and Polymarket through MCP. Give them reusable Skills for market research and strategy development, then build on a Python engine for paper and live execution.

14 MCP tools · 6 agent Skills · Kalshi & Polymarket data · Python 3.10+

Quickstart · MCP tools · Agent Skills · Project and contributions · Documentation (yichengyang-ethan.github.io/oracle3-prediction-market-agent)

Why Oracle3

  • A connected research workflow. Discover contracts, inspect their rules and order books, compare related outcomes, and track simulated positions.
  • Calculations that include trading costs. Five relationship checks return candidate baskets, per-leg fees, and calculated net edge.
  • Tools and workflows for agents. Use MCP for structured access and Skills for repeatable research, strategy authoring, and operations.
  • An engine you can extend. Build strategies with Python interfaces, risk controls, and paper/live venue adapters.
  • A foundation for experiments. Reproducible software checks, automated tests, and installed-package validation make the implementation inspectable.

Public Kalshi and Polymarket market reads need no exchange credentials. MCP provides market data, calculations, and a local paper ledger; real-order execution uses the separate CLI/Python engine.

Quickstart

Install the current development checkout:

git clone https://github.com/YichengYang-Ethan/oracle3-prediction-market-agent.git
cd oracle3-prediction-market-agent
python -m venv .venv
.venv/bin/python -m pip install -e .

Connect it to Claude Code from this directory:

claude mcp add oracle3 -- "$PWD/.venv/bin/oracle3-mcp"

For other MCP clients, configure the absolute path to .venv/bin/oracle3-mcp as the command with an empty argument list. On Windows, use .venv\Scripts\python.exe and .venv\Scripts\oracle3-mcp.exe.

Client configuration and first tool call · Published-package installation

Give your agent a first task

Find Kalshi and Polymarket contracts about the next Fed rate decision. Compare their outcome definitions, resolution rules, and order-book quotes. Summarize the markets with their IDs, prices, and the assumptions needed to compare them.

For a calculation that works offline after installation:

Use Oracle3 to check an implication: A implies B. A has a YES bid of $0.60 and B has a YES ask of $0.55. Use the default Kalshi taker fee schedule and 100 contracts per leg. Show the basket, gross edge, fees, and net edge.

The synthetic example returns $5.00 gross edge − $3.4125 fees = $1.5875 calculated net edge, conditional on the supplied implication and quotes. See exact inputs and output.

What agents can do

Task Tools Result
Discover markets search_markets, get_market Contracts, metadata, and available resolution rules
Inspect market conditions get_quote, get_orderbook Prices, fee information, and displayed depth
Analyze related contracts check_constraint, check_constraint_live Baskets and net edge under a stated relationship
Calculate fees and model values trading_fee, fair_value Fee estimates and parameterized model outputs
Get a calibrated probability model_probability A machine-learning probability next to the market price, with the model's out-of-sample scores (how it was built and tested)
Try a paper entry paper_order, paper_portfolio Simulated fills and holdings in a local ledger

Relationship checks cover implication, exclusivity, complement, same event, and event sum. They expose assumptions with their results, giving agents and researchers a common calculation layer.

All 14 MCP tools · Workflow examples

Reusable agent Skills

The repository includes six workflows that help agents move from individual tool calls to complete tasks:

Skill Use it to
Data discovery Find markets and organize research inputs
Constraint arbitrage Examine related contracts and calculate fee-aware baskets
Quant strategy authoring Develop strategies with Oracle3's Python interfaces
Agent strategy authoring Build agent-driven decision workflows
Paper operations Run and inspect simulated trading sessions
Live operations Configure and operate the separate live engine

Claude Code project copies are included in .claude/skills/. Open the checkout as your project, or use your client's supported Skill installation mechanism. Skill setup.

For AI agents: start with llms.txt for task routing, the MCP reference for tool schemas, and AGENTS.md for contributing code.

Build with Python and the CLI

Use the same project for research scripts, agent strategies, and engine operations:

.venv/bin/oracle3 market search --exchange kalshi --query "fed" --json
.venv/bin/oracle3 market search --exchange polymarket --query "fed decision" --json
Component Build with it
MCP server Structured market access and local paper operations for agents
Relations and fees Shared calculations for related-contract strategies
Strategies Logical-relation, statistical, and model-driven approaches
Trading engine Paper/live adapters for Kalshi, Polymarket, and Solana via DFlow
Pricing Wang-transform models and estimators for research
oracle3-extras Optional venue, data-provider, and wallet integrations

CLI guide · Integration guide · Execution reference · Wang MLE tutorial

Built for experimentation

Oracle3 combines a concrete decision environment with structured tools, observable state, and a software validation harness. This supports work on agent interfaces, workflow guidance, and reproducible evaluation.

CI runs automated tests and checks the built package through real MCP sessions on SDK 1.x and 2.x. The harness documentation explains the reproducible checks. Model-level agent evaluation is a next research direction.

Project overview and Yicheng Yang's contributions · Fee-frontier study · Companion pricing research

Contribute

Help build better agent workflows, labeled evaluation tasks, strategy examples, and client integrations. New venue, data-provider, and wallet integrations start in oracle3-extras.

Contributing guide · Open problems · Discussions

Origin and attribution

Oracle3 began as ulab-uiuc/oracle3, developed by Yicheng Yang and Haofei Yu at U Lab (University of Illinois Urbana-Champaign). It also bundles the lab's Coinjure package. Yicheng Yang continues to develop and maintain the extensions in this repository. Read the project story and contributions.

We acknowledge the foundational work of the Coinjure team at the University of Illinois Urbana-Champaign, Haofei Yu, Yicheng Yang, Yuxiang Liu, and Prof. Jiaxuan You, on which Oracle3 builds.

For software citation, use CITATION.cff and Zenodo. For the pricing model, see the working paper.

License

Apache 2.0; see LICENSE. Original U Lab and Coinjure portions retain their MIT license in NOTICE.

This software is for research and education. Trading involves financial risk.

Questions about Oracle3 prediction-market agent tools

What is the Oracle3 prediction-market agent tools MCP server?

Kalshi and Polymarket data, venue fees, no-arbitrage checks and paper execution for AI agents. Oracle3 prediction-market agent tools is maintained by YichengYang-Ethan on GitHub at YichengYang-Ethan/oracle3-prediction-market-agent, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Oracle3 prediction-market agent tools MCP server?

Add Oracle3 prediction-market agent tools to your AI app's MCP config with the command uvx oracle3==1.3.0 mcp. In Claude Code, run claude mcp add --transport stdio oracle3-prediction-market-agent -- uvx oracle3==1.3.0 mcp. To run Oracle3 prediction-market agent tools this way you need uv installed.

Does Oracle3 prediction-market agent tools need an API key?

The registry lists no required keys for Oracle3 prediction-market agent tools. Check the Oracle3 prediction-market agent tools README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Oracle3 prediction-market agent tools an official MCP server?

No. Oracle3 prediction-market agent tools is a community server maintained by YichengYang-Ethan. Community servers can be excellent; read the code and the open issues before you give Oracle3 prediction-market agent tools access to company data.

What license is Oracle3 prediction-market agent tools under?

Oracle3 prediction-market agent tools is released under the Apache-2.0 license, according to its GitHub repository. The license covers the code of Oracle3 prediction-market agent tools; the service it connects to has its own terms.