Portfolio Tracker
Exposes portfolio tracking tools for AI clients.
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:
npm install
- Build the project:
npm run build
- Start the server:
npm start
Development
For development with auto-reload:
npm run dev
MCP 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?"
Servidores relacionados
MockFlow IdeaBoard MCP
Turn AI conversations into professional visualizations - flowcharts, mindmaps, architecture diagrams, charts, Kanban boards - with MockFlow IdeaBoard MCP Server.
IT Tools
Provides access to over 70 IT tools and utilities for developers and IT professionals, including encoding, text manipulation, and network tools.
Outlook Calendar
Access and manage your local Microsoft Outlook calendar on Windows.
ClickUp
Integrate AI assistants with ClickUp for productivity and project management.
Excel MCP Server
Interact with Microsoft Excel to read data, edit cells, execute VBA code, and manage worksheets.
Roam Research MCP Server
Access and manage your Roam Research graph via its API.
Google Keep
Read, create, update and delete Google Keep notes.
Monday.com
Interact with Monday.com boards, items, updates, and documents.
Browser Use
An AI-driven server for browser automation using natural language commands, implementing the Model Context Protocol (MCP).
Lotus Wisdom
An MCP server implementation that provides a tool for problem-solving using the Lotus Sutra's wisdom framework, combining analytical thinking with intuitive wisdom.