dhan-mcp-server

vikkysarswat/dhan-mcp-server

3.3

If you are the rightful owner of dhan-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 dayong@mcphub.com.

The Dhan MCP Server is a Python-based Model Context Protocol server designed for seamless integration with the Dhan trading platform, enabling algorithmic trading in Indian stock markets.

Tools

Functions exposed to the LLM to take actions

get_profile

User profile and account information

validate_token

Access token validation and expiry

get_fund_limits

Account balance and margin information

place_order

Place new orders (all types & products)

modify_order

Modify pending orders

cancel_order

Cancel pending orders

slice_order

Handle large quantity orders

get_orders

Current day's order book

get_order_by_id

Specific order details

get_order_by_correlation_id

Find order by custom ID

get_trades

Current day's executed trades

get_trades_by_order_id

Trades for specific order

get_positions

Real-time open positions

get_holdings

Long-term holdings portfolio

calculate_margin

Pre-trade margin calculation

get_market_ltp

Live last traded prices

get_market_ohlc

OHLC data with volume

get_market_depth

Full market depth & order book

get_historical_data

Daily OHLC historical data

get_intraday_data

Minute-level intraday data

get_tick_data

Tick-by-tick historical data

Prompts

Interactive templates invoked by user choice

No prompts

Resources

Contextual data attached and managed by the client

No resources