wallex-mcp-server

SajjadKiani/wallex-mcp-server

3.1

If you are the rightful owner of wallex-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Wallex MCP Server is a model context protocol server designed to facilitate interactions with the Wallex REST API using FastMCP.

Wallex MCP Server

development

fastmcp dev wallex_mcp/server.py

production

mcpo --port 8001 --api-key "wallex-local" -- fastmcp run wallex_mcp/server.py

structure

wallex-mcp/
โ”œโ”€โ”€ wallex_mcp/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ server.py          # FastMCP instantiation & run()
โ”‚   โ”œโ”€โ”€ config.py          # Env var loader
โ”‚   โ”œโ”€โ”€ client.py          # HTTPX wrapper
โ”‚   โ”œโ”€โ”€ schemas.py         # Pydantic models
โ”‚   โ”œโ”€โ”€ tools/
โ”‚   โ”‚   โ”œโ”€โ”€ get_balance.py     # @mcp.tool()
โ”‚   โ”‚   โ”œโ”€โ”€ place_order.py
โ”‚   โ”‚   โ””โ”€โ”€ cancel_order.py
โ”‚   โ””โ”€โ”€ resources/
โ”‚       โ”œโ”€โ”€ market_data.py     # @mcp.resource("wallex://market/{symbol}")
โ”‚       โ”œโ”€โ”€ order_status.py    # @mcp.resource("wallex://orders/{id}")
โ”‚       โ””โ”€โ”€ instruments.py
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ Dockerfile
โ””โ”€โ”€ README.md             # Project overview + Quickstart

Workflow

flowchart LR
  subgraph MCP Server
    A[FastMCP Instance] --> B[Tool: place_order]
    A --> C[Resource: get_balance]
    A --> D[Resource: market_data]
  end

  B --> E[wallex_mcp.client] --> F[Wallex REST API]
  C --> E
  D --> E
  F --> G[JSON Response] --> H[wallex_mcp.schemas] --> B/C/D return
  B/C/D return --> A --> I[LLM]