PluginBench
MCP Server
Active
MIT

io.github.Whatsonyourmind/oraclaw MCP Server

io.github.Whatsonyourmind/oraclaw

17 deterministic optimization, simulation, and forecasting tools for AI agents—sub-25ms, no LLM cost.

What is the io.github.Whatsonyourmind/oraclaw MCP server?

OraClaw is an MCP server that gives AI agents access to 17 deterministic numerical tools for optimization, simulation, forecasting, and risk analysis. Instead of relying on LLM reasoning for math-heavy decisions, agents call tools like bandit selection, constraint solving, Monte Carlo simulation, and time-series forecasting—each returning structured JSON in under 25ms with zero token cost.

OraClaw solves the problem that LLMs generate plausible text, not mathematically optimal answers. It exposes 17 tools covering multi-armed bandits, linear/integer programming, Monte Carlo simulation, ARIMA forecasting, anomaly detection, graph analysis, and Bayesian inference. Use it when your AI agent needs to pick the statistically best A/B test variant, allocate a budget under hard constraints, forecast demand, detect outliers, or reason over a dependency graph—all with auditable, deterministic algorithms.

How to install io.github.Whatsonyourmind/oraclaw

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • ORACLAW_API_KEY
    secret

    Optional API key for premium tools (CMA-ES, LP/MIP solver, graph analytics, risk VaR/CVaR, forecasting, anomaly detection). Free tier (11 tools) works without it.

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "oraclaw": {
      "command": "npx",
      "args": [
        "-y",
        "@oraclaw/mcp-server"
      ],
      "env": {
        "ORACLAW_API_KEY": "<YOUR_ORACLAW_API_KEY>"
      }
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • optimize_bandit — UCB1 / Thompson / Epsilon-Greedy arm selection for exploration-exploitation tradeoff
  • optimize_contextual — Context-aware LinUCB bandit for decisions that depend on per-call features
  • optimize_evolve — Genetic algorithm for discrete and multi-objective optimization
  • optimize_cmaes — CMA-ES continuous black-box optimization (premium)
  • solve_constraints — LP / MIP / QP solver via HiGHS for provably optimal allocation and scheduling (premium)
  • solve_schedule — Energy-matched task scheduling under capacity constraints
  • predict_bayesian — Beta posterior update from weighted evidence
  • predict_ensemble — Multi-model consensus with uncertainty decomposition
  • predict_forecast — ARIMA and Holt-Winters time-series forecasting (premium)
  • detect_anomaly — Z-Score and IQR anomaly detection on time series (premium)
  • simulate_montecarlo — Single-factor Monte Carlo with 6 distribution types
  • simulate_scenario — What-if comparison and sensitivity ranking
  • analyze_risk — VaR and CVaR (Expected Shortfall) for portfolio risk (premium)
  • analyze_graph — PageRank, Louvain clustering, bottleneck detection (premium)
  • plan_pathfind — A* and Yen's k-shortest paths for route planning
  • score_convergence — Multi-source probability consensus via Hellinger distance
  • score_calibration — Brier and log score for forecaster accuracy evaluation

Use cases

  • Select the next A/B test variant or recommendation with statistically optimal exploration-exploitation balance
  • Allocate a marketing budget across channels or schedule tasks under hard capacity and cost constraints
  • Forecast demand, KPIs, or sensor metrics and detect anomalies in time-series data
  • Quantify uncertainty around outcomes via Monte Carlo simulation or scenario analysis
  • Rank influential nodes in a dependency or knowledge graph and find critical paths or optimal routes

io.github.Whatsonyourmind/oraclaw MCP server FAQ

What is OraClaw?

OraClaw is an MCP server with 17 deterministic optimization and forecasting tools. It gives AI agents access to bandits, solvers, Monte Carlo simulation, time-series forecasting, and graph analysis—each returning structured JSON in under 25ms, with no token cost.

Is OraClaw free?

Yes. 11 of 17 tools are free (no API key, 25 calls/day per IP). The 6 premium tools (CMA-ES, constraint solver, forecasting, anomaly detection, risk analysis, graph analysis) require an API key or x402 payment ($0.001/call in USDC on Base).

How do I install OraClaw in Claude or Cursor?

Add to your claude_desktop_config.json: {"mcpServers": {"oraclaw": {"command": "npx", "args": ["-y", "@oraclaw/mcp-server"]}}}. Then ask your agent to use it.

Do I need authentication?

No for free tools. Premium tools require either an API key (instant signup at POST /api/v1/auth/signup) or x402 payment (sign a header, pay $0.001/call in USDC on Base).

What algorithms does OraClaw use?

UCB1, Thompson Sampling, LinUCB, CMA-ES, HiGHS LP/MIP/QP, ARIMA, Holt-Winters, Monte Carlo, Bayesian inference, A*, Yen's k-shortest paths, PageRank, Louvain clustering, and Z-score/IQR anomaly detection.

How fast is it?

14 of 18 endpoints respond in under 1ms. All tools complete in under 25ms, with most free tools under 10ms.

README (reference)

Source of truth, from the repository.

OraClaw

MIT License MCP Algorithms Latency npm API Status

MCP Optimization Tools for AI Agents -- 17 tools (11 free, no key), sub-25ms. Zero LLM cost.

Your AI agent can't do math. OraClaw gives it deterministic optimization, simulation, forecasting, and risk analysis through the Model Context Protocol. Every tool returns structured JSON, runs in under 25ms, and costs nothing to compute.


🚀 Using OraClaw in production — or want managed hosting, premium tools, or priority support? Tell me about your use case → — I read every one.

💬 Building something with it? Star the repo and say hi in Discussions — what you build steers what I ship next.


What this solves

LLMs generate plausible text, not mathematically optimal answers. OraClaw gives an AI agent a set of deterministic numerical tools it can call instead of guessing — each returns structured JSON from a real algorithm, with no token spend on reasoning. Concretely:

  • Your agent needs to pick the next variant to try (A/B test arm, ad/email copy, recommendation) and balance exploration against exploitation — without hand-rolling a bandit or letting the model eyeball it. Call optimize_bandit (or optimize_contextual when the best choice depends on per-call features).
  • Your agent needs a provably optimal allocation or schedule under hard constraints (budget split, integer counts, capacity caps) — without the model hallucinating constraints. Call solve_constraints (LP/MIP/QP via HiGHS) or solve_schedule for task-to-slot fitting.
  • Your agent needs to quantify uncertainty around an outcome — project a value under an uncertain input, or measure VaR/CVaR on a weighted multi-asset book with auditable assumptions — without a Monte Carlo loop in the prompt. Call simulate_montecarlo, simulate_scenario, or analyze_risk.
  • Your agent needs a point forecast or an outlier flag on a time series (demand, KPIs, sensor/metric streams) — without inventing trend math. Call predict_forecast (ARIMA / Holt-Winters) or detect_anomaly (Z-score / IQR).
  • Your agent needs to fuse or score probability signals — combine model outputs, measure how much independent sources agree, or check whether past predictions were well-calibrated. Call predict_ensemble, score_convergence, or score_calibration.
  • Your agent needs to reason over a graph — rank influential nodes, cluster a dependency/knowledge graph, find a critical path, or route between two nodes. Call analyze_graph or plan_pathfind.

Where the algorithms have been used

OraClaw's algorithms have informed implementations in several open-source projects -- through contributed routing specs, algorithm guidance, and shared math -- spanning AI agent orchestration, time-series tracking, vector search, and optimization.

Selected contributions (see CHANGELOG.md for the full list):

  • chernistry/bernstein -- agent orchestration framework. LinUCB contextual router (α=0.3) with shadow-evaluation path and interpretable decision reasons, shipped in codex/issue-367-linucb-router after a contributed spec correction.
  • stxkxs/nanohype -- contextual bandit routing, pluggable strategy registry (hash / sliding-TTL / semantic), cost anomaly detection. "Your input shaped a lot of what actually shipped."
  • rfivesix/hypertrack -- Bayesian/Kalman-style adaptive estimator with phase-aware ramp. Shipped in 0.8.0-beta.
  • AlanHuang99/pyrollmatch -- entropy balancing (Hainmueller 2012) with moment constraints + max_weight cap. Shipped in v0.1.3.
  • stffns/vstash -- IDF-sigmoid relevance weighting. Shipped in v0.17.0.

Marketplace distribution:


Quick Start

1. MCP Server (recommended for AI agents)

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "oraclaw": {
      "command": "npx",
      "args": ["-y", "@oraclaw/mcp-server"]
    }
  }
}

Then ask your agent:

"I have 3 email subject line variants. Which should I send next?"

The agent calls optimize_bandit and gets a statistically optimal selection in 0.01ms.

2. REST API (no install)

curl -X POST https://oraclaw-api.onrender.com/api/v1/optimize/bandit \
  -H 'Content-Type: application/json' \
  -d '{
    "arms": [
      {"id": "A", "name": "Option A", "pulls": 10, "totalReward": 7},
      {"id": "B", "name": "Option B", "pulls": 10, "totalReward": 5},
      {"id": "C", "name": "Option C", "pulls": 2, "totalReward": 1.8}
    ],
    "algorithm": "ucb1"
  }'

Response (<1ms):

{
  "selected": { "id": "C", "name": "Option C" },
  "score": 1.876,
  "algorithm": "ucb1",
  "exploitation": 0.9,
  "exploration": 0.976,
  "regret": 0.1
}

Free tier: 25 calls/day, no API key needed.

3. npm SDK

npm install @oraclaw/bandit
import { OraBandit } from '@oraclaw/bandit';

const client = new OraBandit({ baseUrl: 'https://oraclaw-api.onrender.com' });
const result = await client.optimize({
  arms: [
    { id: 'A', name: 'Short Subject', pulls: 500, totalReward: 175 },
    { id: 'B', name: 'Long Subject', pulls: 300, totalReward: 126 },
  ],
  algorithm: 'ucb1',
});

14 SDK packages: @oraclaw/bandit, @oraclaw/solver, @oraclaw/simulate, @oraclaw/risk, @oraclaw/forecast, @oraclaw/anomaly, @oraclaw/graph, @oraclaw/bayesian, @oraclaw/ensemble, @oraclaw/calibrate, @oraclaw/evolve, @oraclaw/pathfind, @oraclaw/cmaes, @oraclaw/decide


Why?

LLMs generate plausible text, not optimal solutions. Ask GPT to pick the best A/B test variant and it applies a heuristic that ignores the exploration-exploitation tradeoff. Ask it to solve a linear program and it hallucinates constraints. OraClaw gives your agent access to real algorithms -- bandits, solvers, forecasters, risk models -- that return mathematically correct answers in sub-millisecond time, without burning tokens on reasoning.


MCP Tool Catalog (17 tools)

Free tier (11 tools, no API key — 25 calls/day per IP):

ToolWhat It DoesLatency
optimize_banditUCB1 / Thompson / Epsilon-Greedy arm selection0.01ms
optimize_contextualContext-aware LinUCB bandit0.05ms
optimize_evolveGenetic algorithm for discrete + multi-objective problems<10ms
solve_scheduleEnergy-matched task scheduling3ms
score_convergenceMulti-source probability consensus (Hellinger)0.04ms
score_calibrationBrier + log score for forecaster accuracy0.02ms
predict_bayesianBeta posterior update from weighted evidence0.05ms
predict_ensembleMulti-model consensus + uncertainty decomposition0.1ms
plan_pathfindA* + Yen's k-shortest paths0.1ms
simulate_montecarloSingle-factor Monte Carlo (6 distributions)<2ms
simulate_scenarioWhat-if comparison + sensitivity ranking<5ms

Premium tier (6 tools, requires ORACLAW_API_KEY):

ToolWhat It DoesLatency
optimize_cmaesCMA-ES continuous black-box optimization12ms
solve_constraintsLP / MIP / QP solver via HiGHS (provably optimal)2ms
analyze_graphPageRank, Louvain communities, bottleneck detection0.5ms
analyze_riskVaR and CVaR (Expected Shortfall)<2ms
predict_forecastARIMA + Holt-Winters time series forecasting0.08ms
detect_anomalyZ-Score + IQR anomaly detection0.01ms

14 of 18 REST endpoints respond in under 1ms. All under 25ms.


Try It Now

The API is live. No signup required.

# Bayesian inference
curl -X POST https://oraclaw-api.onrender.com/api/v1/predict/bayesian \
  -H 'Content-Type: application/json' \
  -d '{"prior": 0.3, "evidence": [{"factor": "positive_test", "weight": 0.9, "value": 0.05}]}'

# Monte Carlo simulation
curl -X POST https://oraclaw-api.onrender.com/api/v1/simulate/montecarlo \
  -H 'Content-Type: application/json' \
  -d '{"simulations": 1000, "distribution": "normal", "params": {"mean": 100, "stddev": 15}}'

# Monte Carlo with a non-normal distribution
curl -X POST https://oraclaw-api.onrender.com/api/v1/simulate/montecarlo \
  -H 'Content-Type: application/json' \
  -d '{"simulations": 1000, "distribution": "triangular", "params": {"min": 80, "mode": 100, "max": 140}}'

Premium tools (detect_anomaly, predict_forecast, analyze_risk, solve_constraints, analyze_graph, optimize_cmaes) need an API key or an x402 payment — see Pricing below.


Pricing

TierCallsPriceAuth
Free25/day$0None
Pay-per-call1K/day$0.005/callAPI key
Starter50K/mo$9/moAPI key
Growth500K/mo$49/moAPI key
Scale5M/mo$199/moAPI key

x402 (for autonomous agents): pay $0.001/call in USDC on Base — no signup, no API key. Send a signed PAYMENT-SIGNATURE header on any premium endpoint; the API verifies, meters, and settles per call. Get a key instead with a one-line POST /api/v1/auth/signup ({"email":"you@…"}) — instant, no card.


Source Code

ComponentPath
MCP Servermission-control/packages/mcp-server/
REST APImission-control/apps/api/
Algorithmsmission-control/apps/api/src/services/oracle/algorithms/
SDK Packagesmission-control/packages/sdk/
LangChain Toolsmission-control/integrations/langchain/oraclaw_tools.py
Mobile Appmission-control/apps/mobile/
Dashboard (Next.js)web/

Building with OraClaw?

We'd love to hear what you're working on. Share your use case, ask questions, or request features:


Links


If this saved your agent from hallucinating math, star us :star:

License

MIT

Related MCP servers

Bulge-tier financial model factory — live formulas, source-traced cells, 14 templates.

1
Python
View repository →
WHWhaber Oracle logo

Whaber Oracle

Maintained

Ground truth operational layer for urban transfers in LatAm.

0
HTML
View repository →

The WhenLabs developer toolkit — 6 tools, 7 MCP endpoints, one install.

2
TypeScript
MIT
View repository →

Cost-optimized LLM model routing recommendations for autonomous AI agents

View repository →

Copyright deposit API — protect code, text, and websites with Berne Convention proof

0
MIT
View repository →

Add text or logo watermarks to images via the Markly.cloud API. Batch supported.

1
TypeScript
MIT
View repository →