Back to MCP directory
publicPublicdnsLocal runtime

raju-deriv_mcp-deriv-api-server

一个用于与Deriv API交互的MCP服务器和OpenAI函数调用服务,提供交易符号列表和账户余额查询功能。

article

README

🚀 Deriv API 服务器

Deriv API 服务器是一个基于模型上下文协议(MCP)的服务器,同时提供 OpenAI 功能调用服务,可用于与 Deriv API 进行交互,帮助用户获取活跃符号列表和账户余额等信息。

🚀 快速开始

安装

📦 本地安装

curl -LsSf https://astral.sh/uv/install.sh | sh

🐳 Docker 安装

  1. 构建 Docker 镜像:
docker build -t deriv-api-mcp .

环境配置

在项目根目录中创建一个 .env 文件:

DERIV_API_TOKEN=your_api_key_here

与 Claude Desktop 集成使用

Claude Desktop 全面支持 MCP 功能。若要使用此服务器,可按以下步骤操作:

  1. 安装 Claude Desktop
  2. 在你的 Claude Desktop 配置中添加相应信息:
    • 对于 macOS:~/Library/Application Support/Claude/claude_desktop_config.json
    • 对于 VSCode:/Users/raju/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    • 对于 Windows:%APPDATA%\Claude\claude_desktop_config.json

💻 本地安装配置

{
  "mcpServers": {
    "deriv-api-mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/raju/Sites/deriv/mcp-deriv-api-server",
        "run",
        "server.py"
      ]
    }
  }
}

💻 Docker 安装配置

{
  "mcpServers": {
    "deriv-api-mcp": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "deriv-api-mcp"
      ]
    }
  }
}
  1. 重启 Claude Desktop

与 OpenAI 功能调用集成使用

请参考 Deriv API 文档 获取当前速率限制和使用指南。

✨ 主要特性

  • 获取活跃符号列表
  • 获取账户余额

该服务器提供以下工具:

  • get_active_symbols:获取活跃交易符号列表
  • get_account_balance:获取当前账户余额

📄 许可证

本项目采用 MIT 许可证。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client