Portfolio Tracker MCP Server
Click on "Deploy 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 Server Refresh 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
Related MCP server: FinanceKit MCP
Setup
Install dependencies:
npm installBuild the project:
npm run buildStart the server:
npm startDevelopment
For development with auto-reload:
npm run devMCP Client Configuration
Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"portfolio-tracker": {
"command": "node",
"args": ["/Users/goul/Development/portfolio-tracker-mcp-server/build/index.js"],
"env": {
"PORTFOLIO_API_URL": "http://localhost:3000"
}
}
}
}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?"
Available Tools
4 toolsget_portfolio_pnlA
Get portfolio profit and loss analysis with current market values, including summary totals and individual position performance
Inputs: refresh.
get_portfolio_positionsB
Get all current portfolio positions with basic information like ticker, quantity, cost, and account details
Inputs: no named parameters.
get_position_detailsA
Get detailed information for specific portfolio positions by ticker symbols
Inputs: tickers (required).
refresh_portfolio_dataA
Force refresh all portfolio price data from Yahoo Finance, including both current and historical prices
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: P&L analysis, position listing, detailed position info, and data refresh. No overlap or ambiguity.
Three tools use 'get_' prefix consistently; the fourth uses 'refresh_' which is a different verb but maintains the same snake_case style. Minor deviation, but pattern is clear.
Four tools are well-scoped for a portfolio tracker, covering essential read operations and a data refresh command. Not too few or too many.
The tool set covers reading portfolio data (positions, details, P&L) and refreshing prices. Missing write operations like adding/removing positions, but for a read-only tracker this is appropriate.
Related MCP Connectors
Read and edit your LivePortfolio portfolio from your AI assistant. Requires a Pro account.
Yahoo Finance for AI agents: quotes, price history, options with Greeks, financials, news, movers.
Portfolio analytics + US-equity market research for AI clients. ChatGPT deep-research compat.
Connect brokerage accounts to AI assistants: holdings, orders, asset lookup, and approved trading.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides real-time stock quotes, historical price data, financial news, and multi-stock comparisons using Yahoo Finance data. Enables users to access comprehensive financial market information through natural language queries.1MIT
- AlicenseAqualityDmaintenanceProvides AI agents with real-time financial market intelligence including stock quotes, crypto data, technical analysis, and portfolio insights. Enables natural language queries for current prices, technical indicators, asset comparisons, and portfolio analysis.1710MIT
- AlicenseNot gradedqualityCmaintenanceProvides real-time stock quotes, historical data, and stock search via Yahoo Finance, enabling AI assistants to access and analyze financial market data.70 npm19MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to access real-time stock, crypto, and market index data from Yahoo Finance, supporting queries for prices, history, company info, and comparisons.MIT