Skip to main content
Glama

MCP Paradex Server

by Habinar
MIT License
  • Apple
  • Linux
config.py1.06 kB
""" Configuration utilities for the MCP Paradex server. """ import os from enum import Enum from dotenv import load_dotenv # Load environment variables from .env file load_dotenv() class Environment(str, Enum): """Trading environment options.""" TESTNET = "testnet" PROD = "prod" class Config: """Configuration settings for the MCP Paradex server.""" # Server configuration SERVER_NAME: str = os.getenv("SERVER_NAME", "Paradex Trading") SERVER_PORT: int = int(os.getenv("SERVER_PORT", "3000")) # Paradex configuration ENVIRONMENT: Environment = Environment(os.getenv("PARADEX_ENVIRONMENT", "prod")) PARADEX_ACCOUNT_ADDRESS: str | None = os.getenv("PARADEX_ACCOUNT_ADDRESS") PARADEX_ACCOUNT_PRIVATE_KEY: str | None = os.getenv("PARADEX_ACCOUNT_PRIVATE_KEY") @classmethod def is_configured(cls) -> bool: """Check if all required configuration is set.""" return all( [ cls.PARADEX_ACCOUNT_PRIVATE_KEY is not None, ] ) config = Config()

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Habinar/mcp-paradex-py'

If you have feedback or need assistance with the MCP directory API, please join our Discord server