oraclaw-mcp-server
17 decision intelligence algorithms as MCP tools for AI agents. Bandits (UCB1, Thompson), LP/MIP solver (HiGHS), Monte Carlo simulation, Bayesian inference, graph analytics (PageRank, Louvain), genetic algorithms, CMA-ES, anomaly detection, time series forecasting, and more. All under 25ms, deterministic, zero LLM cost.
README
OraClaw
MCP Optimization Tools for AI Agents -- 12 tools, 19 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.
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 (12 tools)
| Tool | What It Does | Latency |
|---|---|---|
optimize_bandit |
A/B test selection via UCB1, Thompson Sampling, Epsilon-Greedy | 0.01ms |
optimize_contextual |
Context-aware personalized selection via LinUCB | 0.05ms |
optimize_cmaes |
Black-box continuous optimization (CMA-ES) | 12ms |
solve_constraints |
LP/MIP/QP optimization via HiGHS solver | 2ms |
solve_schedule |
Energy-matched task scheduling | 3ms |
analyze_decision_graph |
PageRank, Louvain communities, bottleneck detection | 0.5ms |
analyze_portfolio_risk |
VaR and CVaR (Expected Shortfall) | <2ms |
score_convergence |
Multi-source agreement scoring | 0.04ms |
score_calibration |
Brier score and log score for prediction quality | 0.02ms |
predict_forecast |
ARIMA and Holt-Winters time series forecasting | 0.08ms |
detect_anomaly |
Z-Score and IQR anomaly detection | 0.01ms |
plan_pathfind |
A* pathfinding with k-shortest paths | 0.1ms |
14 of 17 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}}'
# Anomaly detection
curl -X POST https://oraclaw-api.onrender.com/api/v1/detect/anomaly \
-H 'Content-Type: application/json' \
-d '{"data": [10, 12, 11, 13, 50, 12, 11, 10], "method": "zscore", "threshold": 2.0}'
Pricing
| Tier | Calls | Price | Auth |
|---|---|---|---|
| Free | 25/day | $0 | None |
| Pay-per-call | 1K/day | $0.005/call | API key |
| Starter | 10K/mo | $9/mo | API key |
| Growth | 100K/mo | $49/mo | API key |
| Scale | 1M/mo | $199/mo | API key |
x402 USDC: AI agents pay $0.01-$0.15 per call with USDC on Base. No subscription, no API key.
Source Code
| Component | Path |
|---|---|
| MCP Server | mission-control/packages/mcp-server/ |
| REST API | mission-control/apps/api/ |
| Algorithms | mission-control/apps/api/src/services/oracle/algorithms/ |
| SDK Packages | mission-control/packages/sdk/ |
| LangChain Tools | mission-control/integrations/langchain/oraclaw_tools.py |
| Mobile App | mission-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
- Live API: https://oraclaw-api.onrender.com
- Dashboard: https://web-olive-one-89.vercel.app
- npm: https://www.npmjs.com/org/oraclaw
- Demo: https://web-olive-one-89.vercel.app/demo
- GitHub: https://github.com/Whatsonyourmind/oracle
If this saved your agent from hallucinating math, star us :star:
License
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。