Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Portfolio Tracker MCP ServerRefresh my portfolio data and show me my current profit and loss"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Portfolio Tracker MCP Server
A Model Context Protocol (MCP) server that exposes portfolio tracking tools for AI clients.
Features
Get Portfolio Positions: Retrieve all current positions
Get Portfolio P&L: Calculate profit/loss with optional price refresh
Refresh Portfolio Data: Force refresh of all price data from Yahoo Finance
Get Position Details: Get specific position information
Setup
Install dependencies:
Build the project:
Start the server:
Development
For development with auto-reload:
MCP Client Configuration
Claude Desktop
Add to your Claude Desktop configuration:
Environment Variables
PORTFOLIO_API_URL: Base URL for the portfolio tracker API (default: http://localhost:3000)DEBUG: Set to "true" for verbose logging
Available Tools
get_portfolio_positions
Get all current portfolio positions
No parameters required
get_portfolio_pnl
Get profit/loss analysis
Parameters:
refresh(boolean, optional) - force refresh prices
refresh_portfolio_data
Force refresh all price data
No parameters required
get_position_details
Get details for specific positions
Parameters:
tickers(string array) - specific tickers to query
Usage Examples
Once connected to an AI client, you can ask:
"What's my current portfolio performance?"
"Show me my positions"
"Refresh my portfolio data and show the P&L"
"How is my NVDA position performing?"