The Wealthy MCP (Model Context Protocol) Server enables users to interact with the Wealthy trading platform directly from supported MCP clients like Claude or Cursor. This integration allows for natural language queries related to trading activities, market data, and portfolio management.
Install using golang (go 1.23 or later):
go install github.com/wealthy/wealthy-mcp/cmd/wealthy-mcp@latest
chmod +x wealthy-mcp-macos-arm64-<version>
xattr -d com.apple.quarantine wealthy-mcp-macos-arm64-<version>
Create or update .cursor/mcp.json
in your home directory:
{
"mcpServers": {
"wealthy-mcp": {
"command": "<path to downloaded/installed binary>"
}
}
}
Create or update claude_desktop_config.json
:
{
"mcpServers": {
"wealthy-mcp": {
"command": "<path to downloaded/installed binary>"
}
}
}
To use a custom port, add the args parameter:
{
"mcpServers": {
"wealthy-mcp": {
"command": "<path to downloaded/installed binary>",
"args": ["addr=localhost:8006"]
}
}
}
After installation and configuration:
Here are the available query types and their purposes:
Query Type | Purpose |
---|---|
get_price | Retrieves the current market price for a specified trading symbol |
get_holdings | Shows your current portfolio holdings and their details |
get_positions | Displays your open trading positions |
get_order_book | Lists all your orders (open, executed, and cancelled) |
get_trade_ideas | Provides trading suggestions and market insights |
get_security_info | Fetches detailed information about a specific security/stock |
place_order | Places a new buy/sell order with specified parameters |
You can interact with these queries through natural language in Claude/Cursor. For example:
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.