How Dhan MCP & Skills help traders build AI trading flows

Key takeaways:
- Dhan MCP (Model Context Protocol) allows AI agents to interact with the market using natural language, directly from a live Dhan trading account, across NSE, BSE and MCX.
- Dhan MCP enables traders to retrieve live market data, analyse portfolios, manage funds, and place and modify orders using a conversational prompt interface, in a per-session, consent-based permission model.
- Dhan Skills are open SKILL.md files with 12 categories of DhanHQ API knowledge ranging from order placement to live market feeds, options analysis, back testing and ScanX.
- Dhan Skills has built-in safety guardrails that require order confirmation before every action and default to 1 share (equity) or 1 lot (F&O), etc., which keep the AI as an assistant, not an autonomous trader.
- By combining MCP and Skills, traders and developers can build end-to-end AI trading flows without switching between multiple screens or writing each integration from scratch.
The past five years have seen an immense transformation of the Indian trading ecosystem. Previously, building an automated trading system demanded hundreds of lines of code, WebSocket handling, constant API endpoint monitoring, and code rewrites for minor logic modifications with repeated parameter testing. In this era, AI has transcended basic chatbots to become an active trading co-pilot that can manage complex trading workflows.
The introduction of Dhan MCP (Model Context Protocol) and Dhan Skills has facilitated the development of infrastructure by Dhan that enables direct connection of large language models (LLMs) such as Claude and ChatGPT to real-time exchanges in India (NSE, BSE, MCX).
Dhan significantly reduces the technical barriers to bridge the gap between real-time market execution and natural-language prompts, empowering retail traders, quants, and developers to build customised AI trading workflows. In this blog, we will explore how Dhan MCP and Skills enable traders to build custom AI trading workflows.
What is Dhan MCP?
MCP is an acronym for Model Context Protocol, an open standard for connecting AI assistants to the systems where data lives (business tools, data repositories, and development environments). Essentially, it serves as a bridge connecting AI models to a live Dhan trading account in real-time.
Without MCP, AI assistants can only provide general market views based on their training data. MCP enables them to view live portfolio data, fetch real-time market feeds, view available funds and place and manage orders through a conversational interface integrated with an authenticated Dhan account.
For traders, this changes the interaction model entirely. As they don't need to switch between screens to search for information, instead they can ask an AI assistant to fetch, analyse and act in real time.
What can traders do with Dhan MCP?
Dhan's MCP is a native, first-party implementation that allows traders to connect a live Dhan account to any MCP-compatible client. It allows traders to trade, manage their portfolios, fetch market data, set alerts, and calculate margins using natural language. This is what this means in practice:
- Market data retrieval: Traders can ask for the price, volume, or the day's range for any stock or index and receive the information instantly, without opening a separate tab.
- Portfolio analysis: With a single prompt, traders can gain a complete breakdown of their holdings, unrealised P&L, or the specific positions that are dragging down their overall portfolio performance.
- Fund management: Traders can access the available trading margin, ledger balance, or collateral value conversationally without navigating to a separate funds section.
- Order placement and management: Placing, modifying and cancelling orders on NSE, BSE and MCX can be done through a conversational interface, minimising manual steps from analysis to execution.
- Trading workflow creation: Combine multiple actions like checking market breadth, reviewing open positions, and placing a hedging trade into a single AI-driven trading workflow with just one prompt.
The MCP server operates on a per-session permission model, meaning trader consent is needed for the actions the AI assistant can take. It also supports various MCP-aware clients, such as Claude Desktop, Cursor, Kiro, VS Code, and anything built on an MCP SDK.
What are Dhan Skills?
Dhan Skills provide structured API knowledge that enables AI coding agents to build applications using DhanHQ APIs, ranging from order placement to live market feeds, as well as integration with Claude Code, Codex and any SKILL.md-compatible agent.
A single Dhan Skills pack covers 12 categories like orders, portfolio, market data, option chain, instruments, funds, live feed, error codes, common workflows, options analysis, backtesting, and ScanX.
Once a trader explains what kind of automation they want to build, the AI coding agent helps generate the required implementation.
What do Dhan Skills enable traders and developers to do?
The practical value of Dhan Skills spans both the active trader and the developer:
- Trading automation: AI coding agents can use Dhan Skills to generate rule-based trading automation using DhanHQ APIs, such as an automation that executes a stop-loss order when a trade goes against a trader by a specified percentage.
- Live data integration: Real-time Dhan market feeds can be pulled into custom dashboards, screeners or backtesting environments assembled using AI coding agents.
- Strategy prototyping: AI coding agents can quickly prototype, test, and refine trading strategies using Dhan's historical and live data, available directly through Dhan Skills.
- No need to code each integration individually: Portfolio monitoring workflows can be created without coding, and they trigger alerts when specific portfolio conditions are met.
Built-in safety guardrails: All orders, modifications, and cancellations must be confirmed by traders and default to 1 share (equity) or 1 lot (F&O) to ensure that the AI acts as a helpful assistant and not an autonomous trader.
Wrap up
Dhan MCP and Dhan Skills signify a fundamental change in how traders and developers engage with the market. Previously accessible only to quantitative desks, it is now accessible to all Dhan users who want to use AI in their trading. Dhan MCP provides a more efficient, direct channel for responding to market information via conversational commands to active traders.
Conversely, Dhan Skills offers the infrastructure to build automated trading flows on the Dhan platform. Thus, making AI-assisted trading workflows more accessible.











