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?"
Related Servers
Kone.vc
sponsorMonetize your AI agent with contextual product recommendations
harvest-mcp-server
Harvest time tracking integration with 40+ tools for managing time entries, projects, clients, tasks, and generating time reports via the Harvest API v2
UNO: Unified Narrative Operator
A text enhancement tool that transforms story content into rich, detailed narratives using advanced literary techniques and heuristic analysis.
n8n Workflow MCP Server
A server for validating and managing n8n workflows, featuring multilingual support and multiple operational modes.
Portfolio Manager MCP Server
A server providing tools and resources for managing and analyzing investment portfolios.
Apple Reminders
A server for native integration with Apple Reminders on macOS.
CyberEdu MCP Server
This is the Oficial Model Context Protocol (MCP) server for the CyberEdu CTF platform (cyber-edu.co / cyberedu.ro)
Fraud Detection Engine
中英双语 AI 欺诈文本检测引擎,可识别诈骗、钓鱼等风险,返回风险评分、判定和等级。
WooCommerce MCP Server
An MCP server for integrating with the WooCommerce e-commerce platform.
clinical-trial-eligibility
Standardized matching logic for patient eligibility against clinical trial criteria.
Odoo
Integrate Odoo with Large Language Models (LLMs) for enhanced business process automation.