MEXC MCP Server

by RyanLisse

400 downloads Not rated yet MIT license
GitHub

About

# MEXC MCP Server A Model Context Protocol (MCP) server implementation for MEXC cryptocurrency exchange integration using Encore.ts. ## 🚀 Features - **Real-time Market Data**: Live ticker prices, order books, and 24h statistics from MEXC exchange - **Secure API Management**: Encore.ts secrets management for API keys -…

Details

License
MIT license

Explore

- Real-time Market Data: Live ticker prices, order books, and 24h statistics from MEXC exchange
- Secure API Management: Encore.ts secrets management for API keys
- Rate Limiting & Caching: Built-in protection and performance optimization
- Type Safety: Full TypeScript implementation with Encore.ts interfaces
- Test-Driven Development: Comprehensive test suite with >90% coverage
- CI/CD Pipeline: Automated testing, linting, and deployment
- Pre-commit Hooks: Automated code quality checks

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MEXC MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

📋 Prerequisites

- Bun >= 1.0.0
- Node.js >= 18.0.0
- Encore CLI (for deployment)
- MEXC API credentials

1. Clone and Install

git clone https://github.com/RyanLisse/mexc-mcp-server.git
cd mexc-mcp-server
bun install

2. Environment Configuration

Create a .env file in the project root:

```bash

mexc_get_ticker

Get current ticker price and 24h statistics

mexc_get_order_book

Get current order book (bids/asks)

mexc_get_24h_stats

Get 24-hour trading statistics

mexc_test_connectivity

Test API connectivity and server time

mexc_test_authentication

Test API authentication

mexc_get_active_symbols

Get all active trading symbols

mexc_place_order

Place a buy/sell order

mexc_cancel_order

Cancel an existing order

mexc_get_order_status

Get order status and details

mexc_get_account_balance

Get account balances

mexc_get_open_orders

Get all open orders

mexc_get_order_history

Get order history

mexc_get_trade_history

Get trade execution history

| Tool Name | Description | Input Parameters |
|-----------|-------------|------------------|
| mexc_get_ticker | Get current ticker price and 24h statistics | symbol: string, convert?: string |
| mexc_get_order_book | Get current order book (bids/asks) | symbol: string, limit?: number |
| mexc_get_24h_stats | Get 24-hour trading statistics | symbol?: string |
| mexc_test_connectivity | Test API connectivity and server time | None |
| mexc_test_authentication | Test API authentication | None |
| mexc_get_active_symbols | Get all active trading symbols | limit?: number |
| mexc_place_order | Place a buy/sell order | symbol: string, side: 'buy'|'sell', type: 'market'|'limit', quantity: number, price?: number |
| mexc_cancel_order | Cancel an existing order | symbol: string, orderId: string |
| mexc_get_order_status | Get order status and details | symbol: string, orderId: string |
| mexc_get_account_balance | Get account balances | None |
| mexc_get_open_orders | Get all open orders | symbol?: string |
| mexc_get_order_history | Get order history | symbol?: string, limit?: number |
| mexc_get_trade_history | Get trade execution history | symbol?: string, limit?: number |

- GET /tools/list - List all available MCP tools
- POST /tools/call - Execute an MCP tool
- GET /tools/resources - List MCP resources
- POST /tools/resources/read - Read MCP resource content

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mexc mcp server": {
            "mexc-mcp-server": {
                "command": "bun",
                "args": [
                    "run",
                    "dev"
                ]
            }
        }
    }
}

McpServers

{
    "mexc-mcp-server": {
        "command": "bun",
        "args": [
            "run",
            "dev"
        ]
    }
}

A Model Context Protocol (MCP) server implementation for MEXC cryptocurrency exchange integration using Encore.ts.

🚀 Features

- Real-time Market Data: Live ticker prices, order books, and 24h statistics from MEXC exchange
- Secure API Management: Encore.ts secrets management for API keys
- Rate Limiting & Caching: Built-in protection and performance optimization
- Type Safety: Full TypeScript implementation with Encore.ts interfaces
- Test-Driven Development: Comprehensive test suite with >90% coverage
- CI/CD Pipeline: Automated testing, linting, and deployment
- Pre-commit Hooks: Automated code quality checks

📋 Prerequisites

- Bun >= 1.0.0
- Node.js >= 18.0.0
- Encore CLI (for deployment)
- MEXC API credentials

🛠️ Local Development Setup

1. Clone and Install

git clone https://github.com/RyanLisse/mexc-mcp-server.git
cd mexc-mcp-server
bun install

2. Environment Configuration

Create a .env file in the project root:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.