Skip to main content
Glama

OraClaw

MIT License Tests MCP Algorithms Latency npm API Status Implementations

面向 AI 代理的 MCP 优化工具 -- 17 个工具,21 种算法,响应时间低于 25ms。零 LLM 计算成本。

你的 AI 代理不擅长数学。OraClaw 通过模型上下文协议(Model Context Protocol)为其提供确定性的优化、模拟、预测和风险分析能力。每个工具均返回结构化的 JSON,运行时间在 25ms 以内,且计算零成本。


验证

OraClaw 的数学模型已在 12 个开源项目中得到独立实现,涵盖 AI 代理编排、时间序列追踪、向量搜索、MIP 优化和生产级机器学习系统 —— 所有这些均在公开发布后的前 8 天内完成。

精选领域实现(完整列表请参阅 CHANGELOG.md):

  • chernistry/bernstein -- 84⭐ 代理编排框架。采用 α=0.3 的 LinUCB 上下文路由、影子评估路径以及可解释的决策原因。在规范修正后 1 小时 40 分钟内集成于 codex/issue-367-linucb-router

  • stxkxs/nanohype -- 上下文老虎机路由、可插拔策略注册表(哈希 / 滑动 TTL / 语义)、成本异常检测,LinUCB 已在路线图中。“你的输入塑造了许多实际发布的功能。”

  • rfivesix/hypertrack -- 贝叶斯/卡尔曼风格的自适应卡路里估算器,具有阶段感知的 kcal/kg 增长。已在 0.8.0-beta 版本中发布。“目前我认为该数学模型已经非常稳健。”

  • AlanHuang99/pyrollmatch -- 熵平衡(Hainmueller 2012),带有矩约束 + max_weight 上限。已在 v0.1.3 版本中发布。

  • stffns/vstash -- IDF-sigmoid 相关性加权。已在 v0.17.0 版本中发布。

市场分发:

维护者关系(友好的技术交流):Qdrant, Milvus, NetworkX, Apache DataFusion, DuckDB, pymc-labs。


Related MCP server: Math-Physics-ML MCP System

快速入门

1. MCP 服务器(推荐用于 AI 代理)

添加到你的 claude_desktop_config.json

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

然后询问你的代理:

“我有 3 个电子邮件主题行变体。我接下来应该发送哪一个?”

代理调用 optimize_bandit 并在 0.01ms 内获得统计学上的最优选择。

2. REST API(无需安装)

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"
  }'

响应(<1ms):

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

免费层级:每天 25 次调用,无需 API 密钥。

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 包:@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


为什么选择 OraClaw?

LLM 生成的是看似合理的文本,而非最优解。让 GPT 选择最佳 A/B 测试变体,它会应用一种忽略探索与利用权衡的启发式方法。让它解决线性规划问题,它会产生幻觉约束。OraClaw 让你的代理能够访问真正的算法 —— 老虎机、求解器、预测器、风险模型 —— 它们能在亚毫秒级时间内返回数学上正确的结果,而无需消耗推理 Token。


MCP 工具目录(17 个工具)

免费层级(11 个工具,无需 API 密钥 — 每个 IP 每天 25 次调用):

工具

功能

延迟

optimize_bandit

UCB1 / Thompson / Epsilon-Greedy 臂选择

0.01ms

optimize_contextual

上下文感知 LinUCB 老虎机

0.05ms

optimize_evolve

用于离散 + 多目标问题的遗传算法

<10ms

solve_schedule

能量匹配的任务调度

3ms

score_convergence

多源概率共识(Hellinger)

0.04ms

score_calibration

用于预测准确性的 Brier + 对数评分

0.02ms

predict_bayesian

基于加权证据的 Beta 后验更新

0.05ms

predict_ensemble

多模型共识 + 不确定性分解

0.1ms

plan_pathfind

A* + Yen 的 k-最短路径算法

0.1ms

simulate_montecarlo

单因素蒙特卡洛(6 种分布)

<2ms

simulate_scenario

假设分析 + 敏感性排序

<5ms

高级层级(6 个工具,需要 ORACLAW_API_KEY):

工具

功能

延迟

optimize_cmaes

CMA-ES 连续黑盒优化

12ms

solve_constraints

通过 HiGHS 进行 LP / MIP / QP 求解(可证明最优)

2ms

analyze_graph

PageRank、Louvain 社区、瓶颈检测

0.5ms

analyze_risk

VaR 和 CVaR(预期亏损)

<2ms

predict_forecast

ARIMA + Holt-Winters 时间序列预测

0.08ms

detect_anomaly

Z-Score + IQR 异常检测

0.01ms

18 个 REST 端点中有 14 个响应时间低于 1ms。所有工具均在 25ms 以内。


立即尝试

API 已上线。无需注册。

# 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}'

定价

层级

调用次数

价格

认证

免费

25/天

$0

按次付费

1K/天

$0.005/次

API 密钥

入门版

10K/月

$9/月

API 密钥

增长版

100K/月

$49/月

API 密钥

规模版

1M/月

$199/月

API 密钥

x402 USDC: AI 代理使用 Base 链上的 USDC 支付,每调用一次 $0.01-$0.15。无需订阅,无需 API 密钥。


源代码


使用 OraClaw 进行开发?

我们很乐意了解你的工作。分享你的用例、提出问题或请求功能:


链接


如果这拯救了你的代理免于数学幻觉,请给我们点个星 :star:

许可证

MIT

A
license - permissive license
A
quality
A
maintenance

Maintenance

Maintainers
13dResponse time
6wRelease cycle
3Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    Provides 21 mathematical tools across 6 domains including basic calculations, array operations, statistics, financial mathematics, linear algebra, and calculus. Supports batch execution for complex multi-step workflows with intelligent dependency resolution.
    21
    6
    MIT
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Arithym — lightweight precision math for agents on the go. Exact arithmetic MCP server with 62 tools, zero hallucination, sub-millisecond computation and is 61% cheaper than Python code execution at scale.
  • A
    license
    A
    quality
    A
    maintenance
    AI Agent Mission Control — 200+ MCP tools across 31 domains. Manage agents, experiments, workflows, crews, skills, tools, credentials, approvals, signals, budgets, marketplace, knowledge bases, chatbots, and more. Self-hosted, open-source (AGPL-3.0). Supports stdio + Streamable HTTP/SSE with OAuth 2.0 auth.
    34
    65
    AGPL 3.0

View all related MCP servers

Related MCP Connectors

  • Deterministic reasoning stack for AI agents: simulate, decide & compute, plus cross-domain tools.

  • 65+ AI tools as MCP: research, write, code, scrape, translate, RAG, agent memory, workflows

  • Package intelligence MCP for AI agents — 22 tools, 19 ecosystems, AGPL SDK, free.

View all MCP Connectors

Latest Blog Posts

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