SC

sera-cx/sera-mcp-v2

API 开发

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

12 stars 18 forks 质量 69 趋势 27

A Model Context Protocol (MCP) server for — the stablecoin exchange platform. Enables AI assistants like Claude to query market data, check balances, execute swaps, and manage orders through natural...

概览

A Model Context Protocol (MCP) server for — the stablecoin exchange platform. Enables AI assistants like Claude to query market data, check balances, execute swaps, and manage orders through natural language. - — Real-time stablecoin prices, metadata, and historical data - — Check balances, token holdings, and exchange deposits - — Get quotes and execute swaps with automatic token approval - — Place, view, and cancel limit orders - — Move funds between wallet and exchange - — Supports Ethereum mainnet and Sepolia testnet Then add the server to your Claude Desktop config. See claude_desktop_config.example.json: Config file location: - : ~/Library/Application Support/Claude/claude_desktop_config.json - : %APPDATA%\Claude\claude_desktop_config.json Restart Claude Desktop after editing the config. : Never share or commit your WALLET_PRIVATE_KEY. Use a dedicated wallet for testing with limited funds. Once configured, you can interact with Sera using natural language: 1.

README

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

Sera MCP Server

A Model Context Protocol (MCP) server for Sera — the stablecoin exchange platform. Enables AI assistants like Claude to query market data, check balances, execute swaps, and manage orders through natural language.

Features

  • Market Data — Real-time stablecoin prices, metadata, and historical data
  • Wallet Management — Check balances, token holdings, and exchange deposits
  • Trading — Get quotes and execute swaps with automatic token approval
  • Order Management — Place, view, and cancel limit orders
  • Deposit & Withdraw — Move funds between wallet and exchange
  • Multi-Network — Supports Ethereum mainnet and Sepolia testnet

Quick Start

cd sera-mcp
npm install
npm run build

Then add the server to your Claude Desktop config. See claude_desktop_config.example.json:

{
  "mcpServers": {
    "sera": {
      "command": "node",
      "args": ["/path/to/sera-mcp/dist/index.js"],
      "env": {
        "EXTERNAL_API_URL": "https://api.dev.sera.cx",
        "WALLET_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY",
        "RPC_URL": "https://ethereum-sepolia-rpc.publicnode.com"
      }
    }
  }
}

Config file location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Restart Claude Desktop after editing the config.

Mainnet Configuration

{
  "env": {
    "EXTERNAL_API_URL": "https://api.sera.cx",
    "WALLET_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY",
    "RPC_URL": "https://eth.llamarpc.com"
  }
}

Configuration

Variable Description Default
EXTERNAL_API_URL CLOB/trading API URL https://api.dev.sera.cx
WALLET_PRIVATE_KEY Private key for signing transactions (optional, enables execute tools) -
RPC_URL Ethereum RPC endpoint https://ethereum-sepolia-rpc.publicnode.com

⚠️ Security Warning: Never share or commit your WALLET_PRIVATE_KEY. Use a dedicated wallet for testing with limited funds.

Available Tools

Market Data

Tool Description
get_market Get the complete stablecoin catalogue with live market data
get_coin_metadata Get detailed metadata for a specific coin by ticker
get_coin_history Get historical price data for a specific coin
search_coins Search for stablecoins by name or ticker
get_exchange_rate Get the exchange rate between two tokens

Wallet & Balance

Tool Description
get_wallet_info Get configured wallet address, balance, and chain
get_wallet_balances Get token balances (defaults to configured wallet)
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "sera": { "command": "node", "args": ["/path/to/sera-mcp/dist/index.js"], "env": { "EXTERNAL_API_URL": "https://api.dev.sera.cx", "WALLET_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY", "RPC_URL": "https://ethereum-sepolia-rpc.publicnode.com" } } } }