Skip to main content
Glama
CacheCarti

dMoERA MCP Server

dMoERA Creator Studio — MCP 服务器

使用任何兼容 MCP 的 AI 代理(Claude、Cursor、Windsurf、Devin、Copilot 等)构建、回测和部署加密货币交易策略。

功能

dMoERA MCP 服务器将 dMoERA Creator API 暴露为 Model Context Protocol 工具。您的 AI 代理可以:

  • 发现 交易领域、数据源和市场状态

  • 检查 现有机器人及其实时性能指标

  • 回测 沙盒环境中的策略代码

  • 提交 策略以进行完整的 7 阶段验证和实时部署

  • 监控 锦标赛状态、排行榜排名和策略报告卡

这是一个轻量级 API 客户端——它通过 HTTP 与运行中的 dMoERA 后端通信。不需要 dMoERA 内部代码。

安装

前提条件

  • Python 3.11+

  • mcp Python 包(pip install mcp

  • 运行中的 dMoERA 后端(或连接到公共实例)

设置

git clone https://github.com/CacheCarti/dmoera-mcp.git
cd dmoera-mcp
pip install -r requirements.txt

MCP 配置

将此标准 MCP 配置添加到 Claude Desktop、Cursor、Windsurf 或其他 MCP 客户端:

{
  "mcpServers": {
    "dmoera-creator": {
      "command": "python",
      "args": ["/absolute/path/to/dmoera-mcp/mcp_creator_server.py"],
      "env": {
        "DMOERA_API_URL": "https://dmoera.xyz",
        "DMOERA_API_KEY": "your_optional_personal_access_token"
      }
    }
  }
}

API 密钥对于公共市场数据和发现工具是可选的。在 dmoera.xyz设置 → API 密钥 下创建个人访问令牌,以回测、提交、分叉、开源或下架策略。切勿提交您的令牌。

远程客户端可以通过 Streamable HTTP 端点连接:

https://dmoera.xyz/mcp

工具

工具

描述

需要认证

list_domains

列出所有可用的交易领域(ETH、BTC、SOL — 现货和抢帽子)

list_bots

按性能排名列出交易机器人,可选按领域过滤

get_bot_profile

获取特定机器人的详细资料和性能统计

get_feature_catalog

列出可通过 ctx.features 提供给策略的所有数据源

get_market_regime

获取当前市场状态分类

get_current_prices

获取所有跟踪符号的当前实时价格

sandbox_backtest

在沙盒环境中回测策略代码

submit_strategy

提交策略以进行完整验证和实时部署

list_strategies

列出用户创建的所有策略

get_strategy_report

获取策略的详细报告卡

get_marketplace_bots

列出发布到市场平台的机器人

get_tournament_status

获取当前锦标赛轮次状态和排行榜

open_source_strategy

将符合条件的被拒绝策略发布到开源排行榜

fork_strategy

检索并分叉一个开源策略

get_open_source_leaderboard

浏览具有 FIFA 风格评分的开源策略

delist_strategy

退役或永久下架您的一个策略

资源

  • creator-api://docs — 完整的策略合约文档

  • creator-api://strategy-template — 可复制粘贴的策略模板

示例用法

向您的 AI 代理提问:

"列出 dMoERA 上的所有交易领域,然后回测一个简单的 RSI 均值回归策略,针对 ETH/USDC。"

代理将调用 list_domains,检查可用市场,然后调用 sandbox_backtest 并传入它生成的策略代码。您可以迭代:

"夏普比率太低。尝试添加波动率过滤器——仅在 ATR 高于其 20 周期平均值时交易。"

"将此策略提交到 ETH/USDC 领域。"

代理调用 submit_strategy,该函数运行完整的 7 阶段验证流程。如果通过,策略将进入实时竞技场并争夺锦标赛奖金。

策略合约

策略继承 Strategy 并实现 on_bar(self, ctx) -> Signal。有关完整合约,请参阅 creator-api://docs 资源。

class MyStrategy(Strategy):
    METADATA = {
        "name": "SMA Crossover",
        "domain": "eth_usdc",
        "declared_sl_bps": 150.0,
        "declared_tp_bps": 300.0,
        "declared_hold_seconds": 3600,
        "warmup_bars": 20,
        "required_features": [],
    }

    def on_bar(self, ctx):
        closes = ctx.closes(lookback=20)
        if len(closes) < 20:
            return None
        fast = sum(closes[-5:]) / 5
        slow = sum(closes) / 20
        if fast > slow:
            return ctx.signal(
                direction=SignalDirection.LONG,
                confidence=0.7,
                stop_loss_bps=150.0,
                take_profit_bps=300.0,
                horizon_seconds=3600,
            )
        return None

锦标赛系统

机器人参与 3 天锦标赛轮次。评分基于机器人自身的表现:

  • 50% 风险调整(滚动夏普比率)

  • 30% 总回报(对数标度基点)

  • 20% 一致性(胜率 × 交易量)

每个领域的前 3 名从奖励池中获得 USDT。无需用户关注即可获得资格 — 您的机器人仅凭自身指标竞争。

链接

许可证

MIT

-
license - not tested
Not graded
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Related MCP Connectors

  • MCP server exposing the Backtest360 engine API as tools for AI agents.

  • No-KYC managed MCP for AI agents: sandboxed TypeScript trading SDK, isolated sub-accounts, futures.

  • MCP server for OpenMM — exposes market data, account, trading, and strategy tools to AI agents

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/CacheCarti/dmoera-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server