oraclaw-mcp-server
OraClaw provides 12 deterministic optimization, simulation, forecasting, and risk analysis tools for AI agents — all returning structured JSON in under 25ms at zero LLM compute cost.
optimize_bandit— Select the best option from a set using UCB1, Thompson Sampling, or ε-Greedy for optimal explore/exploit tradeoffs (A/B testing, ad selection).optimize_contextual— Context-aware personalized selection via LinUCB, learning which option performs best based on feature vectors and historical observations.optimize_cmaes— Black-box continuous parameter tuning using CMA-ES evolutionary strategy — 10–100x more efficient than grid search.solve_constraints— Provably optimal LP/MIP/QP solving (HiGHS solver) for budget allocation, resource planning, and scheduling.solve_schedule— Energy-matched optimal task scheduling to maximize productivity based on priority and energy levels.analyze_graph— PageRank, Louvain community detection, shortest path, and bottleneck detection on arbitrary graphs.analyze_risk— Compute VaR and CVaR (Expected Shortfall) with correlation matrices and Monte Carlo simulation.score_convergence— Quantify multi-source agreement to measure how well different signals or data sources align.predict_forecast— Time series forecasting with confidence intervals using ARIMA or Holt-Winters methods.detect_anomaly— Detect outliers in numeric data using Z-score or IQR methods.plan_pathfind— Find optimal routes via A* and k-shortest paths using Yen's algorithm.simulate_montecarlo— Run Monte Carlo simulations (~5,000 iterations, ~1ms) for risk quantification and scenario analysis using normal, uniform, or triangular distributions.
Provides specialized tools for the LangChain framework that allow AI agents to perform deterministic mathematical optimization, simulation, forecasting, and risk analysis.
OraClaw
MCP Optimization Tools for AI Agents -- 17 tools, 21 algorithms, 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(oroptimize_contextualwhen 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) orsolve_schedulefor 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, oranalyze_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) ordetect_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, orscore_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_graphorplan_pathfind.
Related MCP server: Math-Physics-ML MCP System
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 incodex/issue-367-linucb-routerafter 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_weightcap. Shipped in v0.1.3.stffns/vstash-- IDF-sigmoid relevance weighting. Shipped in v0.17.0.
Marketplace distribution:
✓
punkpeye/awesome-mcp-servers-- merged✓
TensorBlock/awesome-mcp-servers-- merged✓ MCP Registry, Glama (score A/A/B), PulseMCP, toolsdk-ai -- listed
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/banditimport { 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):
Tool | What It Does | Latency |
| UCB1 / Thompson / Epsilon-Greedy arm selection | 0.01ms |
| Context-aware LinUCB bandit | 0.05ms |
| Genetic algorithm for discrete + multi-objective problems | <10ms |
| Energy-matched task scheduling | 3ms |
| Multi-source probability consensus (Hellinger) | 0.04ms |
| Brier + log score for forecaster accuracy | 0.02ms |
| Beta posterior update from weighted evidence | 0.05ms |
| Multi-model consensus + uncertainty decomposition | 0.1ms |
| A* + Yen's k-shortest paths | 0.1ms |
| Single-factor Monte Carlo (6 distributions) | <2ms |
| What-if comparison + sensitivity ranking | <5ms |
Premium tier (6 tools, requires ORACLAW_API_KEY):
Tool | What It Does | Latency |
| CMA-ES continuous black-box optimization | 12ms |
| LP / MIP / QP solver via HiGHS (provably optimal) | 2ms |
| PageRank, Louvain communities, bottleneck detection | 0.5ms |
| VaR and CVaR (Expected Shortfall) | <2ms |
| ARIMA + Holt-Winters time series forecasting | 0.08ms |
| Z-Score + IQR anomaly detection | 0.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
Tier | Calls | Price | Auth |
Free | 25/day | $0 | None |
Pay-per-call | 1K/day | $0.005/call | API key |
Starter | 50K/mo | $9/mo | API key |
Growth | 500K/mo | $49/mo | API key |
Scale | 5M/mo | $199/mo | API 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
Component | Path |
MCP Server | |
REST API | |
Algorithms | |
SDK Packages | |
LangChain Tools | |
Mobile App | |
Dashboard (Next.js) |
Building with OraClaw?
We'd love to hear what you're working on. Share your use case, ask questions, or request features:
Links
Live API: https://oraclaw-api.onrender.com
Dashboard: https://web-olive-one-89.vercel.app
If this saved your agent from hallucinating math, star us :star:
License
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Whatsonyourmind/oraclaw'
If you have feedback or need assistance with the MCP directory API, please join our Discord server