LD

lazy-dinosaur/ccxt-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

95 stars 30 forks 质量 71 趋势 0MIT

lazy-dinosaur/ccxt-mcp 是从 https://github.com/lazy-dinosaur/ccxt-mcp. 导入的 MCP 服务器候选

概览

lazy-dinosaur/ccxt-mcp 是从 https://github.com/lazy-dinosaur/ccxt-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

韩国어 버전(韩语版)

CCXT MCP 服务器是一台允许 AI 模型通过模型上下文协议(MCP)与加密货币交易所 API 交互的服务器。该服务器使用 CCXT 库,提供访问 100 多个加密货币交易所及其交易能力的服务器。

🚀 快速启动

安装与使用

全球安装

与NPX一起奔跑

你可以直接运行,无需安装:

查看帮助:

配置

在Claude桌面中注册MCP服务器

  1. 打开Claude桌面设置:
  • 进入Claude桌面应用中的设置菜单
  • 查找“MCP服务器”部分
  1. 添加新的MCP服务器:
  • 点击“添加服务器”按钮
  • 服务器名称:ccxt-mcp
  • 指令:npx @lazydino/ccxt-mcp
  • 附加参数(可选):--config /path/to/config.json
  1. 保存并测试服务器:
  • 保存设置
  • 使用“测试连接”按钮测试连接

配置方法 - 两种选择

选项1:直接在Claude桌面设置中包含账户信息(基本方法)

该方法直接包含 CCXT 账户信息,包含在 Claude Desktop 设置文件中(claude_desktop_config.json):

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

CCXT MCP Server

한국어 버전(Korean version)

CCXT MCP Server is a server that allows AI models to interact with cryptocurrency exchange APIs through the Model Context Protocol (MCP). This server uses the CCXT library to provide access to more than 100 cryptocurrency exchanges and their trading capabilities.

🚀 Quick Start

# Install the package globally
npm install -g @lazydino/ccxt-mcp

# Run with default settings
ccxt-mcp

# or run without installation
npx @lazydino/ccxt-mcp

Installation and Usage

Global Installation

# Install the package globally
npm install -g @lazydino/ccxt-mcp

Running with npx

You can run it directly without installation:

# Using default settings
npx @lazydino/ccxt-mcp

# Using custom configuration file
npx @lazydino/ccxt-mcp --config /path/to/config.json

View help:

npx @lazydino/ccxt-mcp --help

Configuration

Registering the MCP Server in Claude Desktop

  1. Open Claude Desktop Settings:

    • Go to the Settings menu in the Claude Desktop app
    • Find the “MCP Servers” section
  2. Add a New MCP Server:

    • Click the “Add Server” button
    • Server name: ccxt-mcp
    • Command: npx @lazydino/ccxt-mcp
    • Additional arguments (optional): --config /path/to/config.json
  3. Save and Test the Server:

    • Save the settings
    • Test the connection with the “Test Connection” button

Configuration Methods - Two Options

Option 1: Include Account Information Directly in Claude Desktop Settings (Basic Method)

This method includes CCXT account information directly in the Claude Desktop settings file (claude_desktop_config.json):

{
  "mcpServers": {
    "ccxt-mcp": {
      "command": "npx",
      "args": ["-y", "@lazydino/ccxt-mcp"],
      "mcpBearerToken": "YOUR_MCP_TOKEN",
      "accounts": [
        {
          "name": "bybit_main",
          "exchangeId": "bybit",
          "apiKey": "YOUR_API_KEY",
          "secret": "YOUR_SECRET_KEY",
          "defaultType": "spot"
        },
        {
          "name": "bybit_futures",
          "exchangeId": "bybit",
          "apiKey": "YOUR_API_KEY",
          "secret": "YOUR_SECRET_KEY",
          "defaultType": "swap"
        }
      ]
    }
  }
}
在 GitHub 查看完整 README

安装

npx -y @lazydino/ccxt-mcp
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "ccxt-mcp": { "command": "npx", "args": ["-y", "@lazydino/ccxt-mcp"], "mcpBearerToken": "YOUR_MCP_TOKEN", "accounts": [ { "name": "bybit_main", "exchangeId": "bybit", "apiKey": "YOUR_API_KEY", "secret": "YOUR_SECRET_KEY", "defaultType": "spot" }, { "name": "bybit_futures", "exchangeId": "bybit", "apiKey": "YOUR_API_KEY", "secret": "YOUR_SECRET_KEY", "defaultType": "swap" } ] } } }