Skip to main content
Glama
Alexander-Panov

Finam MCP Server

assets_get_exchanges

Retrieve available stock exchanges with names and MIC codes from the Finam trading platform for Russian financial markets integration.

Instructions

Получение списка доступных бирж, включая их названия и MIC-коды

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The FastMCP tool handler function for 'get_exchanges', which is prefixed to 'assets_get_exchanges' upon mounting the assets server.
    @assets_mcp.tool(tags={"assets"}) async def get_exchanges() -> ExchangesResponse: """Получение списка доступных бирж, включая их названия и MIC-коды""" return await get_finam_client().get_exchanges()
  • src/main.py:14-14 (registration)
    Mounts the assets_mcp FastMCP instance with 'assets' prefix, resulting in tool name 'assets_get_exchanges' for the get_exchanges handler.
    finam_mcp.mount(assets_mcp, prefix="assets")
  • Helper utility to obtain the FinamClient instance from the MCP context, used by the handler.
    def get_finam_client() -> FinamClient: return get_context().get_state("finam_client")
  • FinamClient wrapper method that calls the underlying finam_trade_api.assets.get_exchanges() to fetch the list of exchanges.
    async def get_exchanges(self): return await self.client.assets.get_exchanges()

Latest Blog Posts

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/Alexander-Panov/finam-mcp'

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