How to Use the Alpaca Trading MCP in Cursor
Build trading bots in Cursor with live Alpaca market data. Your agent pulls real quotes and trade history directly into your code.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Alpaca Trading MCP to Cursor
Create your Vinkius account to connect Alpaca Trading to Cursor and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Code with Live Market Data
This MCP Server connects Cursor's agent to live Alpaca data feeds. Ask your agent to get historical prices with `get_stocks_bars` and it will inject a Python list of that data right into your file. You're no longer working with stale, hardcoded examples. This completely changes how you build trading algorithms. Instead of writing a separate script to fetch data, you get real-time quotes and trades with `get_latest_stocks_quotes` and `get_latest_stocks_trades` as you code. Your agent works with the exact same data your production code will.
Prototype Trades Instantly
The `create_order` tool lets you test your trading logic with real orders. Tell the Cursor agent, 'place a market buy for 10 shares of AAPL,' and it executes the trade. The agent can even generate the function call that did it, giving you ready-to-use code. Checking on your tests is just as fast. Use `get_orders` to see the status of everything you've placed. This tight feedback loop—from idea to code to live order—means you can develop and validate strategies much more quickly.
Your Alpaca Account in the Editor
Get a full picture of the market without leaving your editor. The `get_assets` tool lets you ask the agent for a list of all tradable stocks or crypto assets on Alpaca. It's useful for discovering new opportunities or making sure your code handles the right symbols. You can also manage your setup directly. Need your account ID for a config file? Just ask the agent to use `get_broker_account` and paste it in. It turns your editor into a complete command center for your trading application.
Set up Alpaca Trading MCP in Cursor
Prerequisites
- Cursor installed (macOS, Windows, or Linux)
- Active Vinkius subscription with a valid endpoint token
- 1
Open MCP Settings
Go to Cursor Settings → MCP or open the Command Palette (
Cmd+Shift+P/Ctrl+Shift+P) and search for "MCP: Add Server". - 2
Add the Alpaca Trading MCP
Cursor will create or open
.cursor/mcp.jsonin your project root. Paste the JSON snippet on the right. Replace[YOUR_TOKEN_HERE]with your endpoint token from cloud.vinkius.com. - 3
Enable Agent mode
Open Composer (
Cmd+I/Ctrl+I) and switch to Agent mode using the dropdown at the top. MCP tools are only available in Agent mode. - 4
Verify the connection
Ask Cursor something like "List my recent Alpaca Trading transactions." If the MCP tools are loaded correctly, Cursor will call the Alpaca Trading tools automatically. You can also check Settings → MCP for a green status indicator.
{
"mcpServers": {
"alpaca-trading-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
} Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Alpaca. 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.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Alpaca Trading MCP in Cursor
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Alpaca Trading MCP today
We host it, we monitor it, we maintain it. You just paste one token.