Skip to main content
Glama
BACH-AI-Tools

Indian Stock Exchange API2 MCP Server

historical_data

Retrieve historical stock price data for Indian companies listed on NSE and BSE to analyze market trends and performance over time.

Instructions

  • Endpoint: /historical_data - Method: GET - Query Parameters: - stock_name (required): string - period (optional): string, default is \

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stock_nameYesExample value: tcs
periodNoExample value:
filterNoExample value:

Implementation Reference

  • server.py:54-61 (registration)
    The FastMCP server is initialized using the `from_openapi` method, which automatically registers tools based on the OpenAPI specification. The `historical_data` tool is defined within the `OPENAPI_SPEC` string starting at line 46.
    # 从 OpenAPI 规范创建 FastMCP 服务器
    openapi_dict = json.loads(OPENAPI_SPEC)
    mcp = FastMCP.from_openapi(
        openapi_spec=openapi_dict,
        client=client,
        name="indian_stock_exchange_api2",
        version=__version__
    )

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/BACH-AI-Tools/bach-indian_stock_exchange_api2'

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