dYdX MCP for AI. Execute complex crypto trades and manage market data.
Works with every AI agent you already use
…and any MCP-compatible client








Connect to your AI in seconds.
dYdX (Decentralized Perpetual Exchange API) provides full access to perpetual trading on dYdX v4. Use this MCP to monitor markets, analyze orderbooks, and execute complex trades directly from any AI agent.
Get real-time data—from 24h market statistics to account balances—all without leaving your research environment.
What your AI can do
V3 create order
Places a new order directly onto the dYdX v3 exchange environment.
V3 get accounts
Retrieves comprehensive account information available on the dYdX v3 platform.
V3 get orderbook
Fetches the current L2 order book for any specified dYdX v3 market pair.
List all available perpetual markets and pull detailed market information, including 24h rolling statistics.
Get the current L2 orderbook for any dYdX v3 or v4 market to assess immediate liquidity.
Check your account balances, open positions, and overall equity on the dYdX Chain address.
Place new limit or market orders, cancel existing ones, and view order history through natural language commands.
Retrieve historical OHLCV candlestick data and recent public trades for deep technical analysis.
Ask an AI about this
Waiting for input…
dYdX (Decentralized Perpetual Exchange API) with 16 Tools
These tools allow your agent to perform every action needed for crypto trading: from checking market stats and listing positions to placing, canceling, and tracking complex orders.
Make your AI actually useful.
Add this MCP to Claude, Cursor, or Windsurf and your AI stops guessing. It gets real tools to look things up, take action, and handle the stuff you keep doing by hand.
Start using dYdX (Decentralized Perpetual Exchange API) on VinkiusV3 Create Order
Places a new order directly onto the dYdX v3 exchange environment.
V3 Get Accounts
Retrieves comprehensive account information available on the dYdX v3 platform.
V3 Get Orderbook
Fetches the current L2 order book for any specified dYdX v3 market pair.
V3 List Markets
Lists all active perpetual markets available on the dYdX v3 platform.
V4 Cancel Order
Cancels an open order by providing its specific ID on the dYdX v4 system.
V4 Create Order
Places a new limit or market order directly onto the modern dYdX v4 exchange platform.
V4 Get Account
Retrieves your current account balances, open positions, and total equity on dYdX v4.
V4 Get Candles
Gets historical OHLCV candlestick data for any specified dYdX v4 market pair.
V4 Get Market
Retrieves detailed information about a specific perpetual market on dYdX v4.
V4 Get Orderbook
Fetches the current L2 order book for any specified dYdX v4 market pair.
V4 Get Stats
Gets aggregate 24-hour statistics for a given dYdX v4 market.
V4 Get Trades
Retrieves recent public trades that occurred on the specified dYdX v4 market.
V4 List Fills
Lists all recent trade fills associated with your account on dYdX v4.
V4 List Markets
Lists every available perpetual market pair operating on the dYdX v4 platform.
V4 List Orders
Lists both active and historical orders placed under your account on dYdX v4.
V4 List Positions
Retrieves a list of all open, current positions held by the account on dYdX v4.
Security and governance baked right in.
Pick your AI client below to get set up. Just create a Vinkius account, subscribe, and you're instantly up and running. We handle the entire backend infrastructure, delivering out-of-the-box support for HTTPS Streamable, SSE, and OAuth2—zero messy routing required.
Choose How to Get Started
Build a custom MCP for your own tools, or connect a ready-made integration from our catalog.
Build Your Own
Turn any API into an MCP. Import a spec, define Agent Skills, or deploy with MCPFusion.
- Import from OpenAPI, Swagger, or YAML specs
- Create Agent Skills with progressive disclosure
- Deploy to edge with MCPFusion framework
- Built in DLP, auth, and compliance on every call
- Real time usage dashboard and cost metering
- Publish to catalog or keep private
Make Your AI Do More
Start with dYdX (Decentralized Perpetual Exchange API), then connect any of our 5,100+ other servers whenever your AI needs more. One click, no limits.
- Use this MCP plus 5,100+ others, all in one place
- Add new capabilities to your AI anytime you want
- Every connection is secured and compliant automatically
- Track usage and costs across all your servers
- Works with Claude, ChatGPT, Cursor, and more
- New servers added to the catalog every week
Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by dYdX. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
VINKIUS INFRASTRUCTURE
Cloud Hosted
Managed infra
V8 Isolated
Sandboxed per request
Zero-Trust Proxy
No stored credentials
DLP Enforced
Policy on every call
GDPR Compliant
EU data residency
Token Compression
~60% cost reduction
Works with Claude, ChatGPT, Cursor, and more
The Model Context Protocol standardizes how applications expose capabilities to LLMs. Instead of operating in isolation, your AI gains direct access to external platforms, live data, and real-world actions through secure, standardized connections.
This connection provides 16 powerful capabilities that interface natively with Claude, ChatGPT, Cursor, and other compatible AI platforms. No middleware. No custom integration required.
Dealing with fragmented market data across multiple dashboards is exhausting.
Today, if you're doing deep crypto analysis, you probably have to jump between three or four places: the chart for historical candles, a separate tab for the orderbook depth, and a final dashboard just for your account balance. You copy the pair name from one place, paste it into another, then manually cross-reference the total equity against what your script expects.
With this MCP, that multi-step process vanishes. Your agent handles all those jumps. You simply ask it to 'Compare the 24h stats and orderbook depth for ETH-USD.' The system pulls v4_get_stats and v4_get_orderbook simultaneously, giving you a single, comprehensive data packet right where you're coding.
Execute trades instantly with the v4 tools.
Before this MCP, executing even a simple market order meant logging into an exchange portal, selecting the pair, choosing limit/market, inputting the price and size, and hitting 'Submit.' It was slow, prone to human error, and required constant monitoring.
Now you just tell your agent: 'Place a market buy order for 0.1 BTC-USD.' The system calls v4_create_order for you, handles authentication, and reports the final execution status. You're moving from manual input to direct command.
What your AI can actually do with this
You can connect your crypto trading workflow to the leading decentralized perpetual exchange using this MCP. It lets your AI client monitor live markets and execute complex trades across dYdX v4 infrastructure. Instead of opening multiple dashboards, you tell your agent what you want—say, 'Place a limit order for BTC-USD when it hits $25,000.' The system handles the rest.
This capability means crypto developers, quants, and analysts can run full trading simulations or manage live positions directly within their coding tools. By connecting to this MCP via Vinkius, you gain programmatic access to everything from historical OHLCV data for deep technical analysis to current account equity checks. It's about making your entire research stack—your terminal, your IDE, your custom scripts—into a single, actionable trading platform.
019e5d14-d636-709c-bfa1-25f40318d3ca Here's how it actually works
The bottom line is, your agent talks directly to dYdX, giving you instant market and account status updates without requiring manual API calls.
Subscribe to this MCP and provide your dYdX API Key, Secret, and Passphrase.
Your AI agent uses the credentials to connect to the v4 infrastructure.
The agent executes commands—like 'List all markets' or 'Get account balance'—and returns structured data for you to use.
Who is this actually for?
Quant Developers who need to script backtesting routines; DeFi Analysts who require real-time orderbook depth for models; or Portfolio Managers tired of juggling multiple exchange dashboards.
Scripts complex trading strategies, using tools like v4_get_candles and v4_create_order to backtest trade logic against historical data.
Pulls real-time L2 orderbook depth (v4_get_orderbook) into analysis tools, allowing immediate assessment of market liquidity and pressure.
Checks current account positions and total equity (v4_list_positions, v4_get_account) to manage overall risk exposure across multiple pairs.
What Changes When You Connect
Real-time position tracking. Instead of manually checking multiple tabs, use v4_list_positions to pull all open positions into your agent's memory for instant risk assessment.
Deep technical analysis from history. You get historical OHLCV candlestick data via v4_get_candles, letting you build backtesting models without leaving your research environment.
Instant market depth visibility. Use v4_get_orderbook to see the best bids and asks (L2) for any pair, giving you a real-time view of immediate liquidity that simple price feeds miss.
Full lifecycle trade management. You don't just place orders; you can cancel them using v4_cancel_order or review all your history with v4_list_orders and v4_list_fills.
Comprehensive status checks. Before making a move, check your total buying power and equity balance using v4_get_account to ensure funds are available for the trade.
See it in action
Analyzing market structure before entry
A DeFi Analyst notices BTC-USD volatility. Instead of watching a live chart, they ask their agent: 'Get me the v4_get_orderbook and the v4_get_stats for BTC-USD.' The agent instantly pulls both the deep liquidity profile and the 24h summary, allowing the analyst to confirm if current movement is supported by underlying order book depth.
Automating trade rebalancing
A Portfolio Manager wants to reduce risk. They instruct their agent to 'List my open positions (v4_list_positions) and calculate the total notional value.' The agent returns this list, allowing the manager to programmatically decide which position needs to be trimmed or closed.
Auditing a complex trade sequence
A Quant Developer finishes a multi-step simulation. They ask their agent to 'Show me all recent trades (v4_get_trades) and the corresponding fills (v4_list_fills).' This gives an immediate, auditable trail of every executed action against the account.
Validating market availability
A new product launches. A developer first uses v4_list_markets to see all available pairs on dYdX v4. This confirms if their target asset pair is live before attempting any trade execution.
The honest tradeoffs
Assuming basic data access
Just trying to get a price feed and assuming it's accurate enough for a large order. This ignores the current market depth.
Always start by calling v4_get_orderbook. Don't rely on simple prices; check the L2 book first to see actual bids and asks before you build your strategy.
Ignoring version differences
Using older code written for dYdX v3 when trying to execute a trade. The calls might fail because the underlying protocol changed.
Prioritize using the v4 tools (v4_create_order, v4_get_account). These represent the current standard and minimize version-related failures.
Placing orders without checks
Calling v4_create_order without first checking your balance. The trade fails, and you lose time.
Always call v4_get_account first to verify sufficient buying power and available collateral before attempting any execution.
When It Fits, When It Doesn't
Use this MCP if your goal is executing actionable, state-changing commands (placing orders, checking balances) or analyzing granular market structure (L2 orderbooks, historical candles). If you only need a simple list of assets and nothing else, that's fine. But if you need to act on the data—whether by placing a trade using v4_create_order, canceling an existing position with v4_cancel_order, or comparing multiple markets using v4_get_market—then this is required. Don't use it just because you can list all markets (v4_list_markets); only use the execution tools when your workflow requires a verifiable change in account state.
Questions you might have
How do I check my account balance using v4_get_account? +
Call v4_get_account with your credentials. This tool returns all current financial data, including total equity and available buying power on dYdX v4.
Can I get historical price data using v4_get_candles? +
Yes. You must specify the market pair and time range when calling v4_get_candles. This returns OHLCV candlestick data necessary for backtesting strategies.
What is the difference between v3_get_orderbook and v4_get_orderbook? +
Both retrieve the L2 order book, but v4_get_orderbook connects to the current dYdX v4 infrastructure. For new development, always use the v4 tool.
How do I list all available perpetual markets? +
You can call v4_list_markets for a full inventory of pairs on dYdX v4, or use v3_list_markets if you need the older v3 market listing.
What tool should I use to cancel an order? +
Use v4_cancel_order. You must provide the specific Order ID for the cancellation to succeed on dYdX v4.
What parameters do I need to use when I call `v4_create_order`? +
The v4_create_order tool requires specifying the market ID, side (buy/sell), quantity, and price. You must also define whether you want a limit or market order type for execution.
How does `v4_list_positions` help me manage my risk? +
It gives you a consolidated view of all your current open positions, showing the asset, size, and entry price. This allows your agent to check exposure levels across different markets before executing new trades.
What specific metrics does `v4_get_stats` provide for a market? +
The tool retrieves key 24-hour performance data, including trading volume, highest bid/ask, and price changes. This helps you analyze immediate market momentum without fetching historical candles.
Can I check my current open positions and account balance? +
Yes. You can use v4_list_positions to see all active trades and v4_get_account with your address to retrieve balances and equity.
How do I get the latest market price and orderbook depth? +
Use the v4_get_market tool for general info or v4_get_orderbook for the current L2 state of any specific market like BTC-USD.
Is it possible to place or cancel trades through the AI? +
Yes. The v4_create_order tool allows you to place limit or market orders, and v4_cancel_order lets you cancel them using their Order ID.
We've already built the connector for dYdX. Just plug in your AI agents and start using Vinkius.
No hosting. No infrastructure. No complex setup.
All 16 tools are live and waiting.
You're up and running in seconds.
Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.
Built, hosted, and secured by Vinkius. You just connect and go.