
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

An Encore.ts-based Model Context Protocol server that integrates with the MEXC cryptocurrency exchange to expose market data, trading, and portfolio tools.
MEXC MCP Server is cataloged as an MCP server attributed to ryanlisse. An Encore.ts-based Model Context Protocol server that integrates with the MEXC cryptocurrency exchange to expose market data, trading, and portfolio tools. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for MEXC MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It uses Encore.ts built-in secrets management to securely store and inject MEXC API and secret keys.
README.md · a96d982ad378 · 采集于 2026-11-13 12:22:53 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
A Model Context Protocol (MCP) server implementation for MEXC cryptocurrency exchange integration using Encore.ts.
git clone https://github.com/RyanLisse/mexc-mcp-server.git
cd mexc-mcp-server
bun install
Create a .env file in the project root:
# MEXC API Credentials
MEXC_API_KEY=your_mexc_api_key_here
MEXC_SECRET_KEY=your_mexc_secret_key_here
# Start development server
bun run dev
# Run tests (with watch mode)
bun run test:watch
# Run all quality checks
bun run check
# Format and lint code
bun run format
bun run lint:fix
# Run all tests
bun test
# Run tests with coverage
bun run test:coverage
# Run specific test file
bun test auth/auth.test.ts
# Test MEXC API connectivity
bun run test:mexc
| 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' |
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 |
Install Encore CLI:
curl -L https://encore.dev/install.sh | bash
Authenticate:
encore auth login
Set up secrets:
# For staging environment
encore secret set --env=staging MEXC_API_KEY "your_api_key"
encore secret set --env=staging MEXC_SECRET_KEY "your_secret_key"
# For production environment
encore secret set --env=production MEXC_API_KEY "your_api_key"
encore secret set --env=production MEXC_SECRET_KEY "your_secret_key"
Deploy:
# Deploy to staging
encore deploy --env=staging
# Deploy to production
encore deploy --env=production
The project includes GitHub Actions workflows for automated deployment:
CI Pipeline (.github/workflows/ci.yml): Runs on all PRs and pushes
Deployment Pipeline (.github/workflows/deploy.yml): Deploys to Encore Cloud
Configure these secrets in your GitHub repository settings:
ENCORE_AUTH_TOKEN=your_encore_auth_token
ENCORE_INSTALL_ID=your_encore_install_id
MEXC_API_KEY=your_mexc_api_key
MEXC_SECRET_KEY=your_mexc_secret_key
CODECOV_TOKEN=your_codecov_token # Optional, for coverage reports
This project uses Encore.ts built-in secrets management for secure credential storage:
// In shared/config.ts
import { secret } from "encore.dev/config";
// Secrets are automatically injected by Encore.ts
const mexcApiKey = secret("MEXC_API_KEY");
const mexcSecretKey = secret("MEXC_SECRET_KEY");
// For local development, use environment variables
const localConfig = {
apiKey: process.env.MEXC_API_KEY || mexcApiKey(),
secretKey: process.env.MEXC_SECRET_KEY || mexcSecretKey(),
};
# Set secrets for different environments
encore secret set --env=development MEXC_API_KEY "your_dev_api_key"
encore secret set --env=development MEXC_SECRET_KEY "your_dev_secret_key"
encore secret set --env=staging MEXC_API_KEY "your_staging_api_key"
encore secret set --env=staging MEXC_SECRET_KEY "your_staging_secret_key"
encore secret set --env=production MEXC_API_KEY "your_prod_api_key"
encore secret set --env=production MEXC_SECRET_KEY "your_prod_secret_key"
Husky pre-commit hooks ensure code quality:
# Automatically runs on git commit
- Lint-staged (format & lint staged files)
- Type checking
- Test execution
.github/workflows/ci.yml).github/workflows/deploy.yml)GET /health - Service health checkGET /mcp/info - MCP protocol informationGET / - API overviewPOST /auth/validate - Validate API keyGET /auth/status - Authentication statusPOST /auth/rate-limit - Rate limit statusGET /auth/test-mexc - Test MEXC credentialsPOST /market-data/ticker - Get ticker dataPOST /market-data/order-book - Get order bookPOST /market-data/24h-stats - Get 24h statisticsGET /market-data/test-connectivity - Test connectivityGET /market-data/test-auth - Test authenticationPOST /market-data/active-symbols - Get active symbolsGET /market-data/health - Market data service healthGET /market-data/mcp/tools - Available MCP toolsPOST /trading/place-order - Place a new orderPOST /trading/cancel-order - Cancel an existing orderPOST /trading/order-status - Get order statusGET /trading/open-orders - Get open ordersPOST /trading/order-history - Get order historyPOST /trading/trade-history - Get trade historyGET /trading/health - Trading service healthGET /portfolio/balance - Get account balanceGET /portfolio/positions - Get open positionsPOST /portfolio/pnl - Get profit/loss dataGET /portfolio/health - Portfolio service healthGET /tools/list - List all available MCP toolsPOST /tools/call - Execute an MCP toolGET /tools/resources - List MCP resourcesPOST /tools/resources/read - Read MCP resource contentThe application is built using a microservices architecture with 5 main services:
mexc-mcp-server/
├── encore.service.ts # Main service definition
├── api.ts # Root API endpoints
├── auth/ # Authentication service
│ ├── encore.service.ts # Service definition
│ ├── api.ts # Auth endpoints
│ └── auth.ts # Auth logic
├── market-data/ # Market data service
│ ├── encore.service.ts # Service definition
│ ├── api.ts # Market data endpoints
│ ├── tools.ts # MCP tools implementation
│ └── mexc-client.ts # MEXC API client
├── trading/ # Trading operations service
│ ├── encore.service.ts # Service definition
│ ├── api.ts # Trading endpoints
│ └── tools.ts # Trading MCP tools
├── portfolio/ # Portfolio management service
│ ├── encore.service.ts # Service definition
│ ├── api.ts # Portfolio endpoints
│ └── tools.ts # Portfolio MCP tools
└── tools/ # MCP tools aggregation service
├── encore.service.ts # Service definition
└── api.ts # MCP protocol endpoints
git checkout -b feature/amazing-featurebun testgit commit -m "feat: add amazing feature"git push origin feature/amazing-featureMIT License - see LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for MEXC MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mexc-mcp-server)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.