Skip to main content
Glama

Deriv API MCP Server

by raju-deriv
server.py625 B
import json import os import sys from mcp.server.fastmcp import FastMCP from deriv_api import DerivAPI from services.tools import get_symbols, get_balance # Initialize FastMCP server mcp = FastMCP("deriv-api-mcp") # Load the .env file @mcp.tool() async def get_active_symbols() -> dict: active_symbols = await get_symbols() return active_symbols @mcp.tool() async def get_account_balance() -> dict: response = await get_balance() return response if __name__ == "__main__": # Initialize and run the server print("Deriv MCP server running on stdio", file=sys.stderr) mcp.run(transport='stdio')

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/raju-deriv/mcp-deriv-api-server'

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